Lines Matching refs:cachelen
144 while (rc->rb.bytes && rc->rb.cachelen < count) {
145 rc->rb.cacheval |= *--rc->rb.position << rc->rb.cachelen;
146 rc->rb.cachelen += 8;
152 rc->rb.cachelen -= count;
163 const int to_write = FFMIN(32 - rc->rb.cachelen, count);
166 rc->rb.cacheval |= av_mod_uintp2(val, to_write) << rc->rb.cachelen;
167 rc->rb.cachelen = (rc->rb.cachelen + to_write) % 32;
169 if (!rc->rb.cachelen && count) {
173 rc->rb.cachelen = count - to_write;
174 rc->rb.cacheval = av_mod_uintp2(val >> to_write, rc->rb.cachelen);
356 rc->rb.cachelen = 0;
386 rc->waste = size*8 - (rc->rb.bytes*8 + rc->rb.cachelen) - rng_bytes*8;
389 if (rc->rb.bytes || rc->rb.cachelen) {
392 ff_opus_rc_put_raw(rc, 0, 32 - rc->rb.cachelen);