FFmpeg
Functions | Variables
mjpegbdec.c File Reference
#include <inttypes.h>
#include "avcodec.h"
#include "internal.h"
#include "mjpeg.h"
#include "mjpegdec.h"

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

const AVCodec ff_mjpegb_decoder
 

Detailed Description

Apple MJPEG-B decoder.

Definition in file mjpegbdec.c.

Function Documentation

◆ read_offs()

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

Definition at line 34 of file mjpegbdec.c.

Referenced by mjpegb_decode_frame().

◆ mjpegb_decode_frame()

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

Definition at line 43 of file mjpegbdec.c.

Variable Documentation

◆ ff_mjpegb_decoder

const 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,
}

Definition at line 155 of file mjpegbdec.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:41
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
ff_mjpeg_decode_init
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
Definition: mjpegdec.c:117
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
ff_mjpeg_decode_end
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
Definition: mjpegdec.c:2890
MJpegDecodeContext
Definition: mjpegdec.h:54
mjpegb_decode_frame
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mjpegbdec.c:43
AV_CODEC_ID_MJPEGB
@ AV_CODEC_ID_MJPEGB
Definition: codec_id.h:58
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:49
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201