Lines Matching refs:consumed_words
109 uint32_t consumed_words; /* #words ... */ member
133 if(br->consumed_words > br->crc16_offset && br->crc16_align) in crc16_update_block_()
137 if (br->consumed_words > br->crc16_offset) { in crc16_update_block_()
139 …br->read_crc16 = FLAC__crc16_update_words32(br->buffer + br->crc16_offset, br->consumed_words - br… in crc16_update_block_()
141 …br->read_crc16 = FLAC__crc16_update_words64(br->buffer + br->crc16_offset, br->consumed_words - br… in crc16_update_block_()
145 for (i = br->crc16_offset; i < br->consumed_words; i++) in crc16_update_block_()
160 if(br->consumed_words > 0) { in bitreader_read_from_client_()
163 start = br->consumed_words; in bitreader_read_from_client_()
168 br->consumed_words = 0; in bitreader_read_from_client_()
271 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_init()
291 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_free()
299 br->consumed_words = br->consumed_bits = 0; in FLAC__bitreader_clear()
310 …sumed: words=%u, bits=%u\n", br->capacity, br->words, br->bytes, br->consumed_words, br->consumed_… in FLAC__bitreader_dump()
315 if(i < br->consumed_words || (i == br->consumed_words && j < br->consumed_bits)) in FLAC__bitreader_dump()
324 if(i < br->consumed_words || (i == br->consumed_words && j < br->consumed_bits)) in FLAC__bitreader_dump()
340 br->crc16_offset = br->consumed_words; in FLAC__bitreader_reset_read_crc16()
357 const brword tail = br->buffer[br->consumed_words]; in FLAC__bitreader_get_read_crc16()
376 return (br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits; in FLAC__bitreader_get_input_bits_unconsumed()
386 FLAC__ASSERT(br->consumed_words <= br->words); in FLAC__bitreader_read_raw_uint32()
396 …while((br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits < bits)… in FLAC__bitreader_read_raw_uint32()
400 if(br->consumed_words < br->words) { /* if we've not consumed up to a partial tail word... */ in FLAC__bitreader_read_raw_uint32()
405 const brword word = br->buffer[br->consumed_words]; in FLAC__bitreader_read_raw_uint32()
416 br->consumed_words++; in FLAC__bitreader_read_raw_uint32()
421 … *val |= shift < FLAC__BITS_PER_WORD ? (FLAC__uint32)(br->buffer[br->consumed_words] >> shift) : 0; in FLAC__bitreader_read_raw_uint32()
427 const brword word = br->buffer[br->consumed_words]; in FLAC__bitreader_read_raw_uint32()
435 br->consumed_words++; in FLAC__bitreader_read_raw_uint32()
448 …*val = (FLAC__uint32)((br->buffer[br->consumed_words] & (FLAC__WORD_ALL_ONES >> br->consumed_bits)… in FLAC__bitreader_read_raw_uint32()
453 *val = (FLAC__uint32)(br->buffer[br->consumed_words] >> (FLAC__BITS_PER_WORD-bits)); in FLAC__bitreader_read_raw_uint32()
572 if(br->consumed_words < br->words) { in FLAC__bitreader_skip_byte_block_aligned_no_crc()
573 br->consumed_words++; in FLAC__bitreader_skip_byte_block_aligned_no_crc()
608 if(br->consumed_words < br->words) { in FLAC__bitreader_read_byte_block_aligned_no_crc()
609 const brword word = br->buffer[br->consumed_words++]; in FLAC__bitreader_read_byte_block_aligned_no_crc()
673 while(br->consumed_words < br->words) { /* if we've not consumed up to a partial tail word... */
674 …brword b = br->consumed_bits < FLAC__BITS_PER_WORD ? br->buffer[br->consumed_words] << br->consume…
681 br->consumed_words++;
688 br->consumed_words++;
702 …brword b = (br->buffer[br->consumed_words] & (FLAC__WORD_ALL_ONES << (FLAC__BITS_PER_WORD-end))) <…
786 cwords = br->consumed_words; in FLAC__bitreader_read_rice_signed_block()
847 br->consumed_words = cwords; in FLAC__bitreader_read_rice_signed_block()
859 br->consumed_words = cwords; in FLAC__bitreader_read_rice_signed_block()
872 cwords = br->consumed_words; in FLAC__bitreader_read_rice_signed_block()
886 br->consumed_words = cwords; in FLAC__bitreader_read_rice_signed_block()