#include "parser.h"
#include "h264data.h"
#include "golomb.h"
#include <assert.h>
Go to the source code of this file.
Defines | |
#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. | |
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 |
Definition in file h264_parser.c.
#define UNCHECKED_BITSTREAM_READER 1 |
Definition at line 28 of file h264_parser.c.
static void close | ( | AVCodecParserContext * | s | ) | [static] |
Definition at line 377 of file h264_parser.c.
Referenced by audio_close(), audio_open(), av_file_map(), build_feed_streams(), cache_close(), close_connection(), dv1394_close(), dv1394_read_header(), fbdev_read_close(), fbdev_read_header(), ff_ass_split_override_codes(), ff_xvid_rate_control_init(), grab_read_close(), grab_read_header(), http_receive_data(), main(), mpeg12_class(), read_random(), start_children(), and xvid_encode_init().
static int ff_h264_find_frame_end | ( | H264Context * | h, | |
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
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 292 of file h264_parser.c.
static int h264_split | ( | AVCodecContext * | avctx, | |
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 353 of file h264_parser.c.
static int init | ( | AVCodecParserContext * | s | ) | [static] |
Definition at line 386 of file h264_parser.c.
static int parse_nal_units | ( | AVCodecParserContext * | s, | |
AVCodecContext * | avctx, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [inline, static] |
Parse NAL units of found picture and decode some basic information.
s | parser context. | |
avctx | codec context. | |
buf | buffer with field/frame data. | |
buf_size | size of the buffer. |
Definition at line 143 of file h264_parser.c.
Referenced by h264_parse().
Initial value:
{ .codec_ids = { CODEC_ID_H264 }, .priv_data_size = sizeof(H264Context), .parser_init = init, .parser_parse = h264_parse, .parser_close = close, .split = h264_split, }
Definition at line 394 of file h264_parser.c.