mjpegbdec.c File Reference

Apple MJPEG-B decoder. More...

#include "avcodec.h"
#include "mjpeg.h"
#include "mjpegdec.h"
Include dependency graph for mjpegbdec.c:

Go to the source code of this file.

Functions

static uint32_t read_offs (AVCodecContext *avctx, GetBitContext *gb, uint32_t size, const char *err_msg)
 
static int mjpegb_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

AVCodec ff_mjpegb_decoder
 

Detailed Description

Apple MJPEG-B decoder.

Definition in file mjpegbdec.c.

Function Documentation

static int mjpegb_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 40 of file mjpegbdec.c.

static uint32_t read_offs ( AVCodecContext avctx,
GetBitContext gb,
uint32_t  size,
const char *  err_msg 
)
static

Definition at line 31 of file mjpegbdec.c.

Referenced by mjpegb_decode_frame().

Variable Documentation

AVCodec ff_mjpegb_decoder
Initial value:
= {
.name = "mjpegb",
.priv_data_size = sizeof(MJpegDecodeContext),
.capabilities = CODEC_CAP_DR1,
.max_lowres = 3,
.long_name = NULL_IF_CONFIG_SMALL("Apple MJPEG-B"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
Definition: mjpegdec.c:1867
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mjpegbdec.c:40
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
struct MJpegDecodeContext MJpegDecodeContext
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
Definition: mjpegdec.c:83
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 156 of file mjpegbdec.c.