hvirtual/quicktime/ffmpeg/libavcodec/ws-snd1.c File Reference

#include "avcodec.h"

Include dependency graph for ws-snd1.c:

Go to the source code of this file.

Data Structures

struct  WSSNDContext

Defines

#define CLIP8(a)   if(a>127)a=127;if(a<-128)a=-128;

Functions

static int ws_snd_decode_init (AVCodecContext *avctx)
static int ws_snd_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)

Variables

static const char ws_adpcm_2bit [] = { -2, -1, 0, 1}
static const char ws_adpcm_4bit []
AVCodec ws_snd1_decoder


Define Documentation

#define CLIP8 ( a   )     if(a>127)a=127;if(a<-128)a=-128;

Definition at line 38 of file ws-snd1.c.

Referenced by ws_snd_decode_frame().


Function Documentation

static int ws_snd_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 47 of file ws-snd1.c.

References CLIP8, LE_16, samples, t, ws_adpcm_2bit, and ws_adpcm_4bit.

static int ws_snd_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 40 of file ws-snd1.c.


Variable Documentation

const char ws_adpcm_2bit[] = { -2, -1, 0, 1} [static]

Definition at line 33 of file ws-snd1.c.

Referenced by ws_snd_decode_frame().

const char ws_adpcm_4bit[] [static]

Initial value:

 {
    -9, -8, -6, -5, -4, -3, -2, -1,
     0,  1,  2,  3,  4,  5,  6,  8 }

Definition at line 34 of file ws-snd1.c.

Referenced by ws_snd_decode_frame().

Initial value:

Definition at line 136 of file ws-snd1.c.

Referenced by avcodec_register_all().


Generated on Mon Apr 28 14:06:44 2008 for Cinelerra by  doxygen 1.5.5