Lines Matching refs:exp_strategy
362 uint8_t *exp_strategy = s->exp_strategy[ch];
368 exp_strategy[0] = EXP_NEW;
373 exp_strategy[blk] = EXP_NEW;
376 exp_strategy[blk] = EXP_REUSE;
380 exp_strategy[blk] = EXP_NEW;
384 exp_strategy[blk] = EXP_REUSE;
386 exp_strategy[blk] = EXP_NEW;
388 exp_strategy[blk] = EXP_NEW;
396 while (blk1 < s->num_blocks && exp_strategy[blk1] == EXP_REUSE)
398 exp_strategy[blk] = exp_strategy_reuse_tab[s->num_blks_code][blk1-blk-1];
404 s->exp_strategy[ch][0] = EXP_D15;
406 s->exp_strategy[ch][blk] = EXP_REUSE;
420 * @param exp_strategy exponent strategy for the block
423 static void encode_exponents_blk_ch(uint8_t *exp, int nb_exps, int exp_strategy,
428 nb_groups = exponent_group_tab[cpl][exp_strategy-1][nb_exps] * 3;
431 switch(exp_strategy) {
472 switch (exp_strategy) {
499 uint8_t *exp, *exp_strategy;
504 exp_strategy = s->exp_strategy[ch];
521 while (blk1 < s->num_blocks && exp_strategy[blk1] == EXP_REUSE) {
531 encode_exponents_blk_ch(exp, nb_coefs, exp_strategy[blk], cpl);
555 int exp_strategy = s->exp_strategy[ch][blk];
559 if (exp_strategy == EXP_REUSE)
562 nb_groups = exponent_group_tab[cpl][exp_strategy-1][nb_coefs];
589 int exp_strategy = s->exp_strategy[ch][blk];
590 if (exp_strategy == EXP_REUSE)
593 group_size = exp_strategy + (exp_strategy == EXP_D45);
594 nb_groups = exponent_group_tab[cpl][exp_strategy-1][block->end_freq[ch]-s->start_freq[ch]];
905 if (s->exp_strategy[ch][blk] != EXP_REUSE) {
950 if (s->exp_strategy[ch][blk] != EXP_REUSE) {
1078 if (s->exp_strategy[ch][blk] != EXP_REUSE) {
1473 put_bits(&s->pb, 2, s->exp_strategy[ch][blk]);
1475 put_bits(&s->pb, 1, s->exp_strategy[s->lfe_channel][blk]);
1480 if (s->exp_strategy[ch][blk] != EXP_REUSE && !block->channel_in_cpl[ch])
1489 if (s->exp_strategy[ch][blk] == EXP_REUSE)
1496 nb_groups = exponent_group_tab[cpl][s->exp_strategy[ch][blk]-1][block->end_freq[ch]-s->start_freq[ch]];