libavcodec/cavs_parser.c File Reference

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

#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)
 finds the end of the current frame in the bitstream.
static int cavsvideo_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)

Variables

AVCodecParser ff_cavsvideo_parser


Detailed Description

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

Author:
Stefan Gehrer <stefan.gehrer@gmx.de>

Definition in file cavs_parser.c.


Function Documentation

static int cavs_find_frame_end ( ParseContext pc,
const uint8_t *  buf,
int  buf_size 
) [static]

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

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 76 of file cavs_parser.c.


Variable Documentation

Initial value:

 {
    .codec_ids      = { CODEC_ID_CAVS },
    .priv_data_size = sizeof(ParseContext1),
    .parser_parse   = cavsvideo_parse,
    .parser_close   = ff_parse1_close,
    .split          = ff_mpeg4video_split,
}

Definition at line 100 of file cavs_parser.c.


Generated on Fri Oct 26 02:43:46 2012 for FFmpeg by  doxygen 1.5.8