FFmpeg
Data Structures | Functions | Variables
smvjpegdec.c File Reference
#include "avcodec.h"
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "mjpegdec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  SMVJpegDecodeContext
 

Functions

static void smv_img_pnt_plane (uint8_t **dst, uint8_t *src, int src_linesize, int height, int nlines)
 
static void smv_img_pnt (uint8_t *dst_data[4], uint8_t *src_data[4], const int src_linesizes[4], enum AVPixelFormat pix_fmt, int width, int height, int nlines)
 
static av_cold int smvjpeg_decode_end (AVCodecContext *avctx)
 
static av_cold int smvjpeg_decode_init (AVCodecContext *avctx)
 
static int smvjpeg_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 

Variables

static const AVClass smvjpegdec_class
 
AVCodec ff_smvjpeg_decoder
 

Detailed Description

SMV JPEG decoder.

Definition in file smvjpegdec.c.

Function Documentation

◆ smv_img_pnt_plane()

static void smv_img_pnt_plane ( uint8_t **  dst,
uint8_t src,
int  src_linesize,
int  height,
int  nlines 
)
inlinestatic

Definition at line 42 of file smvjpegdec.c.

Referenced by smv_img_pnt().

◆ smv_img_pnt()

static void smv_img_pnt ( uint8_t dst_data[4],
uint8_t src_data[4],
const int  src_linesizes[4],
enum AVPixelFormat  pix_fmt,
int  width,
int  height,
int  nlines 
)
inlinestatic

Definition at line 51 of file smvjpegdec.c.

Referenced by smvjpeg_decode_frame().

◆ smvjpeg_decode_end()

static av_cold int smvjpeg_decode_end ( AVCodecContext avctx)
static

Definition at line 78 of file smvjpegdec.c.

Referenced by smvjpeg_decode_init().

◆ smvjpeg_decode_init()

static av_cold int smvjpeg_decode_init ( AVCodecContext avctx)
static

Definition at line 92 of file smvjpegdec.c.

◆ smvjpeg_decode_frame()

static int smvjpeg_decode_frame ( AVCodecContext avctx,
void *  data,
int data_size,
AVPacket avpkt 
)
static

Definition at line 145 of file smvjpegdec.c.

Variable Documentation

◆ smvjpegdec_class

const AVClass smvjpegdec_class
static
Initial value:
= {
.class_name = "SMVJPEG decoder",
.item_name = av_default_item_name,
}

Definition at line 209 of file smvjpegdec.c.

◆ ff_smvjpeg_decoder

AVCodec ff_smvjpeg_decoder
Initial value:
= {
.name = "smvjpeg",
.long_name = NULL_IF_CONFIG_SMALL("SMV JPEG"),
.priv_data_size = sizeof(SMVJpegDecodeContext),
.priv_class = &smvjpegdec_class,
}

Definition at line 215 of file smvjpegdec.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
smvjpeg_decode_frame
static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: smvjpegdec.c:145
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
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:188
smvjpeg_decode_init
static av_cold int smvjpeg_decode_init(AVCodecContext *avctx)
Definition: smvjpegdec.c:92
AV_CODEC_ID_SMVJPEG
@ AV_CODEC_ID_SMVJPEG
Definition: codec_id.h:258
smvjpegdec_class
static const AVClass smvjpegdec_class
Definition: smvjpegdec.c:209
SMVJpegDecodeContext
Definition: smvjpegdec.c:34
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
smvjpeg_decode_end
static av_cold int smvjpeg_decode_end(AVCodecContext *avctx)
Definition: smvjpegdec.c:78