Lines Matching refs:max_bits
217 const int max_bits, in inner_loop() argument
223 assert(max_bits >= 0); in inner_loop()
231 while (bits > max_bits) { in inner_loop()
962 int max_bits ) in VBR_encode_granule() argument
969 int Max_bits = max_bits; in VBR_encode_granule()
970 int real_bits = max_bits+1; in VBR_encode_granule()
971 int this_bits = min_bits+(max_bits-min_bits)/2; in VBR_encode_granule()
984 assert(this_bits <= max_bits); in VBR_encode_granule()
1007 max_bits = real_bits-32; in VBR_encode_granule()
1008 dbits = max_bits-min_bits; in VBR_encode_granule()
1015 dbits = max_bits-min_bits; in VBR_encode_granule()
1168 int max_bits; in calc_max_bits() local
1170 max_bits = frameBits[gfc->VBR_max_bitrate]; in calc_max_bits()
1171 max_bits /= gfc->channels_out * gfc->mode_gr; in calc_max_bits()
1172 max_bits = Min (1200 + max_bits, MAX_BITS - 195 * (gfc->channels_out - 1)); in calc_max_bits()
1173 max_bits = Max (max_bits, min_bits); in calc_max_bits()
1175 return max_bits; in calc_max_bits()
1215 int max_bits [2][2], in VBR_prepare()
1270 max_bits[gr][ch] = calc_max_bits (gfc, frameBits, min_bits[gr][ch]); in VBR_prepare()
1285 max_bits[gr][ch] *= bits; in VBR_prepare()
1286 max_bits[gr][ch] /= used_bits; in VBR_prepare()
1287 if (max_bits[gr][ch] < *min_mean_bits) in VBR_prepare()
1288 max_bits[gr][ch] = *min_mean_bits; in VBR_prepare()
1330 int min_bits[2][2], max_bits[2][2]; in VBR_iteration_loop() local
1353 &min_mean_bits, min_bits, max_bits, bands); in VBR_iteration_loop()
1389 min_bits[gr][ch], max_bits[gr][ch], in VBR_iteration_loop()
1398 ch, min_bits[gr][ch], max_bits[gr][ch] ); in VBR_iteration_loop()
1441 max_bits[gr][ch] = save_bits[gr][ch]; in VBR_iteration_loop()
1442 max_bits[gr][ch] *= frameBits[gfc->bitrate_index]; in VBR_iteration_loop()
1443 max_bits[gr][ch] /= used_bits2; in VBR_iteration_loop()
1444 max_bits[gr][ch] = Max(min_bits[gr][ch],max_bits[gr][ch]); in VBR_iteration_loop()
1465 max_bits[gr][ch] = Max(min_mean_bits, 0.9*max_bits[gr][ch]); in VBR_iteration_loop()
1753 int mean_bits, max_bits, bit_rate; in iteration_loop() local
1767 max_bits = on_pe (gfp, pe, l3_side, targ_bits, mean_bits, gr); in iteration_loop()
1771 reduce_side (targ_bits, ms_ener_ratio[gr], mean_bits, max_bits); in iteration_loop()