Lines Matching refs:exp_strategy
361 uint8_t *exp_strategy = s->exp_strategy[ch];
367 exp_strategy[0] = EXP_NEW;
372 exp_strategy[blk] = EXP_NEW;
375 exp_strategy[blk] = EXP_REUSE;
379 exp_strategy[blk] = EXP_NEW;
383 exp_strategy[blk] = EXP_REUSE;
385 exp_strategy[blk] = EXP_NEW;
387 exp_strategy[blk] = EXP_NEW;
395 while (blk1 < s->num_blocks && exp_strategy[blk1] == EXP_REUSE)
397 exp_strategy[blk] = exp_strategy_reuse_tab[s->num_blks_code][blk1-blk-1];
403 s->exp_strategy[ch][0] = EXP_D15;
405 s->exp_strategy[ch][blk] = EXP_REUSE;
419 * @param exp_strategy exponent strategy for the block
422 static void encode_exponents_blk_ch(uint8_t *exp, int nb_exps, int exp_strategy,
427 nb_groups = exponent_group_tab[cpl][exp_strategy-1][nb_exps] * 3;
430 switch(exp_strategy) {
471 switch (exp_strategy) {
498 uint8_t *exp, *exp_strategy;
503 exp_strategy = s->exp_strategy[ch];
520 while (blk1 < s->num_blocks && exp_strategy[blk1] == EXP_REUSE) {
530 encode_exponents_blk_ch(exp, nb_coefs, exp_strategy[blk], cpl);
554 int exp_strategy = s->exp_strategy[ch][blk];
558 if (exp_strategy == EXP_REUSE)
561 nb_groups = exponent_group_tab[cpl][exp_strategy-1][nb_coefs];
588 int exp_strategy = s->exp_strategy[ch][blk];
589 if (exp_strategy == EXP_REUSE)
592 group_size = exp_strategy + (exp_strategy == EXP_D45);
593 nb_groups = exponent_group_tab[cpl][exp_strategy-1][block->end_freq[ch]-s->start_freq[ch]];
904 if (s->exp_strategy[ch][blk] != EXP_REUSE) {
949 if (s->exp_strategy[ch][blk] != EXP_REUSE) {
1077 if (s->exp_strategy[ch][blk] != EXP_REUSE) {
1468 put_bits(&s->pb, 2, s->exp_strategy[ch][blk]);
1470 put_bits(&s->pb, 1, s->exp_strategy[s->lfe_channel][blk]);
1475 if (s->exp_strategy[ch][blk] != EXP_REUSE && !block->channel_in_cpl[ch])
1484 if (s->exp_strategy[ch][blk] == EXP_REUSE)
1491 nb_groups = exponent_group_tab[cpl][s->exp_strategy[ch][blk]-1][block->end_freq[ch]-s->start_freq[ch]];