Lines Matching refs:exp_strategy
240 static void compute_exp_strategy(uint8_t exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS], in compute_exp_strategy()
249 exp_strategy[0][ch] = EXP_NEW; in compute_exp_strategy()
256 exp_strategy[i][ch] = EXP_NEW; in compute_exp_strategy()
258 exp_strategy[i][ch] = EXP_REUSE; in compute_exp_strategy()
268 while (j < NB_BLOCKS && exp_strategy[j][ch] == EXP_REUSE) in compute_exp_strategy()
272 exp_strategy[i][ch] = EXP_D45; in compute_exp_strategy()
276 exp_strategy[i][ch] = EXP_D25; in compute_exp_strategy()
279 exp_strategy[i][ch] = EXP_D15; in compute_exp_strategy()
302 int exp_strategy) in encode_exp() argument
307 switch(exp_strategy) { in encode_exp()
357 av_log(NULL, AV_LOG_DEBUG, "exponents: strategy=%d\n", exp_strategy); in encode_exp()
420 uint8_t exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS], in bit_alloc_masking()
429 if(exp_strategy[blk][ch] == EXP_REUSE) { in bit_alloc_masking()
484 uint8_t exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS], in compute_bit_allocation()
529 if (exp_strategy[i][ch] != EXP_REUSE) in compute_bit_allocation()
550 bit_alloc_masking(s, encoded_exp, exp_strategy, psd, mask); in compute_bit_allocation()
777 uint8_t exp_strategy[AC3_MAX_CHANNELS], in output_audio_block()
832 put_bits(&s->pb, 2, exp_strategy[ch]); in output_audio_block()
836 put_bits(&s->pb, 1, exp_strategy[s->lfe_channel]); in output_audio_block()
840 if (exp_strategy[ch] != EXP_REUSE) in output_audio_block()
846 switch(exp_strategy[ch]) { in output_audio_block()
1153 uint8_t exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS]; in AC3_encode_frame() local
1214 compute_exp_strategy(exp_strategy, exp, ch, ch == s->lfe_channel); in AC3_encode_frame()
1222 while (j < NB_BLOCKS && exp_strategy[j][ch] == EXP_REUSE) { in AC3_encode_frame()
1228 exp_strategy[i][ch]); in AC3_encode_frame()
1247 compute_bit_allocation(s, bap, encoded_exp, exp_strategy, frame_bits); in AC3_encode_frame()
1252 output_audio_block(s, exp_strategy[i], encoded_exp[i], in AC3_encode_frame()