Lines Matching refs:bitstream
69 * __little endian__ bitstream, least significant bit first (left most)
190 /* for the bitstream, we need a cursor */
214 /* the bitstream itself knows its length */
215 struct bitstream {
226 static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits)
234 static inline void bitstream_rewind(struct bitstream *bs)
240 /* Put (at most 64) least significant bits of val into bitstream, and advance cursor.
245 * If there is not enough room left in bitstream,
246 * leaves bitstream unchanged and returns -ENOBUFS.
248 static inline int bitstream_put_bits(struct bitstream *bs, u64 val, const unsigned int bits)
272 /* Fetch (at most 64) bits from bitstream into *out, and advance cursor.
277 * bitstream, still fetches all available bits.
281 static inline int bitstream_get_bits(struct bitstream *bs, u64 *out, int bits)
323 * > 0: number of bits successfully stored in bitstream
328 static inline int vli_encode_bits(struct bitstream *bs, u64 in)