FFmpeg
Functions | Variables
avs2_parser.c File Reference
#include "libavutil/avutil.h"
#include "avs2.h"
#include "get_bits.h"
#include "parser.h"

Go to the source code of this file.

Functions

static int avs2_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size)
 
static void parse_avs2_seq_header (AVCodecParserContext *s, const uint8_t *buf, int buf_size, AVCodecContext *avctx)
 
static void parse_avs2_units (AVCodecParserContext *s, const uint8_t *buf, int buf_size, AVCodecContext *avctx)
 
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
 

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 27 of file avs2_parser.c.

Referenced by avs2_parse().

◆ parse_avs2_seq_header()

static void parse_avs2_seq_header ( AVCodecParserContext s,
const uint8_t *  buf,
int  buf_size,
AVCodecContext avctx 
)
static

Definition at line 63 of file avs2_parser.c.

Referenced by parse_avs2_units().

◆ parse_avs2_units()

static void parse_avs2_units ( AVCodecParserContext s,
const uint8_t *  buf,
int  buf_size,
AVCodecContext avctx 
)
static

Definition at line 134 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 166 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 192 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:166
ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:290
AV_CODEC_ID_AVS2
@ AV_CODEC_ID_AVS2
Definition: codec_id.h:246
ParseContext
Definition: parser.h:28