FFmpeg
Macros | Functions | Variables
avs2_parser.c File Reference
#include "parser.h"

Go to the source code of this file.

Macros

#define AVS2_SLICE_MAX_START_CODE   0x000001AF
 
#define AVS2_ISPIC(x)   ((x) == 0xB3 || (x) == 0xB6)
 
#define AVS2_ISUNIT(x)   ((x) == 0xB0 || (x) == 0xB1 || (x) == 0xB2 || AVS2_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

const AVCodecParser ff_avs2_parser
 

Macro Definition Documentation

◆ AVS2_SLICE_MAX_START_CODE

#define AVS2_SLICE_MAX_START_CODE   0x000001AF

Definition at line 24 of file avs2_parser.c.

◆ AVS2_ISPIC

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

Definition at line 26 of file avs2_parser.c.

◆ AVS2_ISUNIT

#define AVS2_ISUNIT (   x)    ((x) == 0xB0 || (x) == 0xB1 || (x) == 0xB2 || AVS2_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

const 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.

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:286
AV_CODEC_ID_AVS2
@ AV_CODEC_ID_AVS2
Definition: codec_id.h:244
ParseContext
Definition: parser.h:28