FFmpeg
Loading...
Searching...
No Matches
cavs_parser.c File Reference

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

#include "parser.h"
#include "cavs.h"
#include "get_bits.h"
#include "mpeg12data.h"
#include "parser_internal.h"
#include "startcode.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.
 
static int parse_seq_header (AVCodecParserContext *s, AVCodecContext *avctx, GetBitContext *gb)
 
static int cavs_parse_frame (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 
static int cavsvideo_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

const FFCodecParser 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 40 of file cavs_parser.c.

Referenced by cavsvideo_parse().

◆ parse_seq_header()

static int parse_seq_header ( AVCodecParserContext * s,
AVCodecContext * avctx,
GetBitContext * gb )
static

Definition at line 79 of file cavs_parser.c.

Referenced by cavs_parse_frame().

◆ cavs_parse_frame()

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

Definition at line 123 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 159 of file cavs_parser.c.

Variable Documentation

◆ ff_cavsvideo_parser

const FFCodecParser ff_cavsvideo_parser
Initial value:
= {
.priv_data_size = sizeof(ParseContext),
}
static int parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition apv_parser.c:92
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
static int cavsvideo_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
@ AV_CODEC_ID_CAVS
Definition codec_id.h:137
av_cold void ff_parse_close(AVCodecParserContext *s)
Definition parser.c:300
#define PARSER_CODEC_LIST(...)

Definition at line 186 of file cavs_parser.c.