FFmpeg  4.0
Data Structures | Functions | Variables
smvjpegdec.c File Reference

SMV JPEG decoder. More...

#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,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191

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,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int smvjpeg_decode_init(AVCodecContext *avctx)
Definition: smvjpegdec.c:92
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: smvjpegdec.c:145
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVClass smvjpegdec_class
Definition: smvjpegdec.c:209
static av_cold int smvjpeg_decode_end(AVCodecContext *avctx)
Definition: smvjpegdec.c:78

Definition at line 215 of file smvjpegdec.c.