vhook/ppm.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <ctype.h>
#include "libavutil/avstring.h"
#include "libavformat/framehook.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"

Go to the source code of this file.

Data Structures

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

Defines

#define COMMAND_SIZE   10240

Functions

static rwpiperwpipe_open (int argc, char *argv[])
 Create a bidirectional pipe for the given command.
static FILE * rwpipe_reader (rwpipe *this)
 Read data from the pipe.
static FILE * rwpipe_writer (rwpipe *this)
 Write data to the pipe.
static int rwpipe_read_number (rwpipe *rw)
static int rwpipe_read_ppm_header (rwpipe *rw, int *width, int *height)
 Read a PPM P6 header.
static void rwpipe_close (rwpipe *this)
 Close the pipe and process.
int Configure (void **ctxp, int argc, char *argv[])
 Initialise the context info for this vhook.
void Process (void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, int height, int64_t pts)
 Process a frame.
void Release (void *ctx)
 Clean up the effect.

Variables

static int sws_flags = SWS_BICUBIC


Define Documentation

#define COMMAND_SIZE   10240

Referenced by rwpipe_open().


Function Documentation

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

Initialise the context info for this vhook.

Definition at line 215 of file ppm.c.

void Process ( void *  ctx,
AVPicture picture,
enum PixelFormat  pix_fmt,
int  width,
int  height,
int64_t  pts 
)

Process a frame.

Definition at line 233 of file ppm.c.

void Release ( void *  ctx  ) 

Clean up the effect.

Definition at line 359 of file ppm.c.

static void rwpipe_close ( rwpipe this  )  [static]

Close the pipe and process.

Definition at line 182 of file ppm.c.

Referenced by Release().

static rwpipe* rwpipe_open ( int  argc,
char *  argv[] 
) [static]

Create a bidirectional pipe for the given command.

Definition at line 50 of file ppm.c.

Referenced by Configure().

static int rwpipe_read_number ( rwpipe rw  )  [static]

Definition at line 129 of file ppm.c.

Referenced by rwpipe_read_ppm_header().

static int rwpipe_read_ppm_header ( rwpipe rw,
int *  width,
int *  height 
) [static]

Read a PPM P6 header.

Definition at line 160 of file ppm.c.

Referenced by Process().

static FILE* rwpipe_reader ( rwpipe this  )  [static]

Read data from the pipe.

Definition at line 107 of file ppm.c.

Referenced by Process(), rwpipe_read_number(), and rwpipe_read_ppm_header().

static FILE* rwpipe_writer ( rwpipe this  )  [static]

Write data to the pipe.

Definition at line 118 of file ppm.c.

Referenced by Process().


Variable Documentation

int sws_flags = SWS_BICUBIC [static]

Definition at line 34 of file ppm.c.


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