Lines Matching defs:bits
114 uint32_t ff_opus_rc_dec_log(OpusRangeCoder *rc, uint32_t bits)
117 scale = rc->range >> bits; // in this case, scale = symbol
131 void ff_opus_rc_enc_log(OpusRangeCoder *rc, int val, uint32_t bits)
133 bits = (1 << bits) - 1;
134 opus_rc_enc_update(rc, (!!val)*bits, bits + !!val, bits + 1, 1);
138 * CELT: read 1-25 raw bits at the end of the frame, backwards byte-wise
159 * CELT: write 0 - 31 bits to the rawbits buffer
184 uint32_t bits, k, scale, total;
186 bits = opus_ilog(size - 1);
187 total = (bits > 8) ? ((size - 1) >> (bits - 8)) + 1 : size;
194 if (bits > 8) {
195 k = k << (bits - 8) | ff_opus_rc_get_raw(rc, bits - 8);
362 int rng_bytes, bits = OPUS_RC_BITS - opus_ilog(rc->range);
363 uint32_t mask = (OPUS_RC_TOP - 1) >> bits;
367 bits++;
373 while (bits > 0) {
376 bits -= OPUS_RC_SYM;