eac3dec.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "aac_ac3_parser.h"
#include "ac3.h"
#include "ac3_parser.h"
#include "ac3dec.h"
#include "ac3dec_data.h"
#include "eac3_data.h"
Include dependency graph for eac3dec.c:

Go to the source code of this file.

Macros

#define EAC3_SR_CODE_REDUCED   3
 
#define COEFF_0   10273905LL
 lrint(M_SQRT2*cos(2*M_PI/12)*(1<<23)) More...
 
#define COEFF_1   11863283LL
 lrint(M_SQRT2*cos(0*M_PI/12)*(1<<23)) = lrint(M_SQRT2*(1<<23)) More...
 
#define COEFF_2   3070444LL
 lrint(M_SQRT2*cos(5*M_PI/12)*(1<<23)) More...
 

Enumerations

enum  EAC3GaqMode { EAC3_GAQ_NO =0, EAC3_GAQ_12, EAC3_GAQ_14, EAC3_GAQ_124 }
 gain adaptive quantization mode More...
 

Functions

void ff_eac3_apply_spectral_extension (AC3DecodeContext *s)
 
static void idct6 (int pre_mant[6])
 Calculate 6-point IDCT of the pre-mantissas. More...
 
void ff_eac3_decode_transform_coeffs_aht_ch (AC3DecodeContext *s, int ch)
 
int ff_eac3_parse_header (AC3DecodeContext *s)
 

Macro Definition Documentation

#define COEFF_0   10273905LL

lrint(M_SQRT2*cos(2*M_PI/12)*(1<<23))

Definition at line 156 of file eac3dec.c.

Referenced by idct6().

#define COEFF_1   11863283LL

lrint(M_SQRT2*cos(0*M_PI/12)*(1<<23)) = lrint(M_SQRT2*(1<<23))

Definition at line 159 of file eac3dec.c.

Referenced by idct6().

#define COEFF_2   3070444LL

lrint(M_SQRT2*cos(5*M_PI/12)*(1<<23))

Definition at line 162 of file eac3dec.c.

Referenced by idct6().

#define EAC3_SR_CODE_REDUCED   3

Definition at line 64 of file eac3dec.c.

Referenced by ff_eac3_parse_header().

Enumeration Type Documentation

gain adaptive quantization mode

Enumerator
EAC3_GAQ_NO 
EAC3_GAQ_12 
EAC3_GAQ_14 
EAC3_GAQ_124 

Definition at line 57 of file eac3dec.c.

Function Documentation

void ff_eac3_apply_spectral_extension ( AC3DecodeContext *  s)

Definition at line 66 of file eac3dec.c.

Referenced by decode_audio_block().

void ff_eac3_decode_transform_coeffs_aht_ch ( AC3DecodeContext *  s,
int  ch 
)

Definition at line 198 of file eac3dec.c.

Referenced by decode_transform_coeffs_ch().

int ff_eac3_parse_header ( AC3DecodeContext *  s)

Definition at line 291 of file eac3dec.c.

Referenced by parse_frame_header().

static void idct6 ( int  pre_mant[6])
static

Calculate 6-point IDCT of the pre-mantissas.

All calculations are 24-bit fixed-point.

Definition at line 168 of file eac3dec.c.

Referenced by ff_eac3_decode_transform_coeffs_aht_ch(), and ff_h264_idct8_add_altivec().