libavcodec/dirac_parser.c File Reference

Dirac Parser. More...

#include "libavutil/intreadwrite.h"
#include "parser.h"

Go to the source code of this file.

Data Structures

struct  DiracParseContext
 Find the end of the current frame in the bitstream. More...
struct  DiracParseUnit

Defines

#define DIRAC_PARSE_INFO_PREFIX   0x42424344

Functions

static int find_frame_end (DiracParseContext *pc, const uint8_t *buf, int buf_size)
static int unpack_parse_unit (DiracParseUnit *pu, DiracParseContext *pc, int offset)
static int dirac_combine_frame (AVCodecParserContext *s, AVCodecContext *avctx, int next, const uint8_t **buf, int *buf_size)
static int dirac_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
static void dirac_parse_close (AVCodecParserContext *s)

Variables

AVCodecParser ff_dirac_parser


Detailed Description

Dirac Parser.

Author:
Marco Gerards <marco@gnu.org>

Definition in file dirac_parser.c.


Define Documentation

#define DIRAC_PARSE_INFO_PREFIX   0x42424344

Definition at line 33 of file dirac_parser.c.

Referenced by find_frame_end().


Function Documentation

static int dirac_combine_frame ( AVCodecParserContext s,
AVCodecContext avctx,
int  next,
const uint8_t **  buf,
int *  buf_size 
) [static]

Definition at line 115 of file dirac_parser.c.

Referenced by dirac_parse().

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

Definition at line 210 of file dirac_parser.c.

Referenced by libdirac_decode_frame().

static void dirac_parse_close ( AVCodecParserContext s  )  [static]

Definition at line 242 of file dirac_parser.c.

static int find_frame_end ( DiracParseContext pc,
const uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 52 of file dirac_parser.c.

Referenced by dirac_parse(), and jpeg_parse().

static int unpack_parse_unit ( DiracParseUnit pu,
DiracParseContext pc,
int  offset 
) [static]

Definition at line 97 of file dirac_parser.c.

Referenced by dirac_combine_frame().


Variable Documentation

Initial value:

 {
    .codec_ids      = { CODEC_ID_DIRAC },
    .priv_data_size = sizeof(DiracParseContext),
    .parser_parse   = dirac_parse,
    .parser_close   = dirac_parse_close,
}

Definition at line 250 of file dirac_parser.c.


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