Lines Matching defs:abits
68 int abits[DCA_SUBBANDS][MAX_CHANNELS];
569 c->abits[band][ch] = 26;
572 c->abits[band][ch] = 8 + mul32(snr_cb - 222, 69000000);
575 c->abits[band][ch] = 2 + mul32(snr_cb, 106000000);
578 c->abits[band][ch] = 1;
586 c->consumed_bits += bit_consumption[c->abits[band][ch]];
648 static int calc_one_scale(int32_t peak_cb, int abits, softfloat *quant)
661 if (scalefactor_inv[our_nscale - try_remove].e + stepsize_inv[abits].e <= 17)
663 our_quant.m = mul32(scalefactor_inv[our_nscale - try_remove].m, stepsize_inv[abits].m);
664 our_quant.e = scalefactor_inv[our_nscale - try_remove].e + stepsize_inv[abits].e - 17;
665 if ((quant_levels[abits] - 1) / 2 < quantize_value(peak, our_quant))
673 quant->m = mul32(scalefactor_inv[our_nscale].m, stepsize_inv[abits].m);
674 quant->e = scalefactor_inv[our_nscale].e + stepsize_inv[abits].e - 17;
675 av_assert0((quant_levels[abits] - 1) / 2 >= quantize_value(peak, *quant));
687 c->abits[band][ch],
835 if (c->abits[band][ch] <= 7) {
840 sum *= quant_levels[c->abits[band][ch]];
842 sum += (quant_levels[c->abits[band][ch]] - 1) / 2;
844 put_bits(&c->pb, bit_consumption[c->abits[band][ch]] / 4, sum);
849 int bits = bit_consumption[c->abits[band][ch]] / 16;
875 put_bits(&c->pb, 5, c->abits[band][ch]);