FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 (int *got_frame, int cached)
 
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 AVPacket pkt
 
static int video_frame_count = 0
 

Function Documentation

static int decode_packet ( int got_frame,
int  cached 
)
static

Definition at line 37 of file extract_mvs.c.

Referenced by main().

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

Definition at line 72 of file extract_mvs.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 117 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 decode_packet(), and open_codec_context().

AVFrame* frame = NULL
static

Definition at line 33 of file extract_mvs.c.

AVPacket pkt
static

Definition at line 34 of file extract_mvs.c.

Referenced by main().

int video_frame_count = 0
static

Definition at line 35 of file extract_mvs.c.

Referenced by decode_packet().