Lines Matching refs:consumed_bits
144 unsigned consumed_bits; /* ... + (#bits of head word) already consumed from the front of buffer */ member
331 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_init()
352 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_free()
360 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_clear()
371 …: words=%u, bits=%u\n", br->capacity, br->words, br->bytes, br->consumed_words, br->consumed_bits); in FLAC__bitreader_dump()
376 if(i < br->consumed_words || (i == br->consumed_words && j < br->consumed_bits)) in FLAC__bitreader_dump()
385 if(i < br->consumed_words || (i == br->consumed_words && j < br->consumed_bits)) in FLAC__bitreader_dump()
398 FLAC__ASSERT((br->consumed_bits & 7) == 0); in FLAC__bitreader_reset_read_crc16()
401 br->crc16_align = br->consumed_bits; in FLAC__bitreader_reset_read_crc16()
408 FLAC__ASSERT((br->consumed_bits & 7) == 0); in FLAC__bitreader_get_read_crc16()
409 FLAC__ASSERT(br->crc16_align <= br->consumed_bits); in FLAC__bitreader_get_read_crc16()
412 if(br->consumed_bits) { in FLAC__bitreader_get_read_crc16()
414 for( ; br->crc16_align < br->consumed_bits; br->crc16_align += 8) in FLAC__bitreader_get_read_crc16()
422 return ((br->consumed_bits & 7) == 0); in FLAC__bitreader_is_consumed_byte_aligned()
427 return 8 - (br->consumed_bits & 7); in FLAC__bitreader_bits_left_for_byte_alignment()
432 return (br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits; in FLAC__bitreader_get_input_bits_unconsumed()
452 …while((br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits < bits)… in FLAC__bitreader_read_raw_uint32()
458 if(br->consumed_bits) { in FLAC__bitreader_read_raw_uint32()
460 const unsigned n = FLAC__BITS_PER_WORD - br->consumed_bits; in FLAC__bitreader_read_raw_uint32()
463 *val = (word & (FLAC__WORD_ALL_ONES >> br->consumed_bits)) >> (n-bits); in FLAC__bitreader_read_raw_uint32()
464 br->consumed_bits += bits; in FLAC__bitreader_read_raw_uint32()
467 *val = word & (FLAC__WORD_ALL_ONES >> br->consumed_bits); in FLAC__bitreader_read_raw_uint32()
471 br->consumed_bits = 0; in FLAC__bitreader_read_raw_uint32()
475 br->consumed_bits = bits; in FLAC__bitreader_read_raw_uint32()
483 br->consumed_bits = bits; in FLAC__bitreader_read_raw_uint32()
499 if(br->consumed_bits) { in FLAC__bitreader_read_raw_uint32()
501 FLAC__ASSERT(br->consumed_bits + bits <= br->bytes*8); in FLAC__bitreader_read_raw_uint32()
502 …->consumed_words] & (FLAC__WORD_ALL_ONES >> br->consumed_bits)) >> (FLAC__BITS_PER_WORD-br->consum… in FLAC__bitreader_read_raw_uint32()
503 br->consumed_bits += bits; in FLAC__bitreader_read_raw_uint32()
508 br->consumed_bits += bits; in FLAC__bitreader_read_raw_uint32()
581 const unsigned n = br->consumed_bits & 7; in FLAC__bitreader_skip_bits_no_crc()
615 …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()
650 …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()
726 brword b = br->buffer[br->consumed_words] << br->consumed_bits;
731 br->consumed_bits += i;
732 …if(br->consumed_bits >= FLAC__BITS_PER_WORD) { /* faster way of testing if(br->consumed_bits == FL…
735 br->consumed_bits = 0;
740 *val += FLAC__BITS_PER_WORD - br->consumed_bits;
743 br->consumed_bits = 0;
756 …fer[br->consumed_words] & (FLAC__WORD_ALL_ONES << (FLAC__BITS_PER_WORD-end))) << br->consumed_bits;
761 br->consumed_bits += i;
762 FLAC__ASSERT(br->consumed_bits < FLAC__BITS_PER_WORD);
766 *val += end - br->consumed_bits;
767 br->consumed_bits += end;
768 FLAC__ASSERT(br->consumed_bits < FLAC__BITS_PER_WORD);
831 cbits = br->consumed_bits; in FLAC__bitreader_read_rice_signed_block()
900 br->consumed_bits = cbits; in FLAC__bitreader_read_rice_signed_block()
916 br->consumed_bits = cbits; in FLAC__bitreader_read_rice_signed_block()
981 br->consumed_bits = cbits; in FLAC__bitreader_read_rice_signed_block()
1013 cbits = br->consumed_bits;
1082 br->consumed_bits = cbits;
1106 br->consumed_bits = cbits;
1168 br->consumed_bits = cbits;