vhook/watermark.c File Reference

#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include "libavutil/common.h"
#include "libavformat/avformat.h"
#include "libavformat/framehook.h"
#include "libswscale/swscale.h"

Go to the source code of this file.

Data Structures

struct  ContextInfo
 Context info for this vhook - stores the pipe and image buffers. More...

Functions

int get_watermark_picture (ContextInfo *ci, int cleanup)
void Release (void *ctx)
int Configure (void **ctxp, int argc, char *argv[])
static void Process0 (void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int src_width, int src_height, int64_t pts)
static void Process1 (void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int src_width, int src_height, int64_t pts)
void Process (void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int src_width, int src_height, int64_t pts)
void parse_arg_file (const char *filename)

Variables

static int sws_flags = SWS_BICUBIC


Function Documentation

int Configure ( void **  ctxp,
int  argc,
char *  argv[] 
)

Definition at line 126 of file watermark.c.

int get_watermark_picture ( ContextInfo ci,
int  cleanup 
)

Definition at line 452 of file watermark.c.

Referenced by Configure(), Process0(), Process1(), and Release().

void parse_arg_file ( const char *  filename  ) 

Definition at line 653 of file watermark.c.

void Process ( void *  ctx,
AVPicture picture,
enum PixelFormat  pix_fmt,
int  src_width,
int  src_height,
int64_t  pts 
)

Definition at line 427 of file watermark.c.

static void Process0 ( void *  ctx,
AVPicture picture,
enum PixelFormat  pix_fmt,
int  src_width,
int  src_height,
int64_t  pts 
) [static]

Definition at line 180 of file watermark.c.

Referenced by Process().

static void Process1 ( void *  ctx,
AVPicture picture,
enum PixelFormat  pix_fmt,
int  src_width,
int  src_height,
int64_t  pts 
) [static]

Definition at line 316 of file watermark.c.

Referenced by Process().

void Release ( void *  ctx  ) 

Definition at line 108 of file watermark.c.


Variable Documentation

int sws_flags = SWS_BICUBIC [static]

Definition at line 66 of file watermark.c.


Generated on Fri Oct 26 02:35:46 2012 for FFmpeg by  doxygen 1.5.8