FFmpeg
Data Structures | Functions | Variables
mxpegdec.c File Reference
#include "libavutil/mem.h"
#include "codec_internal.h"
#include "decode.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, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec 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 47 of file mxpegdec.c.

◆ mxpeg_decode_init()

static av_cold int mxpeg_decode_init ( AVCodecContext avctx)
static

Definition at line 66 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 79 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 91 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 144 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 159 of file mxpegdec.c.

Referenced by mxpeg_decode_frame().

◆ mxpeg_decode_frame()

static int mxpeg_decode_frame ( AVCodecContext avctx,
AVFrame rframe,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 184 of file mxpegdec.c.

Variable Documentation

◆ ff_mxpeg_decoder

const FFCodec ff_mxpeg_decoder
Initial value:
= {
.p.name = "mxpeg",
CODEC_LONG_NAME("Mobotix MxPEG video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(MXpegDecodeContext),
.close = mxpeg_decode_end,
.p.capabilities = AV_CODEC_CAP_DR1,
.p.max_lowres = 3,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 346 of file mxpegdec.c.

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: codec_internal.h:42
AV_CODEC_ID_MXPEG
@ AV_CODEC_ID_MXPEG
Definition: codec_id.h:198
MXpegDecodeContext
Definition: mxpegdec.c:34
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:286
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:271
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:366
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
mxpeg_decode_init
static av_cold int mxpeg_decode_init(AVCodecContext *avctx)
Definition: mxpegdec.c:66
mxpeg_decode_end
static av_cold int mxpeg_decode_end(AVCodecContext *avctx)
Definition: mxpegdec.c:47
mxpeg_decode_frame
static int mxpeg_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition: mxpegdec.c:184
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201