Lines Matching refs:consumed_bits

85 	unsigned consumed_bits; /* ... + (#bits of head word) already consumed from the front of buffer */  member
237 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_init()
257 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_free()
265 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_clear()
276 …: words=%u, bits=%u\n", br->capacity, br->words, br->bytes, br->consumed_words, br->consumed_bits); in FLAC__bitreader_dump()
281 if(i < br->consumed_words || (i == br->consumed_words && j < br->consumed_bits)) in FLAC__bitreader_dump()
290 if(i < br->consumed_words || (i == br->consumed_words && j < br->consumed_bits)) in FLAC__bitreader_dump()
303 FLAC__ASSERT((br->consumed_bits & 7) == 0); in FLAC__bitreader_reset_read_crc16()
306 br->crc16_align = br->consumed_bits; in FLAC__bitreader_reset_read_crc16()
313 FLAC__ASSERT((br->consumed_bits & 7) == 0); in FLAC__bitreader_get_read_crc16()
314 FLAC__ASSERT(br->crc16_align <= br->consumed_bits); in FLAC__bitreader_get_read_crc16()
317 if(br->consumed_bits) { in FLAC__bitreader_get_read_crc16()
319 for( ; br->crc16_align < br->consumed_bits; br->crc16_align += 8) in FLAC__bitreader_get_read_crc16()
327 return ((br->consumed_bits & 7) == 0); in FLAC__bitreader_is_consumed_byte_aligned()
332 return 8 - (br->consumed_bits & 7); in FLAC__bitreader_bits_left_for_byte_alignment()
337 return (br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits; in FLAC__bitreader_get_input_bits_unconsumed()
357 …while((br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits < bits)… in FLAC__bitreader_read_raw_uint32()
363 if(br->consumed_bits) { in FLAC__bitreader_read_raw_uint32()
365 const unsigned n = FLAC__BITS_PER_WORD - br->consumed_bits; in FLAC__bitreader_read_raw_uint32()
368 *val = (word & (FLAC__WORD_ALL_ONES >> br->consumed_bits)) >> (n-bits); in FLAC__bitreader_read_raw_uint32()
369 br->consumed_bits += bits; in FLAC__bitreader_read_raw_uint32()
372 *val = word & (FLAC__WORD_ALL_ONES >> br->consumed_bits); in FLAC__bitreader_read_raw_uint32()
376 br->consumed_bits = 0; in FLAC__bitreader_read_raw_uint32()
380 br->consumed_bits = bits; in FLAC__bitreader_read_raw_uint32()
388 br->consumed_bits = bits; in FLAC__bitreader_read_raw_uint32()
404 if(br->consumed_bits) { in FLAC__bitreader_read_raw_uint32()
406 FLAC__ASSERT(br->consumed_bits + bits <= br->bytes*8); in FLAC__bitreader_read_raw_uint32()
407 …->consumed_words] & (FLAC__WORD_ALL_ONES >> br->consumed_bits)) >> (FLAC__BITS_PER_WORD-br->consum… in FLAC__bitreader_read_raw_uint32()
408 br->consumed_bits += bits; in FLAC__bitreader_read_raw_uint32()
413 br->consumed_bits += bits; in FLAC__bitreader_read_raw_uint32()
486 const unsigned n = br->consumed_bits & 7; in FLAC__bitreader_skip_bits_no_crc()
520 …while(nvals && br->consumed_bits) { /* i.e. run until we read 'nvals' bytes or we hit the end of t… in FLAC__bitreader_skip_byte_block_aligned_no_crc()
555 …while(nvals && br->consumed_bits) { /* i.e. run until we read 'nvals' bytes or we hit the end of t… in FLAC__bitreader_read_byte_block_aligned_no_crc()
631 uint32_t b = br->buffer[br->consumed_words] << br->consumed_bits;
636 br->consumed_bits += i;
637 …if(br->consumed_bits >= FLAC__BITS_PER_WORD) { /* faster way of testing if(br->consumed_bits == FL…
640 br->consumed_bits = 0;
645 *val += FLAC__BITS_PER_WORD - br->consumed_bits;
648 br->consumed_bits = 0;
659 if(br->bytes*8 > br->consumed_bits) {
661 …fer[br->consumed_words] & (FLAC__WORD_ALL_ONES << (FLAC__BITS_PER_WORD-end))) << br->consumed_bits;
666 br->consumed_bits += i;
667 FLAC__ASSERT(br->consumed_bits < FLAC__BITS_PER_WORD);
671 *val += end - br->consumed_bits;
672 br->consumed_bits = end;
673 FLAC__ASSERT(br->consumed_bits < FLAC__BITS_PER_WORD);
754 ucbits = FLAC__BITS_PER_WORD - br->consumed_bits; in FLAC__bitreader_read_rice_signed_block()
755 b = br->buffer[cwords] << br->consumed_bits; /* keep unconsumed bits aligned to left */ in FLAC__bitreader_read_rice_signed_block()
805 br->consumed_bits = 0; in FLAC__bitreader_read_rice_signed_block()
817 br->consumed_bits = 0; in FLAC__bitreader_read_rice_signed_block()
833 ucbits = FLAC__BITS_PER_WORD - br->consumed_bits; in FLAC__bitreader_read_rice_signed_block()
834 b = br->buffer[cwords] << br->consumed_bits; in FLAC__bitreader_read_rice_signed_block()
844 br->consumed_bits = FLAC__BITS_PER_WORD - ucbits; in FLAC__bitreader_read_rice_signed_block()