#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 rwpipe * | rwpipe_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 COMMAND_SIZE 10240 |
Referenced by rwpipe_open().
int Configure | ( | void ** | ctxp, | |
int | argc, | |||
char * | argv[] | |||
) |
void Process | ( | void * | ctx, | |
AVPicture * | picture, | |||
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height, | |||
int64_t | pts | |||
) |
static void rwpipe_close | ( | rwpipe * | this | ) | [static] |
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] |
static int rwpipe_read_ppm_header | ( | rwpipe * | rw, | |
int * | width, | |||
int * | height | |||
) | [static] |
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] |