#include <stdint.h>
#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | ADXChannelState |
struct | ADXContext |
Defines | |
#define | COEFF_BITS 12 |
#define | BLOCK_SIZE 18 |
#define | BLOCK_SAMPLES 32 |
Functions | |
void | ff_adx_calculate_coeffs (int cutoff, int sample_rate, int bits, int *coeff) |
Calculate LPC coefficients based on cutoff frequency and sample rate. | |
int | avpriv_adx_decode_header (AVCodecContext *avctx, const uint8_t *buf, int bufsize, int *header_size, int *coeff) |
Decode ADX stream header. |
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.h.
#define BLOCK_SAMPLES 32 |
Definition at line 55 of file adx.h.
Referenced by adx_decode(), adx_decode_frame(), adx_encode(), adx_encode_init(), adx_parse(), adx_read_header(), and avpriv_adx_decode_header().
#define BLOCK_SIZE 18 |
Definition at line 54 of file adx.h.
Referenced by adx_decode(), adx_decode_frame(), adx_encode(), adx_encode_frame(), adx_encode_header(), adx_parse(), adx_read_packet(), au_read_packet(), avpriv_adx_decode_header(), blockCopy_TMPL(), doHorizDefFilter_C(), doHorizLowPass_C(), doVertDefFilter_TMPL(), doVertLowPass_TMPL(), horizX1Filter(), isHorizDC_C(), isVertDC_C(), isVertMinMaxOk_C(), postProcess_TMPL(), rso_read_packet(), and vertX1Filter_TMPL().
#define COEFF_BITS 12 |
Definition at line 52 of file adx.h.
Referenced by adx_decode(), adx_encode(), adx_encode_init(), avpriv_adx_decode_header(), config(), and resampleCubic().
int avpriv_adx_decode_header | ( | AVCodecContext * | avctx, | |
const uint8_t * | buf, | |||
int | bufsize, | |||
int * | header_size, | |||
int * | coeff | |||
) |
Decode ADX stream header.
Sets avctx->channels and avctx->sample_rate.
avctx | codec context | |
buf | header data | |
bufsize | data size, should be at least 24 bytes | |
[out] | header_size | size of ADX header |
[out] | coeff | 2 LPC coefficients, can be NULL |
Definition at line 37 of file adx.c.
Referenced by adx_decode_frame(), adx_decode_init(), and adx_read_header().
void ff_adx_calculate_coeffs | ( | int | cutoff, | |
int | sample_rate, | |||
int | bits, | |||
int * | coeff | |||
) |
Calculate LPC coefficients based on cutoff frequency and sample rate.
cutoff | cutoff frequency | |
sample_rate | sample rate | |
bits | number of bits used to quantize coefficients | |
[out] | coeff | 2 quantized LPC coefficients |
Definition at line 25 of file adx.c.
Referenced by adx_encode_init(), and avpriv_adx_decode_header().