FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
decode_video.c File Reference

video decoding with libavcodec API example More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libavcodec/avcodec.h>

Go to the source code of this file.

Macros

#define INBUF_SIZE   4096
 

Functions

static void pgm_save (unsigned char *buf, int wrap, int xsize, int ysize, char *filename)
 
static int decode_write_frame (const char *outfilename, AVCodecContext *avctx, AVFrame *frame, int *frame_count, AVPacket *pkt, int last)
 
int main (int argc, char **argv)
 

Detailed Description

video decoding with libavcodec API example

Definition in file decode_video.c.

Macro Definition Documentation

#define INBUF_SIZE   4096
Examples:
decode_video.c.

Definition at line 36 of file decode_video.c.

Referenced by main().

Function Documentation

static void pgm_save ( unsigned char *  buf,
int  wrap,
int  xsize,
int  ysize,
char *  filename 
)
static
Examples:
decode_video.c.

Definition at line 38 of file decode_video.c.

Referenced by decode_write_frame().

static int decode_write_frame ( const char *  outfilename,
AVCodecContext avctx,
AVFrame frame,
int frame_count,
AVPacket pkt,
int  last 
)
static
Examples:
decode_video.c.

Definition at line 51 of file decode_video.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)
Examples:
decode_video.c.

Definition at line 79 of file decode_video.c.