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

Delphine Software International CIN video decoder. More...

#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  CinVideoContext
 

Enumerations

enum  CinVideoBitmapIndex { CIN_CUR_BMP = 0, CIN_PRE_BMP = 1, CIN_INT_BMP = 2 }
 

Functions

static av_cold void destroy_buffers (CinVideoContext *cin)
 
static av_cold int allocate_buffers (CinVideoContext *cin)
 
static av_cold int cinvideo_decode_init (AVCodecContext *avctx)
 
static void cin_apply_delta_data (const unsigned char *src, unsigned char *dst, int size)
 
static int cin_decode_huffman (const unsigned char *src, int src_size, unsigned char *dst, int dst_size)
 
static int cin_decode_lzss (const unsigned char *src, int src_size, unsigned char *dst, int dst_size)
 
static int cin_decode_rle (const unsigned char *src, int src_size, unsigned char *dst, int dst_size)
 
static int cinvideo_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int cinvideo_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_dsicinvideo_decoder
 

Detailed Description

Delphine Software International CIN video decoder.

Definition in file dsicinvideo.c.

Enumeration Type Documentation

Enumerator
CIN_CUR_BMP 
CIN_PRE_BMP 
CIN_INT_BMP 

Definition at line 31 of file dsicinvideo.c.

Function Documentation

static av_cold void destroy_buffers ( CinVideoContext cin)
static

Definition at line 45 of file dsicinvideo.c.

Referenced by allocate_buffers(), and cinvideo_decode_end().

static av_cold int allocate_buffers ( CinVideoContext cin)
static

Definition at line 53 of file dsicinvideo.c.

Referenced by cinvideo_decode_init().

static av_cold int cinvideo_decode_init ( AVCodecContext avctx)
static

Definition at line 69 of file dsicinvideo.c.

static void cin_apply_delta_data ( const unsigned char *  src,
unsigned char *  dst,
int  size 
)
static

Definition at line 87 of file dsicinvideo.c.

Referenced by cinvideo_decode_frame().

static int cin_decode_huffman ( const unsigned char *  src,
int  src_size,
unsigned char *  dst,
int  dst_size 
)
static

Definition at line 94 of file dsicinvideo.c.

Referenced by cinvideo_decode_frame().

static int cin_decode_lzss ( const unsigned char *  src,
int  src_size,
unsigned char *  dst,
int  dst_size 
)
static

Definition at line 129 of file dsicinvideo.c.

Referenced by cinvideo_decode_frame().

static int cin_decode_rle ( const unsigned char *  src,
int  src_size,
unsigned char *  dst,
int  dst_size 
)
static

Definition at line 164 of file dsicinvideo.c.

Referenced by cinvideo_decode_frame().

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

Definition at line 190 of file dsicinvideo.c.

static av_cold int cinvideo_decode_end ( AVCodecContext avctx)
static

Definition at line 296 of file dsicinvideo.c.

Variable Documentation

AVCodec ff_dsicinvideo_decoder
Initial value:
= {
.name = "dsicinvideo",
.long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN video"),
.priv_data_size = sizeof(CinVideoContext),
.capabilities = AV_CODEC_CAP_DR1,
}
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
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static av_cold int cinvideo_decode_init(AVCodecContext *avctx)
Definition: dsicinvideo.c:69
static av_cold int cinvideo_decode_end(AVCodecContext *avctx)
Definition: dsicinvideo.c:296
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:1002
static int cinvideo_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: dsicinvideo.c:190

Definition at line 307 of file dsicinvideo.c.