• Home
  • Raw
  • Download

Lines Matching refs:bit_left

46     int bit_left;  member
69 s->bit_left = BUF_BITS; in init_put_bits()
78 return (s->buf_ptr - s->buf) * 8 + BUF_BITS - s->bit_left; in put_bits_count()
104 return (s->buf_end - s->buf_ptr) * 8 - BUF_BITS + s->bit_left; in put_bits_left()
113 if (s->bit_left < BUF_BITS) in flush_put_bits()
114 s->bit_buf <<= s->bit_left; in flush_put_bits()
116 while (s->bit_left < BUF_BITS) { in flush_put_bits()
125 s->bit_left += 8; in flush_put_bits()
127 s->bit_left = BUF_BITS; in flush_put_bits()
133 while (s->bit_left < BUF_BITS) { in flush_put_bits_le()
137 s->bit_left += 8; in flush_put_bits_le()
139 s->bit_left = BUF_BITS; in flush_put_bits_le()
172 int bit_left; in put_bits_no_assert() local
175 bit_left = s->bit_left; in put_bits_no_assert()
179 bit_buf |= value << (BUF_BITS - bit_left); in put_bits_no_assert()
180 if (n >= bit_left) { in put_bits_no_assert()
188 bit_buf = value >> bit_left; in put_bits_no_assert()
189 bit_left += BUF_BITS; in put_bits_no_assert()
191 bit_left -= n; in put_bits_no_assert()
193 if (n < bit_left) { in put_bits_no_assert()
195 bit_left -= n; in put_bits_no_assert()
197 bit_buf <<= bit_left; in put_bits_no_assert()
198 bit_buf |= value >> (n - bit_left); in put_bits_no_assert()
206 bit_left += BUF_BITS - n; in put_bits_no_assert()
212 s->bit_left = bit_left; in put_bits_no_assert()
228 int bit_left; in put_bits_le() local
233 bit_left = s->bit_left; in put_bits_le()
235 bit_buf |= value << (BUF_BITS - bit_left); in put_bits_le()
236 if (n >= bit_left) { in put_bits_le()
244 bit_buf = value >> bit_left; in put_bits_le()
245 bit_left += BUF_BITS; in put_bits_le()
247 bit_left -= n; in put_bits_le()
250 s->bit_left = bit_left; in put_bits_le()
266 int bit_left; in put_bits32() local
274 bit_left = s->bit_left; in put_bits32()
277 bit_buf |= (BitBuf)value << (BUF_BITS - bit_left); in put_bits32()
285 bit_buf = (uint64_t)value >> bit_left; in put_bits32()
287 bit_buf = (uint64_t)bit_buf << bit_left; in put_bits32()
288 bit_buf |= (BitBuf)value >> (BUF_BITS - bit_left); in put_bits32()
300 s->bit_left = bit_left; in put_bits32()
354 av_assert2(s->bit_left == BUF_BITS); in skip_put_bytes()
366 unsigned bits = BUF_BITS - s->bit_left + n; in skip_put_bits()
368 s->bit_left = BUF_BITS - (bits & (BUF_BITS - 1)); in skip_put_bits()
388 put_bits(s, s->bit_left & 7, 0); in align_put_bits()