libavcodec/mjpeg_parser.c File Reference

MJPEG parser. More...

#include "parser.h"

Go to the source code of this file.

Data Structures

struct  MJPEGParserContext


static int find_frame_end (MJPEGParserContext *m, const uint8_t *buf, int buf_size)
 Find 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)


AVCodecParser ff_mjpeg_parser

Detailed Description

MJPEG parser.

Definition in file mjpeg_parser.c.

Function Documentation

static int find_frame_end ( MJPEGParserContext m,
const uint8_t *  buf,
int  buf_size 
) [static]

Find the end of the current frame in the bitstream.

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

Definition at line 40 of file mjpeg_parser.c.

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 102 of file mjpeg_parser.c.

Variable Documentation

Initial value:

    .codec_ids      = { CODEC_ID_MJPEG },
    .priv_data_size = sizeof(MJPEGParserContext),
    .parser_parse   = jpeg_parse,
    .parser_close   = ff_parse_close,

Definition at line 129 of file mjpeg_parser.c.

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