Lines Matching refs:bw

71 #define FLAC__TOTAL_BITS(bw) (FLAC__WORDS_TO_BITS((bw)->words) + (bw)->bits)  argument
85 FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add) in bitwriter_grow_() argument
90 FLAC__ASSERT(0 != bw); in bitwriter_grow_()
91 FLAC__ASSERT(0 != bw->buffer); in bitwriter_grow_()
94 …new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WO… in bitwriter_grow_()
99 if(bw->capacity >= new_capacity) in bitwriter_grow_()
103 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT) in bitwriter_grow_()
104 …new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRIT… in bitwriter_grow_()
106 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); in bitwriter_grow_()
107 FLAC__ASSERT(new_capacity > bw->capacity); in bitwriter_grow_()
108 …FLAC__ASSERT(new_capacity >= bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLA… in bitwriter_grow_()
110 new_buffer = safe_realloc_mul_2op_(bw->buffer, sizeof(uint32_t), /*times*/new_capacity); in bitwriter_grow_()
113 bw->buffer = new_buffer; in bitwriter_grow_()
114 bw->capacity = new_capacity; in bitwriter_grow_()
127 FLAC__BitWriter *bw = calloc(1, sizeof(FLAC__BitWriter)); in FLAC__bitwriter_new() local
129 return bw; in FLAC__bitwriter_new()
132 void FLAC__bitwriter_delete(FLAC__BitWriter *bw) in FLAC__bitwriter_delete() argument
134 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_delete()
136 FLAC__bitwriter_free(bw); in FLAC__bitwriter_delete()
137 free(bw); in FLAC__bitwriter_delete()
146 FLAC__bool FLAC__bitwriter_init(FLAC__BitWriter *bw) in FLAC__bitwriter_init() argument
148 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_init()
150 bw->words = bw->bits = 0; in FLAC__bitwriter_init()
151 bw->capacity = FLAC__BITWRITER_DEFAULT_CAPACITY; in FLAC__bitwriter_init()
152 bw->buffer = malloc(sizeof(uint32_t) * bw->capacity); in FLAC__bitwriter_init()
153 if(bw->buffer == 0) in FLAC__bitwriter_init()
159 void FLAC__bitwriter_free(FLAC__BitWriter *bw) in FLAC__bitwriter_free() argument
161 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_free()
163 if(0 != bw->buffer) in FLAC__bitwriter_free()
164 free(bw->buffer); in FLAC__bitwriter_free()
165 bw->buffer = 0; in FLAC__bitwriter_free()
166 bw->capacity = 0; in FLAC__bitwriter_free()
167 bw->words = bw->bits = 0; in FLAC__bitwriter_free()
170 void FLAC__bitwriter_clear(FLAC__BitWriter *bw) in FLAC__bitwriter_clear() argument
172 bw->words = bw->bits = 0; in FLAC__bitwriter_clear()
175 void FLAC__bitwriter_dump(const FLAC__BitWriter *bw, FILE *out) in FLAC__bitwriter_dump() argument
178 if(bw == 0) { in FLAC__bitwriter_dump()
182 …: capacity=%u words=%u bits=%u total_bits=%u\n", bw->capacity, bw->words, bw->bits, FLAC__TOTAL_BI… in FLAC__bitwriter_dump()
184 for(i = 0; i < bw->words; i++) { in FLAC__bitwriter_dump()
187 fprintf(out, "%01u", bw->buffer[i] & (1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0); in FLAC__bitwriter_dump()
190 if(bw->bits > 0) { in FLAC__bitwriter_dump()
192 for(j = 0; j < bw->bits; j++) in FLAC__bitwriter_dump()
193 fprintf(out, "%01u", bw->accum & (1 << (bw->bits-j-1)) ? 1:0); in FLAC__bitwriter_dump()
199 FLAC__bool FLAC__bitwriter_get_write_crc16(FLAC__BitWriter *bw, FLAC__uint16 *crc) in FLAC__bitwriter_get_write_crc16() argument
204 FLAC__ASSERT((bw->bits & 7) == 0); /* assert that we're byte-aligned */ in FLAC__bitwriter_get_write_crc16()
206 if(!FLAC__bitwriter_get_buffer(bw, &buffer, &bytes)) in FLAC__bitwriter_get_write_crc16()
210 FLAC__bitwriter_release_buffer(bw); in FLAC__bitwriter_get_write_crc16()
214 FLAC__bool FLAC__bitwriter_get_write_crc8(FLAC__BitWriter *bw, FLAC__byte *crc) in FLAC__bitwriter_get_write_crc8() argument
219 FLAC__ASSERT((bw->bits & 7) == 0); /* assert that we're byte-aligned */ in FLAC__bitwriter_get_write_crc8()
221 if(!FLAC__bitwriter_get_buffer(bw, &buffer, &bytes)) in FLAC__bitwriter_get_write_crc8()
225 FLAC__bitwriter_release_buffer(bw); in FLAC__bitwriter_get_write_crc8()
229 FLAC__bool FLAC__bitwriter_is_byte_aligned(const FLAC__BitWriter *bw) in FLAC__bitwriter_is_byte_aligned() argument
231 return ((bw->bits & 7) == 0); in FLAC__bitwriter_is_byte_aligned()
234 unsigned FLAC__bitwriter_get_input_bits_unconsumed(const FLAC__BitWriter *bw) in FLAC__bitwriter_get_input_bits_unconsumed() argument
236 return FLAC__TOTAL_BITS(bw); in FLAC__bitwriter_get_input_bits_unconsumed()
239 FLAC__bool FLAC__bitwriter_get_buffer(FLAC__BitWriter *bw, const FLAC__byte **buffer, size_t *bytes) in FLAC__bitwriter_get_buffer() argument
241 FLAC__ASSERT((bw->bits & 7) == 0); in FLAC__bitwriter_get_buffer()
243 if(bw->bits & 7) in FLAC__bitwriter_get_buffer()
246 if(bw->bits) { in FLAC__bitwriter_get_buffer()
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()
254 *buffer = (FLAC__byte*)bw->buffer; in FLAC__bitwriter_get_buffer()
255 *bytes = (FLAC__BYTES_PER_WORD * bw->words) + (bw->bits >> 3); in FLAC__bitwriter_get_buffer()
259 void FLAC__bitwriter_release_buffer(FLAC__BitWriter *bw) in FLAC__bitwriter_release_buffer() argument
264 (void)bw; in FLAC__bitwriter_release_buffer()
267 inline FLAC__bool FLAC__bitwriter_write_zeroes(FLAC__BitWriter *bw, unsigned bits) in FLAC__bitwriter_write_zeroes() argument
271 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_write_zeroes()
272 FLAC__ASSERT(0 != bw->buffer); in FLAC__bitwriter_write_zeroes()
277 if(bw->capacity <= bw->words + bits && !bitwriter_grow_(bw, bits)) in FLAC__bitwriter_write_zeroes()
280 if(bw->bits) { in FLAC__bitwriter_write_zeroes()
281 n = flac_min(FLAC__BITS_PER_WORD - bw->bits, bits); in FLAC__bitwriter_write_zeroes()
282 bw->accum <<= n; in FLAC__bitwriter_write_zeroes()
284 bw->bits += n; in FLAC__bitwriter_write_zeroes()
285 if(bw->bits == FLAC__BITS_PER_WORD) { in FLAC__bitwriter_write_zeroes()
286 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_zeroes()
287 bw->bits = 0; in FLAC__bitwriter_write_zeroes()
294 bw->buffer[bw->words++] = 0; in FLAC__bitwriter_write_zeroes()
299 bw->accum = 0; in FLAC__bitwriter_write_zeroes()
300 bw->bits = bits; in FLAC__bitwriter_write_zeroes()
305 inline FLAC__bool FLAC__bitwriter_write_raw_uint32(FLAC__BitWriter *bw, FLAC__uint32 val, unsigned … in FLAC__bitwriter_write_raw_uint32() argument
312 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_write_raw_uint32()
313 FLAC__ASSERT(0 != bw->buffer); in FLAC__bitwriter_write_raw_uint32()
320 if(bw->capacity <= bw->words + bits && !bitwriter_grow_(bw, bits)) in FLAC__bitwriter_write_raw_uint32()
323 left = FLAC__BITS_PER_WORD - bw->bits; in FLAC__bitwriter_write_raw_uint32()
325 bw->accum <<= bits; in FLAC__bitwriter_write_raw_uint32()
326 bw->accum |= val; in FLAC__bitwriter_write_raw_uint32()
327 bw->bits += bits; in FLAC__bitwriter_write_raw_uint32()
329 …else if(bw->bits) { /* WATCHOUT: if bw->bits == 0, left==FLAC__BITS_PER_WORD and bw->accum<<=left … in FLAC__bitwriter_write_raw_uint32()
330 bw->accum <<= left; in FLAC__bitwriter_write_raw_uint32()
331 bw->accum |= val >> (bw->bits = bits - left); in FLAC__bitwriter_write_raw_uint32()
332 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_raw_uint32()
333 bw->accum = val; in FLAC__bitwriter_write_raw_uint32()
336 bw->accum = val; in FLAC__bitwriter_write_raw_uint32()
337 bw->bits = 0; in FLAC__bitwriter_write_raw_uint32()
338 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(val); in FLAC__bitwriter_write_raw_uint32()
344 inline FLAC__bool FLAC__bitwriter_write_raw_int32(FLAC__BitWriter *bw, FLAC__int32 val, unsigned bi… in FLAC__bitwriter_write_raw_int32() argument
350 return FLAC__bitwriter_write_raw_uint32(bw, (FLAC__uint32)val, bits); in FLAC__bitwriter_write_raw_int32()
353 inline FLAC__bool FLAC__bitwriter_write_raw_uint64(FLAC__BitWriter *bw, FLAC__uint64 val, unsigned … in FLAC__bitwriter_write_raw_uint64() argument
358 FLAC__bitwriter_write_raw_uint32(bw, (FLAC__uint32)(val>>32), bits-32) && in FLAC__bitwriter_write_raw_uint64()
359 FLAC__bitwriter_write_raw_uint32(bw, (FLAC__uint32)val, 32); in FLAC__bitwriter_write_raw_uint64()
362 return FLAC__bitwriter_write_raw_uint32(bw, (FLAC__uint32)val, bits); in FLAC__bitwriter_write_raw_uint64()
365 inline FLAC__bool FLAC__bitwriter_write_raw_uint32_little_endian(FLAC__BitWriter *bw, FLAC__uint32 … in FLAC__bitwriter_write_raw_uint32_little_endian() argument
369 if(!FLAC__bitwriter_write_raw_uint32(bw, val & 0xff, 8)) in FLAC__bitwriter_write_raw_uint32_little_endian()
371 if(!FLAC__bitwriter_write_raw_uint32(bw, (val>>8) & 0xff, 8)) in FLAC__bitwriter_write_raw_uint32_little_endian()
373 if(!FLAC__bitwriter_write_raw_uint32(bw, (val>>16) & 0xff, 8)) in FLAC__bitwriter_write_raw_uint32_little_endian()
375 if(!FLAC__bitwriter_write_raw_uint32(bw, val>>24, 8)) in FLAC__bitwriter_write_raw_uint32_little_endian()
381 inline FLAC__bool FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], un… in FLAC__bitwriter_write_byte_block() argument
387 if(!FLAC__bitwriter_write_raw_uint32(bw, (FLAC__uint32)(vals[i]), 8)) in FLAC__bitwriter_write_byte_block()
394 FLAC__bool FLAC__bitwriter_write_unary_unsigned(FLAC__BitWriter *bw, unsigned val) in FLAC__bitwriter_write_unary_unsigned() argument
397 return FLAC__bitwriter_write_raw_uint32(bw, 1, ++val); in FLAC__bitwriter_write_unary_unsigned()
400 FLAC__bitwriter_write_zeroes(bw, val) && in FLAC__bitwriter_write_unary_unsigned()
401 FLAC__bitwriter_write_raw_uint32(bw, 1, 1); in FLAC__bitwriter_write_unary_unsigned()
480 FLAC__bool FLAC__bitwriter_write_rice_signed(FLAC__BitWriter *bw, FLAC__int32 val, unsigned paramet… in FLAC__bitwriter_write_rice_signed() argument
485 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_write_rice_signed()
486 FLAC__ASSERT(0 != bw->buffer); in FLAC__bitwriter_write_rice_signed()
499 return FLAC__bitwriter_write_raw_uint32(bw, pattern, total_bits); in FLAC__bitwriter_write_rice_signed()
502 FLAC__bitwriter_write_zeroes(bw, msbs) && /* write the unary MSBs */ in FLAC__bitwriter_write_rice_signed()
503 …FLAC__bitwriter_write_raw_uint32(bw, pattern, interesting_bits); /* write the unary end bit and bi… in FLAC__bitwriter_write_rice_signed()
506 FLAC__bool FLAC__bitwriter_write_rice_signed_block(FLAC__BitWriter *bw, const FLAC__int32 *vals, un… in FLAC__bitwriter_write_rice_signed_block() argument
515 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_write_rice_signed_block()
516 FLAC__ASSERT(0 != bw->buffer); in FLAC__bitwriter_write_rice_signed_block()
529 …if(bw->bits && bw->bits + msbits + lsbits < FLAC__BITS_PER_WORD) { /* i.e. if the whole thing fits… in FLAC__bitwriter_write_rice_signed_block()
531 bw->bits = bw->bits + msbits + lsbits; in FLAC__bitwriter_write_rice_signed_block()
534 bw->accum <<= msbits + lsbits; in FLAC__bitwriter_write_rice_signed_block()
535 bw->accum |= uval; in FLAC__bitwriter_write_rice_signed_block()
540 …if(bw->capacity <= bw->words + bw->bits + msbits + 1/*lsbits always fit in 1 uint32_t*/ && !bitwri… in FLAC__bitwriter_write_rice_signed_block()
545 if(bw->bits) { in FLAC__bitwriter_write_rice_signed_block()
546 left = FLAC__BITS_PER_WORD - bw->bits; in FLAC__bitwriter_write_rice_signed_block()
548 bw->accum <<= msbits; in FLAC__bitwriter_write_rice_signed_block()
549 bw->bits += msbits; in FLAC__bitwriter_write_rice_signed_block()
553 bw->accum <<= left; in FLAC__bitwriter_write_rice_signed_block()
555 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_rice_signed_block()
556 bw->bits = 0; in FLAC__bitwriter_write_rice_signed_block()
561 bw->buffer[bw->words++] = 0; in FLAC__bitwriter_write_rice_signed_block()
566 bw->accum = 0; in FLAC__bitwriter_write_rice_signed_block()
567 bw->bits = msbits; in FLAC__bitwriter_write_rice_signed_block()
574 left = FLAC__BITS_PER_WORD - bw->bits; in FLAC__bitwriter_write_rice_signed_block()
576 bw->accum <<= lsbits; in FLAC__bitwriter_write_rice_signed_block()
577 bw->accum |= uval; in FLAC__bitwriter_write_rice_signed_block()
578 bw->bits += lsbits; in FLAC__bitwriter_write_rice_signed_block()
585 FLAC__ASSERT(bw->bits); in FLAC__bitwriter_write_rice_signed_block()
587 bw->accum <<= left; in FLAC__bitwriter_write_rice_signed_block()
588 bw->accum |= uval >> (bw->bits = lsbits - left); in FLAC__bitwriter_write_rice_signed_block()
589 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_rice_signed_block()
590 bw->accum = uval; in FLAC__bitwriter_write_rice_signed_block()
600 FLAC__bool FLAC__bitwriter_write_golomb_signed(FLAC__BitWriter *bw, int val, unsigned parameter)
605 FLAC__ASSERT(0 != bw);
606 FLAC__ASSERT(0 != bw->buffer);
627 if(!FLAC__bitwriter_write_raw_uint32(bw, pattern, total_bits))
632 if(!FLAC__bitwriter_write_zeroes(bw, msbs))
635 if(!FLAC__bitwriter_write_raw_uint32(bw, pattern, k+1))
646 if(!FLAC__bitwriter_write_zeroes(bw, q))
649 if(!FLAC__bitwriter_write_raw_uint32(bw, 1, 1))
653 if(!FLAC__bitwriter_write_raw_uint32(bw, r+d, k+1))
657 if(!FLAC__bitwriter_write_raw_uint32(bw, r, k))
664 FLAC__bool FLAC__bitwriter_write_golomb_unsigned(FLAC__BitWriter *bw, unsigned uval, unsigned param…
669 FLAC__ASSERT(0 != bw);
670 FLAC__ASSERT(0 != bw->buffer);
685 if(!FLAC__bitwriter_write_raw_uint32(bw, pattern, total_bits))
690 if(!FLAC__bitwriter_write_zeroes(bw, msbs))
693 if(!FLAC__bitwriter_write_raw_uint32(bw, pattern, k+1))
704 if(!FLAC__bitwriter_write_zeroes(bw, q))
707 if(!FLAC__bitwriter_write_raw_uint32(bw, 1, 1))
711 if(!FLAC__bitwriter_write_raw_uint32(bw, r+d, k+1))
715 if(!FLAC__bitwriter_write_raw_uint32(bw, r, k))
723 FLAC__bool FLAC__bitwriter_write_utf8_uint32(FLAC__BitWriter *bw, FLAC__uint32 val) in FLAC__bitwriter_write_utf8_uint32() argument
727 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_write_utf8_uint32()
728 FLAC__ASSERT(0 != bw->buffer); in FLAC__bitwriter_write_utf8_uint32()
733 return FLAC__bitwriter_write_raw_uint32(bw, val, 8); in FLAC__bitwriter_write_utf8_uint32()
736 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xC0 | (val>>6), 8); in FLAC__bitwriter_write_utf8_uint32()
737 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
740 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xE0 | (val>>12), 8); in FLAC__bitwriter_write_utf8_uint32()
741 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
742 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
745 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xF0 | (val>>18), 8); in FLAC__bitwriter_write_utf8_uint32()
746 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>12)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
747 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
748 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
751 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xF8 | (val>>24), 8); in FLAC__bitwriter_write_utf8_uint32()
752 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>18)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
753 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>12)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
754 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
755 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
758 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xFC | (val>>30), 8); in FLAC__bitwriter_write_utf8_uint32()
759 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>24)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
760 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>18)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
761 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>12)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
762 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | ((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
763 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
769 FLAC__bool FLAC__bitwriter_write_utf8_uint64(FLAC__BitWriter *bw, FLAC__uint64 val) in FLAC__bitwriter_write_utf8_uint64() argument
773 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_write_utf8_uint64()
774 FLAC__ASSERT(0 != bw->buffer); in FLAC__bitwriter_write_utf8_uint64()
779 return FLAC__bitwriter_write_raw_uint32(bw, (FLAC__uint32)val, 8); in FLAC__bitwriter_write_utf8_uint64()
782 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xC0 | (FLAC__uint32)(val>>6), 8); in FLAC__bitwriter_write_utf8_uint64()
783 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)(val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
786 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xE0 | (FLAC__uint32)(val>>12), 8); in FLAC__bitwriter_write_utf8_uint64()
787 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
788 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)(val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
791 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xF0 | (FLAC__uint32)(val>>18), 8); in FLAC__bitwriter_write_utf8_uint64()
792 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>12)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
793 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
794 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)(val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
797 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xF8 | (FLAC__uint32)(val>>24), 8); in FLAC__bitwriter_write_utf8_uint64()
798 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>18)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
799 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>12)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
800 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
801 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)(val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
804 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xFC | (FLAC__uint32)(val>>30), 8); in FLAC__bitwriter_write_utf8_uint64()
805 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>24)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
806 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>18)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
807 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>12)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
808 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
809 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)(val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
812 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0xFE, 8); in FLAC__bitwriter_write_utf8_uint64()
813 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>30)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
814 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>24)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
815 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>18)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
816 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>12)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
817 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
818 ok &= FLAC__bitwriter_write_raw_uint32(bw, 0x80 | (FLAC__uint32)(val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint64()
824 FLAC__bool FLAC__bitwriter_zero_pad_to_byte_boundary(FLAC__BitWriter *bw) in FLAC__bitwriter_zero_pad_to_byte_boundary() argument
827 if(bw->bits & 7u) in FLAC__bitwriter_zero_pad_to_byte_boundary()
828 return FLAC__bitwriter_write_zeroes(bw, 8 - (bw->bits & 7u)); in FLAC__bitwriter_zero_pad_to_byte_boundary()
841 extern FLAC__bool FLAC__bitwriter_write_zeroes(FLAC__BitWriter *bw, unsigned bits);
842 extern FLAC__bool FLAC__bitwriter_write_raw_int32(FLAC__BitWriter *bw, FLAC__int32 val, unsigned bi…
843 extern FLAC__bool FLAC__bitwriter_write_raw_uint64(FLAC__BitWriter *bw, FLAC__uint64 val, unsigned …
844 extern FLAC__bool FLAC__bitwriter_write_raw_uint32_little_endian(FLAC__BitWriter *bw, FLAC__uint32 …
845 extern FLAC__bool FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], un…