libavcodec/adxdec.c File Reference

SEGA CRI adx codecs. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "adx.h"
#include "get_bits.h"
#include "internal.h"
Include dependency graph for libavcodec/adxdec.c:

Go to the source code of this file.

Functions

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

Variables

AVCodec ff_adpcm_adx_decoder
 

Detailed Description

SEGA CRI adx codecs.

Reference documents: http://ku-www.ss.titech.ac.jp/~yatsushi/adx.html adx2wav & wav2adx http://www.geocities.co.jp/Playtown/2004/

Definition in file libavcodec/adxdec.c.

Function Documentation

static int adx_decode ( ADXContext c,
int16_t *  out,
int  offset,
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 65 of file libavcodec/adxdec.c.

Referenced by adx_decode_frame().

static void adx_decode_flush ( AVCodecContext avctx)
static

Definition at line 168 of file libavcodec/adxdec.c.

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

Definition at line 95 of file libavcodec/adxdec.c.

static av_cold int adx_decode_init ( AVCodecContext avctx)
static

Definition at line 37 of file libavcodec/adxdec.c.

Variable Documentation

AVCodec ff_adpcm_adx_decoder
Initial value:
= {
.name = "adpcm_adx",
.priv_data_size = sizeof(ADXContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX ADPCM"),
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P,
}
static av_cold int adx_decode_init(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
struct ADXContext ADXContext
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static void adx_decode_flush(AVCodecContext *avctx)
static int adx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
static void flush(AVCodecContext *avctx)
AVSampleFormat
Audio Sample Formats.
Definition: samplefmt.h:49
signed 16 bits, planar
Definition: samplefmt.h:58
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 175 of file libavcodec/adxdec.c.