mpegvideo_parser.c File Reference
#include "parser.h"
#include "mpeg12.h"
#include "internal.h"
Include dependency graph for mpegvideo_parser.c:

Go to the source code of this file.

Data Structures

struct  MpvParseContext
 

Functions

static void mpegvideo_extract_headers (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 
static int mpegvideo_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 
static int mpegvideo_split (AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 
static int mpegvideo_parse_init (AVCodecParserContext *s)
 

Variables

AVCodecParser ff_mpegvideo_parser
 

Function Documentation

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

Definition at line 35 of file mpegvideo_parser.c.

Referenced by mpegvideo_parse().

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

Definition at line 146 of file mpegvideo_parser.c.

static int mpegvideo_parse_init ( AVCodecParserContext s)
static

Definition at line 196 of file mpegvideo_parser.c.

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

Definition at line 179 of file mpegvideo_parser.c.

Variable Documentation

AVCodecParser ff_mpegvideo_parser
Initial value:
= {
.priv_data_size = sizeof(struct MpvParseContext),
.parser_init = mpegvideo_parse_init,
.parser_parse = mpegvideo_parse,
.parser_close = ff_parse_close,
.split = mpegvideo_split,
}
static int mpegvideo_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:279
static int mpegvideo_parse_init(AVCodecParserContext *s)
preferred ID for MPEG-1/2 video decoding
static int mpegvideo_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)

Definition at line 202 of file mpegvideo_parser.c.