libavcodec/adx.c File Reference

#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "adx.h"

Go to the source code of this file.


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.

Function Documentation

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
data offset or negative error code if header is invalid

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().

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