Libav
Functions | Variables
sp5xdec.c File Reference

Sunplus JPEG decoder (SP5X). More...

#include "avcodec.h"
#include "mjpeg.h"
#include "mjpegdec.h"
#include "sp5x.h"

Go to the source code of this file.

Functions

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

Variables

AVCodec ff_sp5x_decoder
 
AVCodec ff_amv_decoder
 

Detailed Description

Sunplus JPEG decoder (SP5X).

Definition in file sp5xdec.c.

Function Documentation

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

Definition at line 33 of file sp5xdec.c.

Variable Documentation

AVCodec ff_sp5x_decoder
Initial value:
= {
.name = "sp5x",
.long_name = NULL_IF_CONFIG_SMALL("Sunplus JPEG (SP5X)"),
.priv_data_size = sizeof(MJpegDecodeContext),
.capabilities = CODEC_CAP_DR1,
}
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:275
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:684
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
Definition: mjpegdec.c:1678
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
Definition: mjpegdec.c:85
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: sp5xdec.c:33
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499

Definition at line 96 of file sp5xdec.c.

AVCodec ff_amv_decoder
Initial value:
= {
.name = "amv",
.long_name = NULL_IF_CONFIG_SMALL("AMV Video"),
.priv_data_size = sizeof(MJpegDecodeContext),
}
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:275
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
Definition: mjpegdec.c:1678
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
Definition: mjpegdec.c:85
static int sp5x_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: sp5xdec.c:33
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499

Definition at line 108 of file sp5xdec.c.