FFmpeg
Macros | Enumerations | Functions
eac3dec.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "aac_ac3_parser.h"
#include "ac3.h"
#include "ac3dec.h"
#include "ac3dec_data.h"
#include "eac3_data.h"

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

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

Macro Definition Documentation

◆ EAC3_SR_CODE_REDUCED

#define EAC3_SR_CODE_REDUCED   3

Definition at line 57 of file eac3dec.c.

◆ COEFF_0

#define COEFF_0   10273905LL

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

Definition at line 154 of file eac3dec.c.

◆ COEFF_1

#define COEFF_1   11863283LL

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

Definition at line 157 of file eac3dec.c.

◆ COEFF_2

#define COEFF_2   3070444LL

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

Definition at line 160 of file eac3dec.c.

Enumeration Type Documentation

◆ EAC3GaqMode

gain adaptive quantization mode

Enumerator
EAC3_GAQ_NO 
EAC3_GAQ_12 
EAC3_GAQ_14 
EAC3_GAQ_124 

Definition at line 50 of file eac3dec.c.

Function Documentation

◆ ff_eac3_apply_spectral_extension()

static void ff_eac3_apply_spectral_extension ( AC3DecodeContext *  s)
static

Definition at line 59 of file eac3dec.c.

Referenced by decode_audio_block().

◆ idct6()

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 166 of file eac3dec.c.

Referenced by ff_eac3_decode_transform_coeffs_aht_ch().

◆ ff_eac3_decode_transform_coeffs_aht_ch()

static void ff_eac3_decode_transform_coeffs_aht_ch ( AC3DecodeContext *  s,
int  ch 
)
static

Definition at line 196 of file eac3dec.c.

Referenced by decode_transform_coeffs_ch().

◆ ff_eac3_parse_header()

static int ff_eac3_parse_header ( AC3DecodeContext *  s)
static

Definition at line 289 of file eac3dec.c.

Referenced by parse_frame_header().