libavcodec/adxdec.c File Reference

SEGA CRI adx codecs. More...

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

Go to the source code of this file.


static av_cold int adx_decode_init (AVCodecContext *avctx)
static int adx_decode (ADXContext *c, int16_t *out, const uint8_t *in, int ch)
 Decode 32 samples from 18 bytes.
static int adx_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
static void adx_decode_flush (AVCodecContext *avctx)


AVCodec ff_adpcm_adx_decoder

Detailed Description

SEGA CRI adx codecs.

Reference documents: adx2wav & wav2adx

Definition in file adxdec.c.

Function Documentation

static int adx_decode ( ADXContext c,
int16_t out,
const uint8_t *  in,
int  ch 
) [static]

Decode 32 samples from 18 bytes.

A 16-bit scalar value is applied to 32 residuals, which then have a 2nd-order LPC filter applied to it to form the output signal for a single channel.

Definition at line 67 of file adxdec.c.

Referenced by adx_decode_frame().

static void adx_decode_flush ( AVCodecContext avctx  )  [static]

Definition at line 168 of file adxdec.c.

static int adx_decode_frame ( AVCodecContext avctx,
void *  data,
int *  got_frame_ptr,
AVPacket avpkt 
) [static]

Definition at line 96 of file adxdec.c.

static av_cold int adx_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 36 of file adxdec.c.

Variable Documentation

Initial value:

    .name           = "adpcm_adx",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = CODEC_ID_ADPCM_ADX,
    .priv_data_size = sizeof(ADXContext),
    .init           = adx_decode_init,
    .decode         = adx_decode_frame,
    .flush          = adx_decode_flush,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("SEGA CRI ADX ADPCM"),

Definition at line 175 of file adxdec.c.

Generated on Fri Oct 26 02:46:06 2012 for FFmpeg by  doxygen 1.5.8