Home
last modified time | relevance | path

Searched refs:bit_count (Results 1 – 25 of 44) sorted by relevance

12

/external/webrtc/webrtc/base/
Dbitbuffer.cc21 uint8_t LowestBits(uint8_t byte, size_t bit_count) { in LowestBits() argument
22 RTC_DCHECK_LE(bit_count, 8u); in LowestBits()
23 return byte & ((1 << bit_count) - 1); in LowestBits()
28 uint8_t HighestBits(uint8_t byte, size_t bit_count) { in HighestBits() argument
29 RTC_DCHECK_LE(bit_count, 8u); in HighestBits()
30 uint8_t shift = 8 - static_cast<uint8_t>(bit_count); in HighestBits()
64 size_t bit_count = 0; in CountBits() local
66 bit_count++; in CountBits()
69 return bit_count; in CountBits()
110 bool BitBuffer::PeekBits(uint32_t* val, size_t bit_count) { in PeekBits() argument
[all …]
Dbitbuffer.h47 bool ReadBits(uint32_t* val, size_t bit_count);
52 bool PeekBits(uint32_t* val, size_t bit_count);
73 bool ConsumeBits(size_t bit_count);
107 bool WriteBits(uint64_t val, size_t bit_count);
Dbitbuffer_unittest.cc182 uint64_t bit_count = 0; in GolombEncoded() local
184 bit_count++; in GolombEncoded()
187 return static_cast<uint64_t>(val) << (64 - (bit_count * 2 - 1)); in GolombEncoded()
/external/v4l2_codec2/accel/
Dvp8_bool_decoder.cc177 int bit_count = count_ + 8; in BitOffset() local
178 if (bit_count > VP8_BD_VALUE_BIT) in BitOffset()
180 bit_count = std::max(0, bit_count - VP8_LOTS_OF_BITS); in BitOffset()
181 return (user_buffer_ - user_buffer_start_) * 8 - bit_count; in BitOffset()
/external/libxaac/decoder/
Dixheaacd_headerdecode.c792 WORD32 bit_count = aac_state_struct->bit_count; in ixheaacd_latm_header_decode() local
802 bit_count += 11; in ixheaacd_latm_header_decode()
805 bit_count += 1; in ixheaacd_latm_header_decode()
814 bit_count += 13; in ixheaacd_latm_header_decode()
818 bit_count += audio_mux_len_bits_last; in ixheaacd_latm_header_decode()
821 bit_count += 11; in ixheaacd_latm_header_decode()
826 bit_count -= 11 + audio_mux_len_bits_last + 13 + 11; in ixheaacd_latm_header_decode()
831 bit_count -= audio_mux_len_bits_last + 24 + 11 - 1; in ixheaacd_latm_header_decode()
836 bit_count -= (13 + 11); in ixheaacd_latm_header_decode()
847 bit_count += 11; in ixheaacd_latm_header_decode()
[all …]
Dixheaacd_arith_dec.c1689 WORD32 bit_count = 16; in ixheaacd_arith_first_symbol() local
1704 return bit_count; in ixheaacd_arith_first_symbol()
1729 WORD32 bit_count, WORD32 *m, state_arith *s, in ixheaacd_arith_decode() argument
1786 bit_count++; in ixheaacd_arith_decode()
1795 return bit_count; in ixheaacd_arith_decode()
1807 WORD32 bit_count = 0; in ixheaacd_arth_decoding_level2() local
1818 bit_count = ixheaacd_arith_first_symbol(&it_bit_buff_temp, &as); in ixheaacd_arth_decoding_level2()
1828 bit_count = ixheaacd_arith_decode(&it_bit_buff_temp, bit_count, &m, &as, in ixheaacd_arth_decoding_level2()
1830 if (bit_count == -1) { in ixheaacd_arth_decoding_level2()
1858 bit_count = ixheaacd_arith_decode(&it_bit_buff_temp, bit_count, &m, &as, in ixheaacd_arth_decoding_level2()
[all …]
Dixheaacd_drc_freq_dec.c669 int bit_count = 0; in ixheaacd_drc_read_compression() local
707 bit_count += 24; in ixheaacd_drc_read_compression()
711 bit_count += 8; in ixheaacd_drc_read_compression()
721 bit_count += 16; in ixheaacd_drc_read_compression()
741 bit_count += 16; in ixheaacd_drc_read_compression()
745 bit_count += 16; in ixheaacd_drc_read_compression()
757 bit_count += ext_bits; in ixheaacd_drc_read_compression()
760 return (bit_count); in ixheaacd_drc_read_compression()
Dixheaacd_bitbuffer.c274 it_bit_buff->bit_count += no_of_bits; in ixheaacd_write_bit()
301 ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->bit_count, NULL); in ixheaacd_read_bit()
Dixheaacd_bitbuffer.h81 WORD32 bit_count; member
/external/freetype/src/pshinter/
Dpshrec.c313 FT_UInt bit_count, in ps_mask_table_set_bits() argument
324 error = ps_mask_ensure( mask, bit_count, memory ); in ps_mask_table_set_bits()
328 mask->num_bits = bit_count; in ps_mask_table_set_bits()
339 for ( ; bit_count > 0; bit_count-- ) in ps_mask_table_set_bits()
993 FT_UInt bit_count, in ps_hints_t2mask() argument
1008 if ( bit_count != count1 + count2 ) in ps_hints_t2mask()
1012 bit_count, count1 + count2 )); in ps_hints_t2mask()
1038 FT_UInt bit_count, in ps_hints_t2counter() argument
1053 if ( bit_count != count1 + count2 ) in ps_hints_t2counter()
1057 bit_count, count1 + count2 )); in ps_hints_t2counter()
/external/mesa3d/src/panfrost/lib/
Dpan_invocation.c74 unsigned bit_count = util_logbase2_ceil(values[i] + 1); in panfrost_pack_work_groups_compute() local
77 shifts[i + 1] = shifts[i] + bit_count; in panfrost_pack_work_groups_compute()
/external/vixl/src/aarch64/
Ddecoder-aarch64.h393 int bit_count = static_cast<int>(strlen(map.mapping[0].pattern)); variable
394 VIXL_CHECK((bit_count > 0) && (bit_count <= 32));
395 SetSampledBits(map.sampled_bits, bit_count);
407 void SetSampledBits(const uint8_t* bits, int bit_count);
Ddecoder-aarch64.cc137 void DecodeNode::SetSampledBits(const uint8_t* bits, int bit_count) { in VISITOR_LIST()
140 sampled_bits_.resize(bit_count); in VISITOR_LIST()
141 for (int i = 0; i < bit_count; i++) { in VISITOR_LIST()
/external/ltp/include/
Dtst_net.h39 static inline int bit_count(uint32_t i) in bit_count() function
63 return bit_count(ntohl(mask.s_addr)); in mask2prefix()
/external/freetype/include/freetype/internal/
Dpshints.h510 FT_UInt bit_count,
551 FT_UInt bit_count,
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
D2011-05-27-CrossClassCoalescing.ll5 @bit_count = external constant [256 x i32], align 16
30 …%arrayidx16.i = getelementptr inbounds [256 x i32], [256 x i32]* @bit_count, i64 0, i64 %idxprom15…
/external/llvm/test/CodeGen/X86/
D2011-05-27-CrossClassCoalescing.ll5 @bit_count = external constant [256 x i32], align 16
30 …%arrayidx16.i = getelementptr inbounds [256 x i32], [256 x i32]* @bit_count, i64 0, i64 %idxprom15…
/external/u-boot/include/
Dbmp_layout.h34 __u16 bit_count; member
/external/libaom/libaom/third_party/libwebm/mkvmuxer/
Dmkvmuxerutil.cc331 const int32 bit_count = byte_count * 8; in SerializeInt() local
333 const int64 bb = value >> bit_count; in SerializeInt()
360 const int32 bit_count = byte_count * 8; in SerializeFloat() local
362 const uint8 byte = static_cast<uint8>(value.u32 >> bit_count); in SerializeFloat()
/external/libvpx/libvpx/third_party/libwebm/mkvmuxer/
Dmkvmuxerutil.cc331 const int32 bit_count = byte_count * 8; in SerializeInt() local
333 const int64 bb = value >> bit_count; in SerializeInt()
360 const int32 bit_count = byte_count * 8; in SerializeFloat() local
362 const uint8 byte = static_cast<uint8>(value.u32 >> bit_count); in SerializeFloat()
/external/u-boot/drivers/video/
Dvideo_bmp.c213 bmp_bpix = get_unaligned_le16(&bmp->header.bit_count); in video_bmp_display()
238 bpix, get_unaligned_le16(&bmp->header.bit_count)); in video_bmp_display()
/external/ppp/pppd/
Dauth.c1895 int bit_count; local
1898 bit_count = (int) strtol (ptr_mask+1, &endp, 10);
1899 if (bit_count <= 0 || bit_count > 32) {
1904 bit_count = 32 - bit_count; /* # bits in host part */
1914 mask <<= bit_count;
/external/u-boot/cmd/
Dbmp.c214 printf("Bits per pixel: %d\n", le16_to_cpu(bmp->header.bit_count)); in bmp_info()
/external/webrtc/webrtc/modules/audio_processing/utility/
Ddelay_estimator.c549 int32_t bit_count = (self->bit_counts[i] << 9); // Q9. in WebRtc_ProcessBinarySpectrum() local
558 WebRtc_MeanEstimatorFix(bit_count, shifts, &(self->mean_bit_counts[i])); in WebRtc_ProcessBinarySpectrum()
/external/u-boot/common/
Dlcd.c579 bmp_bpix = get_unaligned_le16(&bmp->header.bit_count); in lcd_display_bitmap()
602 bpix, get_unaligned_le16(&bmp->header.bit_count)); in lcd_display_bitmap()

12