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

MxPEG decoder. More...

#include "libavutil/mem.h"
#include "codec_internal.h"
#include "decode.h"
#include "hpeldsp.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 48 of file mxpegdec.c.

◆ mxpeg_decode_init()

static av_cold int mxpeg_decode_init ( AVCodecContext * avctx)
static

Definition at line 65 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 82 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 94 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 147 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 162 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 193 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),
.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_MXPEG
Definition codec_id.h:196
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int mxpeg_decode_init(AVCodecContext *avctx)
Definition mxpegdec.c:65
static int mxpeg_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition mxpegdec.c:193
static av_cold int mxpeg_decode_end(AVCodecContext *avctx)
Definition mxpegdec.c:48

Definition at line 355 of file mxpegdec.c.