Logo Search packages:      
Sourcecode: blender version File versions

adpcm.c File Reference


Detailed Description

ADPCM codecs. First version by Francois Revol (revol@free.fr) Fringe ADPCM codecs (e.g., DK3, DK4, Westwood) by Mike Melanson (melanson@pcisys.net) CD-ROM XA ADPCM codec by BERO EA ADPCM decoder by Robin Kay (komadori@myrealbox.com)

Features and limitations:

Reference documents: http://www.pcisys.net/~melanson/codecs/simpleaudio.html http://www.geocities.com/SiliconValley/8682/aud3.txt http://openquicktime.sourceforge.net/plugins.htm XAnim sources (xa_codec.c) http://www.rasnaimaging.com/people/lapus/download.html http://www.cs.ucla.edu/~leec/mediabench/applications.html SoX source code http://home.sprynet.com/~cbagwell/sox.html

CD-ROM XA: http://ku-www.ss.titech.ac.jp/~yatsushi/xaadpcm.html vagpack & depack http://homepages.compuserve.de/bITmASTER32/psx-index.html readstr http://www.geocities.co.jp/Playtown/2004/

Definition in file adpcm.c.

#include "avcodec.h"
#include "bitstream.h"

Go to the source code of this file.

Classes

struct  ADPCMChannelStatus
struct  ADPCMContext

Defines

#define ADPCM_CODEC(id, name)   ADPCM_ENCODER(id,name) ADPCM_DECODER(id,name)
#define ADPCM_DECODER(id, name)
#define ADPCM_ENCODER(id, name)
#define BLKSIZE   1024
#define CLAMP_TO_SHORT(value)
#define DK3_GET_NEXT_NIBBLE()

Functions

 ADPCM_CODEC (CODEC_ID_ADPCM_SBPRO_2, adpcm_sbpro_2)
 ADPCM_CODEC (CODEC_ID_ADPCM_SBPRO_3, adpcm_sbpro_3)
 ADPCM_CODEC (CODEC_ID_ADPCM_SBPRO_4, adpcm_sbpro_4)
 ADPCM_CODEC (CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha)
 ADPCM_CODEC (CODEC_ID_ADPCM_SWF, adpcm_swf)
 ADPCM_CODEC (CODEC_ID_ADPCM_CT, adpcm_ct)
 ADPCM_CODEC (CODEC_ID_ADPCM_EA, adpcm_ea)
 ADPCM_CODEC (CODEC_ID_ADPCM_ADX, adpcm_adx)
 ADPCM_CODEC (CODEC_ID_ADPCM_XA, adpcm_xa)
 ADPCM_CODEC (CODEC_ID_ADPCM_4XM, adpcm_4xm)
 ADPCM_CODEC (CODEC_ID_ADPCM_MS, adpcm_ms)
 ADPCM_CODEC (CODEC_ID_ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg)
 ADPCM_CODEC (CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws)
 ADPCM_CODEC (CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4)
 ADPCM_CODEC (CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3)
 ADPCM_CODEC (CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav)
 ADPCM_CODEC (CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt)
static short adpcm_ct_expand_nibble (ADPCMChannelStatus *c, char nibble)
static int adpcm_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int adpcm_decode_init (AVCodecContext *avctx)
static short adpcm_ima_expand_nibble (ADPCMChannelStatus *c, char nibble, int shift)
static short adpcm_ms_expand_nibble (ADPCMChannelStatus *c, char nibble)
static short adpcm_sbpro_expand_nibble (ADPCMChannelStatus *c, char nibble, int size, int shift)
static short adpcm_yamaha_expand_nibble (ADPCMChannelStatus *c, unsigned char nibble)
static void xa_decode (short *out, const unsigned char *in, ADPCMChannelStatus *left, ADPCMChannelStatus *right, int inc)

Variables

static const int AdaptationTable []
static const int AdaptCoeff1 []
static const int AdaptCoeff2 []
static const int ct_adpcm_table [8]
static const int ea_adpcm_table []
static const int index_table [16]
static const int step_table [89]
static const int swf_index_tables [4][16]
static const int xa_adpcm_table [5][2]
static const int yamaha_difflookup []
static const int yamaha_indexscale []


Generated by  Doxygen 1.6.0   Back to index