FFmpeg
Functions | Variables
cavs_parser.c File Reference
#include "parser.h"
#include "cavs.h"

Go to the source code of this file.

Functions

static int cavs_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size)
 Find the end of the current frame in the bitstream. More...
 
static int cavsvideo_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

const AVCodecParser ff_cavsvideo_parser
 

Detailed Description

Chinese AVS video (AVS1-P2, JiZhun profile) parser

Author
Stefan Gehrer stefa.nosp@m.n.ge.nosp@m.hrer@.nosp@m.gmx..nosp@m.de

Definition in file cavs_parser.c.

Function Documentation

◆ cavs_find_frame_end()

static int cavs_find_frame_end ( ParseContext pc,
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 -1

Definition at line 36 of file cavs_parser.c.

Referenced by cavsvideo_parse().

◆ cavsvideo_parse()

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

Definition at line 75 of file cavs_parser.c.

Variable Documentation

◆ ff_cavsvideo_parser

const AVCodecParser ff_cavsvideo_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_CAVS },
.priv_data_size = sizeof(ParseContext),
.parser_parse = cavsvideo_parse,
.parser_close = ff_parse_close,
}

Definition at line 99 of file cavs_parser.c.

ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:289
ParseContext
Definition: parser.h:28
cavsvideo_parse
static int cavsvideo_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: cavs_parser.c:75
AV_CODEC_ID_CAVS
@ AV_CODEC_ID_CAVS
Definition: codec_id.h:139