libavcodec/ws-snd1.c File Reference

Westwood SNDx codecs. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"

Go to the source code of this file.

Defines

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

Functions

static av_cold int ws_snd_decode_init (AVCodecContext *avctx)
static int ws_snd_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const 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


Detailed Description

Westwood SNDx codecs.

Reference documents about VQA format and its audio codecs can be found here: http://www.multimedia.cx

Definition in file ws-snd1.c.


Define Documentation

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

Definition at line 39 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,
const uint8_t *  buf,
int  buf_size 
) [static]

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

static av_cold int ws_snd_decode_init ( AVCodecContext avctx  )  [static]

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


Variable Documentation

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

Definition at line 34 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 35 of file ws-snd1.c.

Referenced by ws_snd_decode_frame().

Initial value:

 {
    "ws_snd1",
    CODEC_TYPE_AUDIO,
    CODEC_ID_WESTWOOD_SND1,
    0,
    ws_snd_decode_init,
    NULL,
    NULL,
    ws_snd_decode_frame,
    .long_name = NULL_IF_CONFIG_SMALL("Westwood Audio (SND1)"),
}

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


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8