FFmpeg
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

◆ SLICE_MAX_START_CODE

#define SLICE_MAX_START_CODE   0x000001af

Definition at line 24 of file avs2_parser.c.

◆ ISPIC

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

Definition at line 26 of file avs2_parser.c.

◆ ISUNIT

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

Definition at line 27 of file avs2_parser.c.

Function Documentation

◆ avs2_find_frame_end()

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().

◆ 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

◆ ff_avs2_parser

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,
}

Definition at line 89 of file avs2_parser.c.

ff_mpeg4video_split
int ff_mpeg4video_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
Definition: parser.c:326
avs2_parse
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
ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:319
AV_CODEC_ID_AVS2
@ AV_CODEC_ID_AVS2
Definition: codec_id.h:243
ParseContext
Definition: parser.h:28
split
static char * split(char *message, char delim)
Definition: af_channelmap.c:81