libavcodec/apiexample.c File Reference

avcodec API use example. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "avcodec.h"
#include "libavutil/mathematics.h"

Go to the source code of this file.

Defines

#define INBUF_SIZE   4096

Functions

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


Detailed Description

avcodec API use example.

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

Definition in file apiexample.c.


Define Documentation

#define INBUF_SIZE   4096

Definition at line 41 of file apiexample.c.

Referenced by audio_decode_example(), and video_decode_example().


Function Documentation

void audio_decode_example ( const char *  outfilename,
const char *  filename 
)

Definition at line 114 of file apiexample.c.

Referenced by main().

void audio_encode_example ( const char *  filename  ) 

Definition at line 46 of file apiexample.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 427 of file apiexample.c.

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

Definition at line 299 of file apiexample.c.

Referenced by video_decode_example().

void video_decode_example ( const char *  outfilename,
const char *  filename 
)

Definition at line 311 of file apiexample.c.

Referenced by main().

void video_encode_example ( const char *  filename  ) 

Definition at line 188 of file apiexample.c.

Referenced by main().


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