Libav
Macros | Functions | Variables
hevc_parser.c File Reference
#include "libavutil/common.h"
#include "parser.h"
#include "hevc.h"

Go to the source code of this file.

Macros

#define START_CODE   0x000001
 start_code_prefix_one_3bytes More...
 

Functions

static int hevc_find_frame_end (AVCodecParserContext *s, const uint8_t *buf, int buf_size)
 Find the end of the current frame in the bitstream. More...
 
static int hevc_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 
static int hevc_split (AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 

Variables

AVCodecParser ff_hevc_parser
 

Macro Definition Documentation

#define START_CODE   0x000001

start_code_prefix_one_3bytes

Definition at line 28 of file hevc_parser.c.

Referenced by hevc_find_frame_end(), and hevc_split().

Function Documentation

static int hevc_find_frame_end ( AVCodecParserContext s,
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 END_NOT_FOUND

Definition at line 34 of file hevc_parser.c.

Referenced by hevc_parse().

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

Definition at line 74 of file hevc_parser.c.

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

Definition at line 98 of file hevc_parser.c.

Variable Documentation

AVCodecParser ff_hevc_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_HEVC },
.priv_data_size = sizeof(ParseContext),
.parser_parse = hevc_parse,
.parser_close = ff_parse_close,
}
static int hevc_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
Definition: hevc_parser.c:98
static char * split(char *message, char delim)
Definition: af_channelmap.c:86
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:287
static int hevc_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: hevc_parser.c:74

Definition at line 119 of file hevc_parser.c.