libavcodec/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"

Go to the source code of this file.

Defines

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

Enumerations

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

Functions

static void idct6 (int pre_mant[6])
 Calculate 6-point IDCT of the pre-mantissas.
void ff_eac3_decode_transform_coeffs_aht_ch (AC3DecodeContext *s, int ch)
 Decode mantissas in a single channel for the entire frame.
int ff_eac3_parse_header (AC3DecodeContext *s)
 Parse the E-AC-3 frame header.


Define Documentation

#define COEFF_0   10273905LL

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

Definition at line 42 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 45 of file eac3dec.c.

Referenced by idct6().

#define COEFF_2   3070444LL

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

Definition at line 48 of file eac3dec.c.

Referenced by idct6().

#define EAC3_SR_CODE_REDUCED   3

Definition at line 39 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 32 of file eac3dec.c.


Function Documentation

void ff_eac3_decode_transform_coeffs_aht_ch ( AC3DecodeContext s,
int  ch 
)

Decode mantissas in a single channel for the entire frame.

This is used when AHT mode is enabled.

Definition at line 84 of file eac3dec.c.

Referenced by decode_transform_coeffs_ch().

int ff_eac3_parse_header ( AC3DecodeContext s  ) 

Parse the E-AC-3 frame header.

This parses both the bit stream info and audio frame header.

Definition at line 175 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 54 of file eac3dec.c.

Referenced by ff_eac3_decode_transform_coeffs_aht_ch(), and ff_h264_idct8_add_altivec().


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