Lines Matching refs:words
70 #define FLAC__WORDS_TO_BITS(words) ((words) * FLAC__BITS_PER_WORD) argument
71 #define FLAC__TOTAL_BITS(bw) (FLAC__WORDS_TO_BITS((bw)->words) + (bw)->bits)
77 unsigned words; /* # of complete words in buffer */ member
94 …new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WO… in bitwriter_grow_()
108 …FLAC__ASSERT(new_capacity >= bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLA… in bitwriter_grow_()
150 bw->words = bw->bits = 0; in FLAC__bitwriter_init()
167 bw->words = bw->bits = 0; in FLAC__bitwriter_free()
172 bw->words = bw->bits = 0; in FLAC__bitwriter_clear()
182 …fprintf(out, "bitwriter: capacity=%u words=%u bits=%u total_bits=%u\n", bw->capacity, bw->words, b… in FLAC__bitwriter_dump()
184 for(i = 0; i < bw->words; i++) { in FLAC__bitwriter_dump()
247 FLAC__ASSERT(bw->words <= bw->capacity); in FLAC__bitwriter_get_buffer()
248 if(bw->words == bw->capacity && !bitwriter_grow_(bw, FLAC__BITS_PER_WORD)) in FLAC__bitwriter_get_buffer()
251 bw->buffer[bw->words] = SWAP_BE_WORD_TO_HOST(bw->accum << (FLAC__BITS_PER_WORD-bw->bits)); in FLAC__bitwriter_get_buffer()
255 *bytes = (FLAC__BYTES_PER_WORD * bw->words) + (bw->bits >> 3); in FLAC__bitwriter_get_buffer()
277 if(bw->capacity <= bw->words + bits && !bitwriter_grow_(bw, bits)) in FLAC__bitwriter_write_zeroes()
286 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_zeroes()
294 bw->buffer[bw->words++] = 0; in FLAC__bitwriter_write_zeroes()
320 if(bw->capacity <= bw->words + bits && !bitwriter_grow_(bw, bits)) in FLAC__bitwriter_write_raw_uint32()
332 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_raw_uint32()
338 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(val); in FLAC__bitwriter_write_raw_uint32()
538 …if(bw->capacity <= bw->words + bw->bits + msbits + 1/*lsbits always fit in 1 uint32_t*/ && !bitwri… in FLAC__bitwriter_write_rice_signed_block()
553 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_rice_signed_block()
559 bw->buffer[bw->words++] = 0; in FLAC__bitwriter_write_rice_signed_block()
587 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_rice_signed_block()