FFmpeg
Functions | Variables
extract_mvs.c File Reference
#include <libavutil/motion_vector.h>
#include <libavformat/avformat.h>

Go to the source code of this file.

Functions

static int decode_packet (const AVPacket *pkt)
 
static int open_codec_context (AVFormatContext *fmt_ctx, enum AVMediaType type)
 
int main (int argc, char **argv)
 

Variables

static AVFormatContextfmt_ctx = NULL
 
static AVCodecContextvideo_dec_ctx = NULL
 
static AVStreamvideo_stream = NULL
 
static const char * src_filename = NULL
 
static int video_stream_idx = -1
 
static AVFrameframe = NULL
 
static int video_frame_count = 0
 

Function Documentation

static int decode_packet ( const AVPacket pkt)
static

Definition at line 36 of file extract_mvs.c.

Referenced by main().

static int open_codec_context ( AVFormatContext fmt_ctx,
enum AVMediaType  type 
)
static

Definition at line 76 of file extract_mvs.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 121 of file extract_mvs.c.

Variable Documentation

AVFormatContext* fmt_ctx = NULL
static

Definition at line 27 of file extract_mvs.c.

AVCodecContext* video_dec_ctx = NULL
static

Definition at line 28 of file extract_mvs.c.

AVStream* video_stream = NULL
static

Definition at line 29 of file extract_mvs.c.

const char* src_filename = NULL
static

Definition at line 30 of file extract_mvs.c.

Referenced by main(), and open_codec_context().

int video_stream_idx = -1
static

Definition at line 32 of file extract_mvs.c.

Referenced by main(), and open_codec_context().

AVFrame* frame = NULL
static

Definition at line 33 of file extract_mvs.c.

int video_frame_count = 0
static

Definition at line 34 of file extract_mvs.c.

Referenced by decode_packet().