Lines Matching defs:remaining
228 /* for CBR, the remaining packet bytes are divided evenly between
496 f->remaining -= consumed;
499 int curr_balance = f->remaining / FFMIN(3, f->coded_bands-i);
569 f->remaining += f->pulses[i] + consumed;
580 int i, j, low, high, total, done, bandbits, remaining, tbits_8ths;
784 /* all remaining bands are not skipped */
790 remaining = tbits_8ths - total;
791 bandbits = remaining / (ff_celt_freq_bands[j+1] - ff_celt_freq_bands[f->start_band]);
792 remaining -= bandbits * (ff_celt_freq_bands[j+1] - ff_celt_freq_bands[f->start_band]);
794 allocation += FFMAX(remaining - (ff_celt_freq_bands[j] - ff_celt_freq_bands[f->start_band]), 0);
846 /* Supply the remaining bits in this frame to lower bands */
847 remaining = tbits_8ths - total;
848 bandbits = remaining / (ff_celt_freq_bands[f->coded_bands] - ff_celt_freq_bands[f->start_band]);
849 remaining -= bandbits * (ff_celt_freq_bands[f->coded_bands] - ff_celt_freq_bands[f->start_band]);
851 const int bits = FFMIN(remaining, ff_celt_freq_range[i]);
853 remaining -= bits;
896 /* the remaining bits are assigned to PVQ */
917 f->remaining = extrabits;