comparison ac3dec.h @ 7031:4b9d8cd9a1f0 libavcodec

add fields needed for E-AC-3 decoding to decode context
author jbr
date Sun, 08 Jun 2008 21:08:53 +0000
parents 1edec36c02c5
children 2062bf984454
comparison
equal deleted inserted replaced
7030:40f18ff994f9 7031:4b9d8cd9a1f0
57 int bit_rate; ///< stream bit rate, in bits-per-second 57 int bit_rate; ///< stream bit rate, in bits-per-second
58 int sample_rate; ///< sample frequency, in Hz 58 int sample_rate; ///< sample frequency, in Hz
59 int num_blocks; ///< number of audio blocks 59 int num_blocks; ///< number of audio blocks
60 int channel_mode; ///< channel mode (acmod) 60 int channel_mode; ///< channel mode (acmod)
61 int lfe_on; ///< lfe channel in use 61 int lfe_on; ///< lfe channel in use
62 int channel_map; ///< custom channel map
62 int center_mix_level; ///< Center mix level index 63 int center_mix_level; ///< Center mix level index
63 int surround_mix_level; ///< Surround mix level index 64 int surround_mix_level; ///< Surround mix level index
65 int eac3; ///< indicates if current frame is E-AC-3
64 ///@} 66 ///@}
67
68 ///@defgroup audfrm frame syntax parameters
69 int snr_offset_strategy; ///< SNR offset strategy (snroffststr)
70 int block_switch_syntax; ///< block switch syntax enabled (blkswe)
71 int dither_flag_syntax; ///< dither flag syntax enabled (dithflage)
72 int bit_allocation_syntax; ///< bit allocation model syntax enabled (bamode)
73 int fast_gain_syntax; ///< fast gain codes enabled (frmfgaincode)
74 int dba_syntax; ///< delta bit allocation syntax enabled (dbaflde)
75 int skip_syntax; ///< skip field syntax enabled (skipflde)
76 ///@}
65 77
66 ///@defgroup cpl standard coupling 78 ///@defgroup cpl standard coupling
67 int cpl_in_use[MAX_BLOCKS]; ///< coupling in use (cplinu) 79 int cpl_in_use[MAX_BLOCKS]; ///< coupling in use (cplinu)
80 int cpl_strategy_exists[MAX_BLOCKS]; ///< coupling strategy exists (cplstre)
68 int channel_in_cpl[AC3_MAX_CHANNELS]; ///< channel in coupling (chincpl) 81 int channel_in_cpl[AC3_MAX_CHANNELS]; ///< channel in coupling (chincpl)
69 int phase_flags_in_use; ///< phase flags in use (phsflginu) 82 int phase_flags_in_use; ///< phase flags in use (phsflginu)
70 int phase_flags[18]; ///< phase flags (phsflg) 83 int phase_flags[18]; ///< phase flags (phsflg)
71 int num_cpl_subbands; ///< number of coupling sub bands (ncplsubnd) 84 int num_cpl_subbands; ///< number of coupling sub bands (ncplsubnd)
72 int num_cpl_bands; ///< number of coupling bands (ncplbnd) 85 int num_cpl_bands; ///< number of coupling bands (ncplbnd)
73 int cpl_band_struct[18]; ///< coupling band structure (cplbndstrc) 86 int cpl_band_struct[18]; ///< coupling band structure (cplbndstrc)
87 int firstchincpl; ///< first channel in coupling
88 int first_cpl_coords[AC3_MAX_CHANNELS]; ///< first coupling coordinates states (firstcplcos)
74 int cpl_coords[AC3_MAX_CHANNELS][18]; ///< coupling coordinates (cplco) 89 int cpl_coords[AC3_MAX_CHANNELS][18]; ///< coupling coordinates (cplco)
90 ///@}
91
92 ///@defgroup aht adaptive hybrid transform
93 int channel_uses_aht[AC3_MAX_CHANNELS]; ///< channel AHT in use (chahtinu)
94 int pre_mantissa[6][AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< pre-IDCT mantissas
75 ///@} 95 ///@}
76 96
77 ///@defgroup channel channel 97 ///@defgroup channel channel
78 int fbw_channels; ///< number of full-bandwidth channels 98 int fbw_channels; ///< number of full-bandwidth channels
79 int channels; ///< number of total channels 99 int channels; ///< number of total channels
105 int exp_strategy[MAX_BLOCKS][AC3_MAX_CHANNELS]; ///< exponent strategies (expstr) 125 int exp_strategy[MAX_BLOCKS][AC3_MAX_CHANNELS]; ///< exponent strategies (expstr)
106 ///@} 126 ///@}
107 127
108 ///@defgroup bitalloc bit allocation 128 ///@defgroup bitalloc bit allocation
109 AC3BitAllocParameters bit_alloc_params; ///< bit allocation parameters 129 AC3BitAllocParameters bit_alloc_params; ///< bit allocation parameters
130 int first_cpl_leak; ///< first coupling leak state (firstcplleak)
110 int snr_offset[AC3_MAX_CHANNELS]; ///< signal-to-noise ratio offsets (snroffst) 131 int snr_offset[AC3_MAX_CHANNELS]; ///< signal-to-noise ratio offsets (snroffst)
111 int fast_gain[AC3_MAX_CHANNELS]; ///< fast gain values/SMR's (fgain) 132 int fast_gain[AC3_MAX_CHANNELS]; ///< fast gain values/SMR's (fgain)
112 uint8_t bap[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< bit allocation pointers 133 uint8_t bap[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< bit allocation pointers
113 int16_t psd[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< scaled exponents 134 int16_t psd[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///< scaled exponents
114 int16_t band_psd[AC3_MAX_CHANNELS][50]; ///< interpolated exponents 135 int16_t band_psd[AC3_MAX_CHANNELS][50]; ///< interpolated exponents