FFmpeg
Data Structures | Enumerations | Functions | Variables
dsicinvideo.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.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, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
 
static av_cold int cinvideo_decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_dsicinvideo_decoder
 

Detailed Description

Delphine Software International CIN video decoder

Definition in file dsicinvideo.c.

Enumeration Type Documentation

◆ CinVideoBitmapIndex

Enumerator
CIN_CUR_BMP 
CIN_PRE_BMP 
CIN_INT_BMP 

Definition at line 32 of file dsicinvideo.c.

Function Documentation

◆ destroy_buffers()

static av_cold void destroy_buffers ( CinVideoContext cin)
static

Definition at line 46 of file dsicinvideo.c.

Referenced by cinvideo_decode_end().

◆ allocate_buffers()

static av_cold int allocate_buffers ( CinVideoContext cin)
static

Definition at line 54 of file dsicinvideo.c.

Referenced by cinvideo_decode_init().

◆ cinvideo_decode_init()

static av_cold int cinvideo_decode_init ( AVCodecContext avctx)
static

Definition at line 69 of file dsicinvideo.c.

◆ cin_apply_delta_data()

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().

◆ cin_decode_huffman()

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().

◆ cin_decode_lzss()

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().

◆ cin_decode_rle()

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

Definition at line 167 of file dsicinvideo.c.

Referenced by cinvideo_decode_frame().

◆ cinvideo_decode_frame()

static int cinvideo_decode_frame ( AVCodecContext avctx,
AVFrame rframe,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 197 of file dsicinvideo.c.

◆ cinvideo_decode_end()

static av_cold int cinvideo_decode_end ( AVCodecContext avctx)
static

Definition at line 317 of file dsicinvideo.c.

Variable Documentation

◆ ff_dsicinvideo_decoder

const FFCodec ff_dsicinvideo_decoder
Initial value:
= {
.p.name = "dsicinvideo",
CODEC_LONG_NAME("Delphine Software International CIN video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(CinVideoContext),
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 328 of file dsicinvideo.c.

FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:42
CinVideoContext
Definition: dsicinvideo.c:38
AV_CODEC_ID_DSICINVIDEO
@ AV_CODEC_ID_DSICINVIDEO
Definition: codec_id.h:146
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
cinvideo_decode_end
static av_cold int cinvideo_decode_end(AVCodecContext *avctx)
Definition: dsicinvideo.c:317
cinvideo_decode_init
static av_cold int cinvideo_decode_init(AVCodecContext *avctx)
Definition: dsicinvideo.c:69
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
cinvideo_decode_frame
static int cinvideo_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition: dsicinvideo.c:197