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

VC-1 and WMV3 parser. More...

#include "parser.h"
#include "vc1.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  VC1ParseContext
 

Functions

static void vc1_extract_headers (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 
static int vc1_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size)
 Find the end of the current frame in the bitstream.
 
static int vc1_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 
static int vc1_split (AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 
static int vc1_parse_init (AVCodecParserContext *s)
 

Variables

AVCodecParser ff_vc1_parser
 

Detailed Description

VC-1 and WMV3 parser.

Definition in file vc1_parser.c.

Function Documentation

static void vc1_extract_headers ( AVCodecParserContext s,
AVCodecContext avctx,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 37 of file vc1_parser.c.

Referenced by vc1_parse().

static int vc1_find_frame_end ( ParseContext pc,
const uint8_t buf,
int  buf_size 
)
static

Find the end of the current frame in the bitstream.

Returns
the position of the first byte of the next frame, or -1

Definition at line 102 of file vc1_parser.c.

Referenced by vc1_parse().

static int vc1_parse ( AVCodecParserContext s,
AVCodecContext avctx,
const uint8_t **  poutbuf,
int *  poutbuf_size,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 140 of file vc1_parser.c.

static int vc1_split ( AVCodecContext avctx,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 167 of file vc1_parser.c.

static int vc1_parse_init ( AVCodecParserContext s)
static

Definition at line 187 of file vc1_parser.c.

Variable Documentation

AVCodecParser ff_vc1_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_VC1 },
.priv_data_size = sizeof(VC1ParseContext),
.parser_init = vc1_parse_init,
.parser_parse = vc1_parse,
.parser_close = ff_parse_close,
}

Definition at line 194 of file vc1_parser.c.