FFmpeg
|
mjpeg_parser.c File Reference
MJPEG parser. More...
#include "parser.h"
Include dependency graph for mjpeg_parser.c:
Go to the source code of this file.
Data Structures | |
struct | MJPEGParserContext |
Typedefs | |
typedef struct MJPEGParserContext | MJPEGParserContext |
Functions | |
static int | find_frame_end (MJPEGParserContext *m, const uint8_t *buf, int buf_size) |
Find the end of the current frame in the bitstream. More... | |
static int | jpeg_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) |
Variables | |
AVCodecParser | ff_mjpeg_parser |
Detailed Description
MJPEG parser.
Definition in file mjpeg_parser.c.
Typedef Documentation
typedef struct MJPEGParserContext MJPEGParserContext |
Function Documentation
|
static |
Find 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 40 of file mjpeg_parser.c.
Referenced by jpeg_parse().
|
static |
Definition at line 102 of file mjpeg_parser.c.
Variable Documentation
AVCodecParser ff_mjpeg_parser |
Initial value:
= {
.codec_ids = { AV_CODEC_ID_MJPEG },
.priv_data_size = sizeof(MJPEGParserContext),
.parser_parse = jpeg_parse,
.parser_close = ff_parse_close,
}
struct MJPEGParserContext MJPEGParserContext
Definition: libavcodec/avcodec.h:110
static int jpeg_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: mjpeg_parser.c:102
Definition at line 129 of file mjpeg_parser.c.
Generated on Mon Nov 18 2024 06:52:07 for FFmpeg by 1.8.11