vhook/fish.c File Reference
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <dirent.h>
#include "libavformat/avformat.h"
#include "libavformat/framehook.h"
#include "libavcodec/dsputil.h"
#include "libswscale/swscale.h"
Go to the source code of this file.
|
Data Structures |
struct | HSV |
struct | ContextInfo |
| Context info for this vhook - stores the pipe and image buffers. More...
|
Defines |
#define | SCALEBITS 10 |
#define | ONE_HALF (1 << (SCALEBITS - 1)) |
#define | FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5)) |
#define | YUV_TO_RGB1_CCIR(cb1, cr1) |
#define | YUV_TO_RGB2_CCIR(r, g, b, y1) |
Functions |
static void | dorange (const char *s, int *first, int *second, int maxval) |
void | Release (void *ctx) |
int | Configure (void **ctxp, int argc, char *argv[]) |
static void | get_hsv (HSV *hsv, int r, int g, int b) |
void | Process (void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, int height, int64_t pts) |
Variables |
static int | sws_flags = SWS_BICUBIC |
Define Documentation
#define FIX |
( |
x |
|
) |
((int) ((x) * (1<<SCALEBITS) + 0.5)) |
#define ONE_HALF (1 << (SCALEBITS - 1)) |
#define YUV_TO_RGB1_CCIR |
( |
cb1, |
|
|
cr1 |
|
) |
|
Value:
{\
cb = (cb1) - 128;\
cr = (cr1) - 128;\
r_add = FIX(1.40200*255.0/224.0) * cr + ONE_HALF;\
g_add = - FIX(0.34414*255.0/224.0) * cb - FIX(0.71414*255.0/224.0) * cr + \
ONE_HALF;\
b_add = FIX(1.77200*255.0/224.0) * cb + ONE_HALF;\
}
Definition at line 59 of file fish.c.
#define YUV_TO_RGB2_CCIR |
( |
r, |
|
|
g, |
|
|
b, |
|
|
y1 |
|
) |
|
Value:
Definition at line 69 of file fish.c.
Function Documentation
int Configure |
( |
void ** |
ctxp, |
|
|
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |
static void dorange |
( |
const char * |
s, |
|
|
int * |
first, |
|
|
int * |
second, |
|
|
int |
maxval | |
|
) |
| | [static] |
static void get_hsv |
( |
HSV * |
hsv, |
|
|
int |
r, |
|
|
int |
g, |
|
|
int |
b | |
|
) |
| | [static] |
void Process |
( |
void * |
ctx, |
|
|
AVPicture * |
picture, |
|
|
enum PixelFormat |
pix_fmt, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int64_t |
pts | |
|
) |
| | |
void Release |
( |
void * |
ctx |
) |
|
Variable Documentation