FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
avs2_parser.c File Reference
#include "parser.h"

Go to the source code of this file.

Macros

#define SLICE_MAX_START_CODE   0x000001af
 
#define ISPIC(x)   ((x) == 0xB3 || (x) == 0xB6)
 
#define ISUNIT(x)   ((x) == 0xB0 || (x) == 0xB1 || (x) == 0xB2 || ISPIC(x))
 

Functions

static int avs2_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size)
 
static int avs2_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

AVCodecParser ff_avs2_parser
 

Macro Definition Documentation

#define SLICE_MAX_START_CODE   0x000001af
#define ISPIC (   x)    ((x) == 0xB3 || (x) == 0xB6)

Definition at line 26 of file avs2_parser.c.

#define ISUNIT (   x)    ((x) == 0xB0 || (x) == 0xB1 || (x) == 0xB2 || ISPIC(x))

Definition at line 27 of file avs2_parser.c.

Referenced by avs2_find_frame_end().

Function Documentation

static int avs2_find_frame_end ( ParseContext pc,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 29 of file avs2_parser.c.

Referenced by avs2_parse().

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

Definition at line 65 of file avs2_parser.c.

Variable Documentation

AVCodecParser ff_avs2_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_AVS2 },
.priv_data_size = sizeof(ParseContext),
.parser_parse = avs2_parse,
.parser_close = ff_parse_close,
}
int ff_mpeg4video_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
Definition: parser.c:319
static char * split(char *message, char delim)
Definition: af_channelmap.c:81
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:312
static int avs2_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: avs2_parser.c:65

Definition at line 89 of file avs2_parser.c.