Lines Matching full: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 { struct
226 static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits) in bitstream_init() argument
234 static inline void bitstream_rewind(struct bitstream *bs) in bitstream_rewind()
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) in bitstream_put_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) in bitstream_get_bits()
323 * > 0: number of bits successfully stored in bitstream
328 static inline int vli_encode_bits(struct bitstream *bs, u64 in) in vli_encode_bits()