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 void decode (AVCodecContext *dec_ctx, AVFrame *frame, AVPacket *pkt, const char *filename)
 
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().

static void decode ( AVCodecContext dec_ctx,
AVFrame frame,
AVPacket pkt,
const char *  filename 
)
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 83 of file decode_video.c.