doc/examples/encoding.c File Reference

libavcodec API use example. More...

#include "libavcodec/avcodec.h"
#include "libavutil/mathematics.h"

Go to the source code of this file.

Defines

#define INBUF_SIZE   4096
#define AUDIO_INBUF_SIZE   20480
#define AUDIO_REFILL_THRESH   4096

Functions

static void audio_encode_example (const char *filename)
static void audio_decode_example (const char *outfilename, const char *filename)
static void video_encode_example (const char *filename)
static void pgm_save (unsigned char *buf, int wrap, int xsize, int ysize, char *filename)
static void video_decode_example (const char *outfilename, const char *filename)
int main (int argc, char **argv)


Detailed Description

libavcodec API use example.

Note that libavcodec only handles codecs (mpeg, mpeg4, etc...), not file formats (avi, vob, etc...). See library 'libavformat' for the format handling

Definition in file encoding.c.


Define Documentation

#define AUDIO_INBUF_SIZE   20480

Definition at line 36 of file encoding.c.

Referenced by audio_decode_example().

#define AUDIO_REFILL_THRESH   4096

Definition at line 37 of file encoding.c.

Referenced by audio_decode_example().

#define INBUF_SIZE   4096

Definition at line 35 of file encoding.c.

Referenced by video_decode_example().


Function Documentation

static void audio_decode_example ( const char *  outfilename,
const char *  filename 
) [static]

Definition at line 111 of file encoding.c.

Referenced by main().

static void audio_encode_example ( const char *  filename  )  [static]

Definition at line 42 of file encoding.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 434 of file encoding.c.

static void pgm_save ( unsigned char *  buf,
int  wrap,
int  xsize,
int  ysize,
char *  filename 
) [static]

Definition at line 302 of file encoding.c.

Referenced by video_decode_example().

static void video_decode_example ( const char *  outfilename,
const char *  filename 
) [static]

Definition at line 315 of file encoding.c.

Referenced by main().

static void video_encode_example ( const char *  filename  )  [static]

Definition at line 195 of file encoding.c.

Referenced by main().


Generated on Tue Oct 11 19:22:19 2011 for FFmpeg by  doxygen 1.5.8