h264_parser.c File Reference

H.264 / AVC / MPEG4 part10 parser. More...

#include "parser.h"
#include "h264data.h"
#include "golomb.h"
#include "internal.h"
Include dependency graph for h264_parser.c:

Go to the source code of this file.

Macros

#define UNCHECKED_BITSTREAM_READER   1
 

Functions

static int ff_h264_find_frame_end (H264Context *h, const uint8_t *buf, int buf_size)
 
static int parse_nal_units (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 Parse NAL units of found picture and decode some basic information. More...
 
static int h264_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 
static int h264_split (AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 
static void close (AVCodecParserContext *s)
 
static int init (AVCodecParserContext *s)
 

Variables

AVCodecParser ff_h264_parser
 

Detailed Description

H.264 / AVC / MPEG4 part10 parser.

Author
Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at

Definition in file h264_parser.c.

Macro Definition Documentation

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 28 of file h264_parser.c.

Function Documentation

static int ff_h264_find_frame_end ( H264Context h,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 36 of file h264_parser.c.

Referenced by h264_parse().

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

Definition at line 290 of file h264_parser.c.

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

Definition at line 351 of file h264_parser.c.

static int init ( AVCodecParserContext s)
static

Definition at line 384 of file h264_parser.c.

static int parse_nal_units ( AVCodecParserContext s,
AVCodecContext avctx,
const uint8_t buf,
int  buf_size 
)
inlinestatic

Parse NAL units of found picture and decode some basic information.

Parameters
sparser context.
avctxcodec context.
bufbuffer with field/frame data.
buf_sizesize of the buffer.

Definition at line 141 of file h264_parser.c.

Referenced by h264_parse().

Variable Documentation

AVCodecParser ff_h264_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_H264 },
.priv_data_size = sizeof(H264Context),
.parser_init = init,
.parser_parse = h264_parse,
.parser_close = close,
}
struct H264Context H264Context
H264Context.
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:384
Note except for filters that can have queued request_frame does not push and as a the filter_frame method will be called and do the work Legacy the filter_frame method was split
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static int h264_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
Definition: h264_parser.c:351
static int h264_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: h264_parser.c:290

Definition at line 392 of file h264_parser.c.