dsicinav.c File Reference

Delphine Software International CIN audio/video decoders. More...

#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "mathops.h"
Include dependency graph for dsicinav.c:

Go to the source code of this file.

Data Structures

struct  CinVideoContext
 
struct  CinAudioContext
 

Typedefs

typedef enum CinVideoBitmapIndex CinVideoBitmapIndex
 
typedef struct CinVideoContext CinVideoContext
 
typedef struct CinAudioContext CinAudioContext
 

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)
 
static av_cold int cinaudio_decode_init (AVCodecContext *avctx)
 
static int cinaudio_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

static const int16_t cinaudio_delta16_table [256]
 
AVCodec ff_dsicinvideo_decoder
 
AVCodec ff_dsicinaudio_decoder
 

Detailed Description

Delphine Software International CIN audio/video decoders.

Definition in file dsicinav.c.

Typedef Documentation

Enumeration Type Documentation

Enumerator
CIN_CUR_BMP 
CIN_PRE_BMP 
CIN_INT_BMP 

Definition at line 34 of file dsicinav.c.

Function Documentation

static av_cold int allocate_buffers ( CinVideoContext cin)
static

Definition at line 98 of file dsicinav.c.

Referenced by cinvideo_decode_init().

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

Definition at line 130 of file dsicinav.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 136 of file dsicinav.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 169 of file dsicinav.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 201 of file dsicinav.c.

Referenced by cinvideo_decode_frame().

static int cinaudio_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 352 of file dsicinav.c.

static av_cold int cinaudio_decode_init ( AVCodecContext avctx)
static

Definition at line 339 of file dsicinav.c.

static av_cold int cinvideo_decode_end ( AVCodecContext avctx)
static

Definition at line 328 of file dsicinav.c.

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

Definition at line 226 of file dsicinav.c.

static av_cold int cinvideo_decode_init ( AVCodecContext avctx)
static

Definition at line 114 of file dsicinav.c.

static av_cold void destroy_buffers ( CinVideoContext cin)
static

Definition at line 90 of file dsicinav.c.

Referenced by allocate_buffers(), and cinvideo_decode_end().

Variable Documentation

const int16_t cinaudio_delta16_table[256]
static

Definition at line 55 of file dsicinav.c.

Referenced by cinaudio_decode_frame().

AVCodec ff_dsicinaudio_decoder
Initial value:
= {
.name = "dsicinaudio",
.priv_data_size = sizeof(CinAudioContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN audio"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int cinaudio_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: dsicinav.c:352
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct CinAudioContext CinAudioContext
static av_cold int cinaudio_decode_init(AVCodecContext *avctx)
Definition: dsicinav.c:339
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 400 of file dsicinav.c.

AVCodec ff_dsicinvideo_decoder
Initial value:
= {
.name = "dsicinvideo",
.priv_data_size = sizeof(CinVideoContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN video"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int cinvideo_decode_init(AVCodecContext *avctx)
Definition: dsicinav.c:114
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct CinVideoContext CinVideoContext
static av_cold int cinvideo_decode_end(AVCodecContext *avctx)
Definition: dsicinav.c:328
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static int cinvideo_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: dsicinav.c:226
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 388 of file dsicinav.c.