All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
mjpegbdec.c File Reference

Apple MJPEG-B decoder. More...

#include <inttypes.h>
#include "avcodec.h"
#include "internal.h"
#include "mjpeg.h"
#include "mjpegdec.h"

Go to the source code of this file.


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)


AVCodec ff_mjpegb_decoder

Detailed Description

Apple MJPEG-B decoder.

Definition in file mjpegbdec.c.

Function Documentation

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

Definition at line 34 of file mjpegbdec.c.

Referenced by mjpegb_decode_frame().

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

Definition at line 43 of file mjpegbdec.c.

Variable Documentation

AVCodec ff_mjpegb_decoder
Initial value:
= {
.name = "mjpegb",
.long_name = NULL_IF_CONFIG_SMALL("Apple MJPEG-B"),
.priv_data_size = sizeof(MJpegDecodeContext),
.capabilities = AV_CODEC_CAP_DR1,
.max_lowres = 3,
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
Definition: mjpegdec.c:2484
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:180
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mjpegbdec.c:43
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
Definition: mjpegdec.c:110
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
Definition: ffmpeg.c:2243
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:994

Definition at line 160 of file mjpegbdec.c.