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

MxPEG decoder. More...

#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

AVCodec ff_mxpeg_decoder
 

Detailed Description

MxPEG decoder.

Definition in file mxpegdec.c.

Function Documentation

static av_cold int mxpeg_decode_end ( AVCodecContext avctx)
static

Definition at line 45 of file mxpegdec.c.

Referenced by mxpeg_decode_init().

static av_cold int mxpeg_decode_init ( AVCodecContext avctx)
static

Definition at line 64 of file mxpegdec.c.

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().

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().

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().

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().

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

Definition at line 184 of file mxpegdec.c.

Variable Documentation

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,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
static int mxpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mxpegdec.c:184
#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:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static av_cold int mxpeg_decode_init(AVCodecContext *avctx)
Definition: mxpegdec.c:64
static av_cold int mxpeg_decode_end(AVCodecContext *avctx)
Definition: mxpegdec.c:45
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:968

Definition at line 337 of file mxpegdec.c.