mjpeg_parser.c File Reference


Detailed Description

MJPEG parser.

Definition in file mjpeg_parser.c.

Go to the source code of this file.

Functions

static int find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size)
 finds the end of the current frame in the bitstream.
static int jpeg_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)

Variables

AVCodecParser mjpeg_parser


Function Documentation

static int 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 mjpeg_parser.c.

Referenced by jpeg_parse().

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

Definition at line 73 of file mjpeg_parser.c.


Variable Documentation

Initial value:

Definition at line 95 of file mjpeg_parser.c.


Generated on Sat Dec 18 05:15:53 2010 for MythTV by  doxygen 1.5.5