Lines Matching full:next
58 * left-justified; the next bit is always bit 31.
65 /* Pointer to the next byte to be retrieved from the input buffer. */
66 const u8 *next; member
78 is->next = buffer; in init_input_bitstream()
79 is->end = is->next + size; in init_input_bitstream()
91 if (is->end - is->next >= 2) { in bitstream_ensure_bits()
92 is->bitbuf |= (u32)get_unaligned_le16(is->next) in bitstream_ensure_bits()
94 is->next += 2; in bitstream_ensure_bits()
100 /* Return the next @num_bits bits from the bitstream, without removing them.
134 /* Read and return the next @num_bits bits from the bitstream. */
142 /* Read and return the next literal byte embedded in the bitstream. */
146 if (unlikely(is->end == is->next)) in bitstream_read_byte()
148 return *is->next++; in bitstream_read_byte()
151 /* Read and return the next 16-bit integer embedded in the bitstream. */
157 if (unlikely(is->end - is->next < 2)) in bitstream_read_u16()
159 v = get_unaligned_le16(is->next); in bitstream_read_u16()
160 is->next += 2; in bitstream_read_u16()
164 /* Read and return the next 32-bit integer embedded in the bitstream. */
170 if (unlikely(is->end - is->next < 4)) in bitstream_read_u32()
172 v = get_unaligned_le32(is->next); in bitstream_read_u32()
173 is->next += 4; in bitstream_read_u32()
184 if ((size_t)(is->end - is->next) < count) in bitstream_read_bytes()
186 memcpy(dst_buffer, is->next, count); in bitstream_read_bytes()
187 is->next += count; in bitstream_read_bytes()
204 /* Reads and returns the next Huffman-encoded symbol from a bitstream. If the
218 /* Index the decode table by the next table_bits bits of the input. */ in read_huffsym()