Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 71) sorted by relevance

123

/system/bt/embdrv/sbc/decoder/srce/
Ddequant.c133 INLINE float dequant_float(uint32_t raw, OI_UINT scale_factor, OI_UINT bits) { in dequant_float() argument
135 ((raw * 2.0f + 1.0f) / ((1 << bits) - 1.0f) - 1.0f); in dequant_float()
152 OI_UINT bits) { in OI_SBC_Dequant() argument
157 OI_ASSERT(bits <= 16); in OI_SBC_Dequant()
159 if (bits <= 1) { in OI_SBC_Dequant()
164 d *= dequant_long_scaled[bits]; in OI_SBC_Dequant()
172 float_result = dequant_float(raw, scale_factor, bits); in OI_SBC_Dequant()
191 OI_UINT bits) { in OI_SBC_Dequant_Unscaled() argument
196 OI_ASSERT(bits <= 16); in OI_SBC_Dequant_Unscaled()
198 if (bits <= 1) { in OI_SBC_Dequant_Unscaled()
[all …]
Dbitalloc.c143 OI_INT bits = scale_factor[sb]; in computeBitneed() local
144 if (bits > maxBits) { in computeBitneed()
145 maxBits = bits; in computeBitneed()
147 bitneeds[sb] = bits; in computeBitneed()
149 bitcount += bits; in computeBitneed()
151 prefBits += 2 + bits; in computeBitneed()
161 OI_INT bits = scale_factor[sb]; in computeBitneed() local
162 if (bits > maxBits) { in computeBitneed()
163 maxBits = bits; in computeBitneed()
165 prefBits += 2 + bits; in computeBitneed()
[all …]
Dbitalloc-sbc.c73 excess = allocAdjustedBits(&common->bits.uint8[sbL], in stereoBitAllocation()
76 excess = allocAdjustedBits(&common->bits.uint8[sbR], in stereoBitAllocation()
83 excess = allocExcessBits(&common->bits.uint8[sbL], excess); in stereoBitAllocation()
88 excess = allocExcessBits(&common->bits.uint8[sbR], excess); in stereoBitAllocation()
134 uint16_t bits; in OI_CODEC_SBC_CalculateBitpool() local
148 bits = 8 * (frameLen - SBC_HEADER_LEN) - hdr; in OI_CODEC_SBC_CalculateBitpool()
149 return DIVIDE(bits, nrof_blocks); in OI_CODEC_SBC_CalculateBitpool()
Dreadsamplesjoint.inc70 uint8_t *bits_array = &common->bits.uint8[0];
80 uint8_t bits = *bits_array++;
83 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr);
84 dequant = OI_SBC_Dequant(raw, sf, bits);
94 uint8_t bits = *bits_array++;
97 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr);
98 dequant = OI_SBC_Dequant(raw, sf, bits);
Ddecoder-private.c192 OI_UINT bits = common->bits.uint8[n]; in OI_SBC_ReadSamples() local
194 if (bits) { in OI_SBC_ReadSamples()
196 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); in OI_SBC_ReadSamples()
197 dequant = OI_SBC_Dequant(raw, sf, bits); in OI_SBC_ReadSamples()
Dbitstream-decode.c47 PRIVATE uint32_t OI_BITSTREAM_ReadUINT(OI_BITSTREAM* bs, OI_UINT bits) { in OI_BITSTREAM_ReadUINT() argument
50 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT()
/system/bt/embdrv/sbc/decoder/include/
Doi_bitstream.h47 INLINE uint32_t OI_BITSTREAM_ReadUINT(OI_BITSTREAM* bs, OI_UINT bits);
54 OI_UINT bits);
78 #define OI_BITSTREAM_READUINT(result, bits, ptr, value, bitPtr) \ argument
80 OI_ASSERT((bits) <= 16); \
84 while ((bitPtr + bits) > 32) { \
90 (result) >>= 32 - (bits); \
92 (bitPtr) += (bits); \
93 OI_ASSERT(((bits) == 0) || ((result) < (1u << (bits)))); \
96 #define OI_BITSTREAM_WRITEUINT(ptr, value, bitPtr, datum, bits) \ argument
98 (bitPtr) -= (bits); \
/system/bt/gd/packet/parser/fields/
Dscalar_field.cc57 num_leading_bits = start_offset.bits() % 8; in GenBounds()
60 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GenBounds()
61 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GenBounds()
74 std::string extract_type = util::GetTypeForSize(size.bits() + num_leading_bits); in GenExtractor()
82 if (util::RoundSizeUp(size.bits()) != size.bits()) { in GenExtractor()
84 for (int i = 0; i < size.bits(); i++) { in GenExtractor()
116 return util::RoundSizeUp(GetSize().bits()) != GetSize().bits(); in HasParameterValidator()
120 s << "ASSERT(" << GetName() << " < (static_cast<uint64_t>(1) << " << GetSize().bits() << "));"; in GenParameterValidator()
124 if (GetSize().bits() == 8) { in GenInserter()
127 s << "insert(" << GetName() << "_, i," << GetSize().bits() << ");"; in GenInserter()
[all …]
Dpacket_field.cc50 if (start_offset.bits() % 8 != 0 || end_offset.bits() % 8 != 0) { in GenBounds()
117 if (start_offset.bits() % 8 != 0 || end_offset.bits() % 8 != 0) { in GetRustBitOffset()
136 if (size.bits() < 8) { in GenBoundsCheck()
Denum_field.cc47 s << "insert(static_cast<" << util::GetTypeForSize(GetSize().bits()) << ">("; in GenInserter()
48 s << GetName() << "_), i, " << GetSize().bits() << ");"; in GenInserter()
Dreserved_field.cc63 …(static_cast<" << util::GetTypeForSize(GetSize().bits()) << ">(0) /* Reserved */, i, " << GetSize(… in GenInserter()
/system/tools/hidl/test/
Drun_tradefed_incompatible_tests.sh17 for bits in ${BITNESS[@]}; do
19 echo $bits $test
20 $ANDROID_BUILD_TOP/out/host/linux-x86/$bits/$test/$test ||
21 FAILED_TESTS+=("$bits:$test")
/system/bt/stack/test/hci/
Dstack_hci_test.cc57 preamble.bits.handle = 0xfff; in TEST_F()
58 preamble.bits.boundary = 0x3; in TEST_F()
59 preamble.bits.broadcast = 0x1; in TEST_F()
60 preamble.bits.unused15 = 0x0; in TEST_F()
61 preamble.bits.length = 0xffff; in TEST_F()
/system/bt/gd/packet/parser/
Dsize.h28 Size(int bits) { in Size() argument
30 bits_ = bits; in Size()
38 Size(int bits, std::string dynamic) { in Size() argument
40 bits_ = bits; in Size()
77 int bits() const { in bits() function
Dutil.h54 inline uint64_t GetMaxValueForBits(int bits) { in GetMaxValueForBits() argument
55 if (bits > 64) { in GetMaxValueForBits()
56 ERROR() << __func__ << ": Cannot use a type larger than 64 bits. (" << bits << ")\n"; in GetMaxValueForBits()
60 return ~(static_cast<uint64_t>(0)) >> (64 - bits); in GetMaxValueForBits()
/system/media/audio/include/system/
Daudio.h299 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_channel_mask_is_valid() local
306 bits = 0; in audio_channel_mask_is_valid()
309 return bits != 0; in audio_channel_mask_is_valid()
314 audio_channel_representation_t representation, uint32_t bits) in audio_channel_mask_from_representation_and_bits() argument
316 return (audio_channel_mask_t) ((representation << AUDIO_CHANNEL_COUNT_MAX) | bits); in audio_channel_mask_from_representation_and_bits()
1397 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_is_input_channel() local
1400 if (bits & ~AUDIO_CHANNEL_IN_ALL) { in audio_is_input_channel()
1401 bits = 0; in audio_is_input_channel()
1405 return bits != 0; in audio_is_input_channel()
1419 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_is_output_channel() local
[all …]
/system/core/toolbox/
Dgetevent.c65 uint8_t bits[INPUT_PROP_CNT / 8]; in print_input_props() local
72 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); in print_input_props()
80 if (bits[i] & 1 << j) { in print_input_props()
97 uint8_t *bits = NULL; in print_possible_events() local
109 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events()
113 bits = realloc(bits, bits_size * 2); in print_possible_events()
114 if(bits == NULL) in print_possible_events()
120 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events()
137 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events()
142 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events()
[all …]
/system/media/alsa_utils/
Dalsa_format.c88 int num_slots = ARRAY_SIZE(mask->bits); in get_pcm_format_for_mask()
89 int bits_per_slot = sizeof(mask->bits[0]) * 8; in get_pcm_format_for_mask()
99 if (table_index >= 2 && (mask->bits[slot_index] & bit_mask) != 0) { in get_pcm_format_for_mask()
Dalsa_logging.c33 const size_t num_slots = ARRAY_SIZE(mask->bits); in log_pcm_mask()
34 const size_t bits_per_slot = (sizeof(mask->bits[0]) * 8); in log_pcm_mask()
47 strcat(buff, (mask->bits[slot_index] & bit_mask) != 0 ? "1" : "0"); in log_pcm_mask()
/system/teeui/libteeui/include/teeui/
Dlog.h27 #define TEEUI_LOG ::teeui::bits::silencer
32 namespace bits {
/system/memory/libmeminfo/
Dmeminfo_private.h27 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument
/system/unwinding/libunwindstack/
DArmExidx.cpp262 uint8_t bits = byte & 0xf; in DecodePrefix_10_01() local
263 if (bits == 13 || bits == 15) { in DecodePrefix_10_01()
275 log(log_indent_, "vsp = r%d", bits); in DecodePrefix_10_01()
277 log_regs_[LOG_CFA_REG] = bits; in DecodePrefix_10_01()
286 cfa_ = (*regs_)[bits]; in DecodePrefix_10_01()
569 uint8_t bits = byte & 0x7; in DecodePrefix_11_000() local
570 if (bits == 6) { in DecodePrefix_11_000()
595 } else if (bits == 7) { in DecodePrefix_11_000()
668 uint8_t bits = byte & 0x7; in DecodePrefix_11_001() local
669 if (bits == 0) { in DecodePrefix_11_001()
[all …]
/system/bt/stack/a2dp/
Da2dp_sbc_up_sample.cc36 uint8_t bits; /* number of bits per pcm sample */ member
59 void a2dp_sbc_init_up_sample(uint32_t src_sps, uint32_t dst_sps, uint8_t bits, in a2dp_sbc_init_up_sample() argument
64 a2dp_sbc_ups_cb.bits = bits; in a2dp_sbc_init_up_sample()
69 if (bits == 8) { in a2dp_sbc_init_up_sample()
78 if (bits == 8) { in a2dp_sbc_init_up_sample()
/system/chre/platform/shared/include/chre/platform/shared/
Dloader_util.h38 #define _ELFW(bits, type) __ELFW(bits, type) argument
39 #define __ELFW(bits, type) ELF##bits##_##type argument
/system/extras/tests/framebuffer/
Dfb_test.c55 void *bits; in get_framebuffer() local
88 bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in get_framebuffer()
89 if(bits == MAP_FAILED) { in get_framebuffer()
99 fb->data = bits; in get_framebuffer()
107 fb->data = (void *)((unsigned long)bits + in get_framebuffer()

123