Lines Matching refs:nbits
11 bool BufferBitReader::CacheBits(size_t nbits) { in CacheBits() argument
12 if ((in_size_ - index_) * 8 + in_cache_bits_ < nbits) { in CacheBits()
15 if (nbits > sizeof(in_cache_) * 8) { in CacheBits()
18 while (in_cache_bits_ < nbits) { in CacheBits()
25 uint32_t BufferBitReader::ReadBits(size_t nbits) { in ReadBits() argument
26 return in_cache_ & ((1U << nbits) - 1); in ReadBits()
29 void BufferBitReader::DropBits(size_t nbits) { in DropBits() argument
30 in_cache_ >>= nbits; in DropBits()
31 in_cache_bits_ -= nbits; in DropBits()
39 size_t nbits = in_cache_bits_ & 7; in SkipBoundaryBits() local
40 in_cache_ >>= nbits; in SkipBoundaryBits()
41 in_cache_bits_ -= nbits; in SkipBoundaryBits()
42 return nbits; in SkipBoundaryBits()