#include "avcodec.h"

Go to the source code of this file.
Data Structures | |
| struct | PREV |
| struct | ADXContext |
Defines | |
| #define | BASEVOL 0x4000 |
| #define | SCALE1 0x7298 |
| #define | SCALE2 0x3350 |
| #define | CLIP(s) if (s>32767) s=32767; else if (s<-32768) s=-32768 |
Functions | |
| static void | adx_decode (short *out, const unsigned char *in, PREV *prev) |
| static void | adx_decode_stereo (short *out, const unsigned char *in, PREV *prev) |
| static uint32_t | read_long (const unsigned char *p) |
| int | is_adx (const unsigned char *buf, size_t bufsize) |
| static int | adx_decode_header (AVCodecContext *avctx, const unsigned char *buf, size_t bufsize) |
| static int | adx_decode_init (AVCodecContext *avctx) |
| static int | adx_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf0, int buf_size) |
Variables | |
| AVCodec | adx_adpcm_decoder |
Reference documents: http://ku-www.ss.titech.ac.jp/~yatsushi/adx.html adx2wav & wav2adx http://www.geocities.co.jp/Playtown/2004/
Definition in file adx.c.
| #define BASEVOL 0x4000 |
| #define SCALE1 0x7298 |
| #define SCALE2 0x3350 |
| static void adx_decode | ( | short * | out, | |
| const unsigned char * | in, | |||
| PREV * | prev | |||
| ) | [static] |
| static int adx_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf0, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 330 of file adx.c.
References adx_decode(), adx_decode_header(), adx_decode_stereo(), AVCodecContext::channels, ADXContext::dec_temp, ADXContext::header_parsed, ADXContext::in_temp, memcpy, ADXContext::prev, and AVCodecContext::priv_data.

| static int adx_decode_header | ( | AVCodecContext * | avctx, | |
| const unsigned char * | buf, | |||
| size_t | bufsize | |||
| ) | [static] |
Definition at line 281 of file adx.c.
References AVCodecContext::bit_rate, AVCodecContext::channels, is_adx(), offset, read_long(), and AVCodecContext::sample_rate.
Referenced by adx_decode_frame().

| static int adx_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 303 of file adx.c.
References ADXContext::header_parsed, ADXContext::in_temp, ADXContext::prev, AVCodecContext::priv_data, PREV::s1, and PREV::s2.
| static void adx_decode_stereo | ( | short * | out, | |
| const unsigned char * | in, | |||
| PREV * | prev | |||
| ) | [static] |
Definition at line 131 of file adx.c.
References adx_decode().
Referenced by adx_decode_frame().

| int is_adx | ( | const unsigned char * | buf, | |
| size_t | bufsize | |||
| ) |
Definition at line 270 of file adx.c.
References memcmp, offset, and read_long().
Referenced by adx_decode_header().

| static uint32_t read_long | ( | const unsigned char * | p | ) | [static] |
Initial value:
{
"adx_adpcm",
CODEC_TYPE_AUDIO,
CODEC_ID_ADPCM_ADX,
sizeof(ADXContext),
adx_decode_init,
NULL,
NULL,
adx_decode_frame,
}
1.5.5