libavcodec/aacpsy.c File Reference

AAC encoder psychoacoustic model. More...

#include "avcodec.h"
#include "aacpsy.h"
#include "aactab.h"

Go to the source code of this file.

Data Structures

struct  Psy3gppBand
 information for single band used by 3GPP TS26.403-inspired psychoacoustic model More...
struct  Psy3gppCoeffs
 psychoacoustic model frame type-dependent coefficients More...


#define PSY_3GPP_SPREAD_LOW   1.5f
 constants for 3GPP AAC psychoacoustic model
#define PSY_3GPP_SPREAD_HI   3.0f


static av_always_inline int quant (float coef, const float Q)
 Quantize one coefficient.
static float get_approximate_quant_error (float *c, int size, int scale_idx)
static float calc_bark (float f)
 Calculate Bark value for given line.

Detailed Description

AAC encoder psychoacoustic model.

Definition in file aacpsy.c.

Define Documentation

#define PSY_3GPP_SPREAD_HI   3.0f

Definition at line 75 of file aacpsy.c.

#define PSY_3GPP_SPREAD_LOW   1.5f

constants for 3GPP AAC psychoacoustic model

Definition at line 74 of file aacpsy.c.

Function Documentation

static float calc_bark ( float  f  )  [inline, static]

Calculate Bark value for given line.

Definition at line 101 of file aacpsy.c.

static float get_approximate_quant_error ( float *  c,
int  size,
int  scale_idx 
) [inline, static]

Definition at line 54 of file aacpsy.c.

static av_always_inline int quant ( float  coef,
const float  Q 
) [static]

Quantize one coefficient.

absolute value of the quantized coefficient
See also:
3GPP TS26.403 5.6.2 "Scalefactor determination"

Definition at line 49 of file aacpsy.c.

Generated on Fri Oct 26 02:35:42 2012 for FFmpeg by  doxygen 1.5.8