FFmpeg
Loading...
Searching...
No Matches
mjpegbdec.c File Reference

Apple MJPEG-B decoder. More...

#include <inttypes.h>
#include "avcodec.h"
#include "codec_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, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_mjpegb_decoder
 
const FFCodec ff_media100_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,
AVFrame * rframe,
int * got_frame,
AVPacket * avpkt )
static

Definition at line 43 of file mjpegbdec.c.

Variable Documentation

◆ ff_mjpegb_decoder

const FFCodec ff_mjpegb_decoder
Initial value:
= {
.p.name = "mjpegb",
CODEC_LONG_NAME("Apple MJPEG-B"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(MJpegDecodeContext),
.p.capabilities = AV_CODEC_CAP_DR1,
.p.max_lowres = 3,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_MJPEGB
Definition codec_id.h:58
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static int mjpegb_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition mjpegbdec.c:43
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
Definition mjpegdec.c:124
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
Definition mjpegdec.c:2900

Definition at line 153 of file mjpegbdec.c.

◆ ff_media100_decoder

const FFCodec ff_media100_decoder
Initial value:
= {
.p.name = "media100",
CODEC_LONG_NAME("Media 100"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(MJpegDecodeContext),
.p.capabilities = AV_CODEC_CAP_DR1,
.p.max_lowres = 3,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.bsfs = "media100_to_mjpegb",
}
@ AV_CODEC_ID_MEDIA100
Definition codec_id.h:313

Definition at line 167 of file mjpegbdec.c.