FFmpeg
Data Structures | Macros | Functions | Variables
mpeg4video_parser.c File Reference
#include "internal.h"
#include "parser.h"
#include "mpegvideo.h"
#include "mpeg4video.h"
#include "mpeg4video_parser.h"

Go to the source code of this file.

Data Structures

struct  Mp4vParseContext
 

Macros

#define UNCHECKED_BITSTREAM_READER   1
 

Functions

int ff_mpeg4_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size)
 Find the end of the current frame in the bitstream. More...
 
static int mpeg4_decode_header (AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 
static av_cold int mpeg4video_parse_init (AVCodecParserContext *s)
 
static int mpeg4video_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

AVCodecParser ff_mpeg4video_parser
 

Macro Definition Documentation

◆ UNCHECKED_BITSTREAM_READER

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 23 of file mpeg4video_parser.c.

Function Documentation

◆ ff_mpeg4_find_frame_end()

int ff_mpeg4_find_frame_end ( ParseContext pc,
const uint8_t buf,
int  buf_size 
)

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 37 of file mpeg4video_parser.c.

Referenced by ff_h263_decode_frame(), and mpeg4video_parse().

◆ mpeg4_decode_header()

static int mpeg4_decode_header ( AVCodecParserContext s1,
AVCodecContext avctx,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 78 of file mpeg4video_parser.c.

Referenced by mpeg4video_parse().

◆ mpeg4video_parse_init()

static av_cold int mpeg4video_parse_init ( AVCodecParserContext s)
static

Definition at line 117 of file mpeg4video_parser.c.

◆ mpeg4video_parse()

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

Definition at line 130 of file mpeg4video_parser.c.

Variable Documentation

◆ ff_mpeg4video_parser

AVCodecParser ff_mpeg4video_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_MPEG4 },
.priv_data_size = sizeof(struct Mp4vParseContext),
.parser_init = mpeg4video_parse_init,
.parser_parse = mpeg4video_parse,
.parser_close = ff_parse_close,
}

Definition at line 156 of file mpeg4video_parser.c.

ff_mpeg4video_split
int ff_mpeg4video_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
Definition: parser.c:322
AV_CODEC_ID_MPEG4
@ AV_CODEC_ID_MPEG4
Definition: avcodec.h:230
ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:315
mpeg4video_parse
static int mpeg4video_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: mpeg4video_parser.c:130
mpeg4video_parse_init
static av_cold int mpeg4video_parse_init(AVCodecParserContext *s)
Definition: mpeg4video_parser.c:117
Mp4vParseContext
Definition: mpeg4video_parser.c:31