Lines Matching refs:bits_count
704 #define PUT_BITS(data_ptr, bits_cache, bits_count, v, n) \ argument
707 bits_count += (n); \
708 if (bits_count >= 16) { \
709 bits_count -= 8; \
711 (bits_cache >> bits_count); \
712 bits_count -= 8; \
714 (bits_cache >> bits_count); \
718 #define FLUSH_BITS(data_ptr, bits_cache, bits_count) \ argument
720 while (bits_count >= 8) { \
721 bits_count -= 8; \
723 (bits_cache >> bits_count); \
725 if (bits_count > 0) \
727 (bits_cache << (8 - bits_count)); \
752 uint32_t bits_count = 0; in sbc_pack_frame_internal() local
861 PUT_BITS(data_ptr, bits_cache, bits_count, in sbc_pack_frame_internal()
869 PUT_BITS(data_ptr, bits_cache, bits_count, in sbc_pack_frame_internal()
907 PUT_BITS(data_ptr, bits_cache, bits_count, in sbc_pack_frame_internal()
913 FLUSH_BITS(data_ptr, bits_cache, bits_count); in sbc_pack_frame_internal()