Home | History | Annotate | Download | only in vl

Lines Matching defs:buffer

43    uint64_t buffer;
88 * switch over to next input buffer
120 vlc->buffer |= (uint64_t)*vlc->data << (24 + vlc->invalid_bits);
127 * fill the bit buffer, so that at least 32 bits are valid
134 /* as long as the buffer needs to be filled */
151 /* enough bytes in buffer, read in a whole dword */
158 vlc->buffer |= value << vlc->invalid_bits;
162 /* buffer is now definitely filled up avoid the loop test */
167 /* not enough bytes left in buffer, read single bytes */
168 vlc->buffer |= (uint64_t)*vlc->data << (24 + vlc->invalid_bits);
176 * initialize vlc structure and start reading from first input buffer
187 vlc->buffer = 0;
204 * number of bits still valid in bit buffer
224 * get num_bits from bit buffer without removing them
230 return vlc->buffer >> (64 - num_bits);
234 * remove num_bits from bit buffer
241 vlc->buffer <<= num_bits;
246 * get num_bits from bit buffer with removing them
255 value = vlc->buffer >> (64 - num_bits);
262 * treat num_bits as signed value and remove them from bit buffer
271 value = ((int64_t)vlc->buffer) >> (64 - num_bits);
298 /* deplete the bit buffer */
351 uint64_t lo = (vlc->buffer & (~0UL >> (pos + num_bits))) << num_bits;
352 uint64_t hi = (vlc->buffer & (~0UL << (64 - pos)));
353 vlc->buffer = lo | hi;
368 vlc->buffer &= ~0L << (vlc->invalid_bits + 32);