libavcodec/dca_parser.c File Reference

#include "parser.h"
#include "dca.h"

Go to the source code of this file.

Data Structures

struct  DCAParseContext


#define IS_MARKER(state, i, buf, buf_size)


static int dca_find_frame_end (DCAParseContext *pc1, const uint8_t *buf, int buf_size)
 finds the end of the current frame in the bitstream.
static av_cold int dca_parse_init (AVCodecParserContext *s)
static int dca_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)


AVCodecParser ff_dca_parser

Define Documentation

#define IS_MARKER ( state,
buf_size   ) 


((state == DCA_MARKER_14B_LE && (i < buf_size-2) && (buf[i+1] & 0xF0) == 0xF0 && buf[i+2] == 0x07) \
 || (state == DCA_MARKER_14B_BE && (i < buf_size-2) && buf[i+1] == 0x07 && (buf[i+2] & 0xF0) == 0xF0) \
 || state == DCA_MARKER_RAW_LE || state == DCA_MARKER_RAW_BE)

Definition at line 36 of file dca_parser.c.

Referenced by dca_find_frame_end(), decode_slice(), find_next_marker(), vaapi_vc1_decode_slice(), vc1_decode_frame(), vc1_find_frame_end(), and vc1_split().

Function Documentation

static int dca_find_frame_end ( DCAParseContext pc1,
const uint8_t *  buf,
int  buf_size 
) [static]

finds the end of the current frame in the bitstream.

the position of the first byte of the next frame, or -1

Definition at line 45 of file dca_parser.c.

Referenced by dca_parse().

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

Definition at line 103 of file dca_parser.c.

static av_cold int dca_parse_init ( AVCodecParserContext s  )  [static]

Definition at line 95 of file dca_parser.c.

Variable Documentation

Initial value:

Definition at line 128 of file dca_parser.c.

Generated on Fri Oct 26 02:38:15 2012 for FFmpeg by  doxygen 1.5.8