FFmpeg
Data Structures | Functions | Variables
mxpegdec.c File Reference
#include "internal.h"
#include "mjpeg.h"
#include "mjpegdec.h"

Go to the source code of this file.

Data Structures

struct  MXpegDecodeContext
 

Functions

static av_cold int mxpeg_decode_end (AVCodecContext *avctx)
 
static av_cold int mxpeg_decode_init (AVCodecContext *avctx)
 
static int mxpeg_decode_app (MXpegDecodeContext *s, const uint8_t *buf_ptr, int buf_size)
 
static int mxpeg_decode_mxm (MXpegDecodeContext *s, const uint8_t *buf_ptr, int buf_size)
 
static int mxpeg_decode_com (MXpegDecodeContext *s, const uint8_t *buf_ptr, int buf_size)
 
static int mxpeg_check_dimensions (MXpegDecodeContext *s, MJpegDecodeContext *jpg, AVFrame *reference_ptr)
 
static int mxpeg_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

const AVCodec ff_mxpeg_decoder
 

Detailed Description

MxPEG decoder

Definition in file mxpegdec.c.

Function Documentation

◆ mxpeg_decode_end()

static av_cold int mxpeg_decode_end ( AVCodecContext avctx)
static

Definition at line 45 of file mxpegdec.c.

◆ mxpeg_decode_init()

static av_cold int mxpeg_decode_init ( AVCodecContext avctx)
static

Definition at line 64 of file mxpegdec.c.

◆ mxpeg_decode_app()

static int mxpeg_decode_app ( MXpegDecodeContext s,
const uint8_t *  buf_ptr,
int  buf_size 
)
static

Definition at line 77 of file mxpegdec.c.

Referenced by mxpeg_decode_frame().

◆ mxpeg_decode_mxm()

static int mxpeg_decode_mxm ( MXpegDecodeContext s,
const uint8_t *  buf_ptr,
int  buf_size 
)
static

Definition at line 89 of file mxpegdec.c.

Referenced by mxpeg_decode_com().

◆ mxpeg_decode_com()

static int mxpeg_decode_com ( MXpegDecodeContext s,
const uint8_t *  buf_ptr,
int  buf_size 
)
static

Definition at line 142 of file mxpegdec.c.

Referenced by mxpeg_decode_frame().

◆ mxpeg_check_dimensions()

static int mxpeg_check_dimensions ( MXpegDecodeContext s,
MJpegDecodeContext jpg,
AVFrame reference_ptr 
)
static

Definition at line 157 of file mxpegdec.c.

Referenced by mxpeg_decode_frame().

◆ mxpeg_decode_frame()

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

Definition at line 182 of file mxpegdec.c.

Variable Documentation

◆ ff_mxpeg_decoder

const AVCodec ff_mxpeg_decoder
Initial value:
= {
.name = "mxpeg",
.long_name = NULL_IF_CONFIG_SMALL("Mobotix MxPEG video"),
.priv_data_size = sizeof(MXpegDecodeContext),
.close = mxpeg_decode_end,
.capabilities = AV_CODEC_CAP_DR1,
.max_lowres = 3,
}

Definition at line 345 of file mxpegdec.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:42
AV_CODEC_ID_MXPEG
@ AV_CODEC_ID_MXPEG
Definition: codec_id.h:196
MXpegDecodeContext
Definition: mxpegdec.c:32
init
static int init
Definition: av_tx.c:47
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
mxpeg_decode_frame
static int mxpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mxpegdec.c:182
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:50
mxpeg_decode_init
static av_cold int mxpeg_decode_init(AVCodecContext *avctx)
Definition: mxpegdec.c:64
mxpeg_decode_end
static av_cold int mxpeg_decode_end(AVCodecContext *avctx)
Definition: mxpegdec.c:45
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201