Lines Matching refs:remaining_bits
647 opus_int32 remaining_bits; member
794 if (*b>2<<BITRES && ctx->remaining_bits > 2<<BITRES) in compute_theta()
854 if (ctx->remaining_bits>=1<<BITRES) in quant_band_n1()
863 ctx->remaining_bits -= 1<<BITRES; in quant_band_n1()
954 ctx->remaining_bits -= qalloc; in quant_partition()
959 rebalance = ctx->remaining_bits; in quant_partition()
965 rebalance = mbits - (rebalance-ctx->remaining_bits); in quant_partition()
975 rebalance = sbits - (rebalance-ctx->remaining_bits); in quant_partition()
986 ctx->remaining_bits -= curr_bits; in quant_partition()
989 while (ctx->remaining_bits < 0 && q > 0) in quant_partition()
991 ctx->remaining_bits += curr_bits; in quant_partition()
994 ctx->remaining_bits -= curr_bits; in quant_partition()
1258 ctx->remaining_bits -= qalloc+sbits; in quant_band_stereo()
1302 ctx->remaining_bits -= qalloc; in quant_band_stereo()
1304 rebalance = ctx->remaining_bits; in quant_band_stereo()
1312 rebalance = mbits - (rebalance-ctx->remaining_bits); in quant_band_stereo()
1327 rebalance = sbits - (rebalance-ctx->remaining_bits); in quant_band_stereo()
1361 opus_int32 remaining_bits; in quant_all_bands() local
1427 remaining_bits = total_bits-tell-1; in quant_all_bands()
1428 ctx.remaining_bits = remaining_bits; in quant_all_bands()
1432 b = IMAX(0, IMIN(16383, IMIN(remaining_bits+1,pulses[i]+curr_balance))); in quant_all_bands()