comparison ac3.h @ 7017:60fd9ae9540e libavcodec

pass bap table to ff_ac3_bit_alloc_calc_bap()
author jbr
date Sat, 07 Jun 2008 22:29:54 +0000
parents 4156c54aedba
children 1a93d3bbe3ee
comparison
equal deleted inserted replaced
7016:b514562e0aef 7017:60fd9ae9540e
166 * @param[in] psd signal power for each frequency bin 166 * @param[in] psd signal power for each frequency bin
167 * @param[in] start starting bin location 167 * @param[in] start starting bin location
168 * @param[in] end ending bin location 168 * @param[in] end ending bin location
169 * @param[in] snr_offset SNR adjustment 169 * @param[in] snr_offset SNR adjustment
170 * @param[in] floor noise floor 170 * @param[in] floor noise floor
171 * @param[in] bap_tab look-up table for bit allocation pointers
171 * @param[out] bap bit allocation pointers 172 * @param[out] bap bit allocation pointers
172 */ 173 */
173 void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, 174 void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
174 int snr_offset, int floor, uint8_t *bap); 175 int snr_offset, int floor,
176 const uint8_t *bap_tab, uint8_t *bap);
175 177
176 void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap, 178 void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap,
177 int8_t *exp, int start, int end, 179 int8_t *exp, int start, int end,
178 int snr_offset, int fast_gain, int is_lfe, 180 int snr_offset, int fast_gain, int is_lfe,
179 int dba_mode, int dba_nsegs, 181 int dba_mode, int dba_nsegs,