Logo Search packages:      
Sourcecode: blender version File versions

dpcm.c File Reference


Detailed Description

Assorted DPCM (differential pulse code modulation) audio codecs by Mike Melanson (melanson@pcisys.net) Xan DPCM decoder by Mario Brito (mbrito@student.dei.uc.pt) for more information on the specific data formats, visit: http://www.pcisys.net/~melanson/codecs/simpleaudio.html SOL DPCMs implemented by Konstantin Shishkov

Note about using the Xan DPCM decoder: Xan DPCM is used in AVI files found in the Wing Commander IV computer game. These AVI files contain WAVEFORMAT headers which report the audio format as 0x01: raw PCM. Clearly incorrect. To detect Xan DPCM, you will probably have to special-case your AVI demuxer to use Xan DPCM if the file uses 'Xxan' (Xan video) for its video codec. Alternately, such AVI files also contain the fourcc 'Axan' in the 'auds' chunk of the AVI header.

Definition in file dpcm.c.

#include "avcodec.h"

Go to the source code of this file.

Classes

struct  DPCMContext

Defines

#define SATURATE_S16(x)
#define SE_16BIT(x)   if (x & 0x8000) x -= 0x10000;

Functions

static int dpcm_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int dpcm_decode_init (AVCodecContext *avctx)

Variables

static int interplay_delta_table []
AVCodec interplay_dpcm_decoder
AVCodec roq_dpcm_decoder
AVCodec sol_dpcm_decoder
static int sol_table_16 [128]
static int sol_table_new [16]
static int sol_table_old [16]
AVCodec xan_dpcm_decoder


Generated by  Doxygen 1.6.0   Back to index