Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 52) 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.c193 uint32_t bits_by4 = common->bits.uint32[i]; in OI_SBC_ReadSamples()
197 OI_UINT bits; in OI_SBC_ReadSamples() local
201 bits = bits_by4 & 0xFF; in OI_SBC_ReadSamples()
206 bits = (bits_by4 >> 24) & 0xFF; in OI_SBC_ReadSamples()
211 if (bits) { in OI_SBC_ReadSamples()
213 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); in OI_SBC_ReadSamples()
214 dequant = OI_SBC_Dequant(raw, sf, bits); in OI_SBC_ReadSamples()
Dbitstream-decode.c48 PRIVATE uint32_t OI_BITSTREAM_ReadUINT(OI_BITSTREAM* bs, OI_UINT bits) { in OI_BITSTREAM_ReadUINT() argument
51 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT()
Dsynthesis-dct8.c84 #define FIX(x, bits) \ in float_dct2_8() argument
85 (((int)floor(0.5f + ((x) * ((float)(1 << bits))))) / ((float)(1 << bits))) in float_dct2_8()
/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); \
85 (result) >>= 32 - (bits); \
87 (bitPtr) += (bits); \
92 OI_ASSERT(((bits) == 0) || ((result) < (1u << (bits)))); \
95 #define OI_BITSTREAM_WRITEUINT(ptr, value, bitPtr, datum, bits) \ argument
97 (bitPtr) -= (bits); \
Doi_codec_sbc_private.h147 INLINE OI_INT allocAdjustedBits(uint8_t* dest, OI_INT bits, OI_INT excess);
217 INLINE int32_t OI_SBC_Dequant(uint32_t raw, OI_UINT scale_factor, OI_UINT bits);
/system/media/audio/include/system/
Daudio.h168 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_channel_mask_is_valid() local
175 bits = 0; in audio_channel_mask_is_valid()
178 return bits != 0; in audio_channel_mask_is_valid()
183 audio_channel_representation_t representation, uint32_t bits) in audio_channel_mask_from_representation_and_bits() argument
185 return (audio_channel_mask_t) ((representation << AUDIO_CHANNEL_COUNT_MAX) | bits); in audio_channel_mask_from_representation_and_bits()
661 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_is_input_channel() local
664 if (bits & ~AUDIO_CHANNEL_IN_ALL) { in audio_is_input_channel()
665 bits = 0; in audio_is_input_channel()
669 return bits != 0; in audio_is_input_channel()
683 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_is_output_channel() local
[all …]
/system/tools/hidl/test/
Drun_all_device_tests.sh31 for bits in ${BITNESS[@]}; do
32 echo $bits $test
33 adb shell /data/$bits/$test/$test ||
34 FAILED_TESTS+=("$bits:$test")
Drun_all_host_tests.sh24 for bits in ${BITNESS[@]}; do
26 echo $bits $test
27 $ANDROID_BUILD_TOP/out/host/linux-x86/$bits/$test/$test ||
28 FAILED_TESTS+=("$bits:$test")
/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/core/libunwindstack/
DArmExidx.cpp245 uint8_t bits = byte & 0xf; in DecodePrefix_10_01() local
246 if (bits == 13 || bits == 15) { in DecodePrefix_10_01()
257 log(log_indent_, "vsp = r%d", bits); in DecodePrefix_10_01()
264 cfa_ = (*regs_)[bits]; in DecodePrefix_10_01()
485 uint8_t bits = byte & 0x7; in DecodePrefix_11_000() local
486 if (bits == 6) { in DecodePrefix_11_000()
506 } else if (bits == 7) { in DecodePrefix_11_000()
566 uint8_t bits = byte & 0x7; in DecodePrefix_11_001() local
567 if (bits == 0) { in DecodePrefix_11_001()
587 } else if (bits == 1) { in DecodePrefix_11_001()
/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/extras/simpleperf/
Devent_attr.cpp30 static std::string BitsToString(const std::string& name, uint64_t bits, in BitsToString() argument
34 if (bits & p.first) { in BitsToString()
35 bits &= ~p.first; in BitsToString()
42 if (bits != 0) { in BitsToString()
43 LOG(DEBUG) << "unknown " << name << " bits: " << std::hex << bits; in BitsToString()
/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()
/system/core/libbacktrace/
DGetPss.cpp27 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument
/system/tpm/trunks/ftdi/
Dmpsse.c652 int WriteBits(struct mpsse_context* mpsse, char bits, size_t size) { in WriteBits() argument
663 if (bits & (1 << i)) { in WriteBits()
817 char bits = 0; in ReadBits() local
831 bits = rdata[size - 1]; in ReadBits()
838 bits = bits << (8 - size); in ReadBits()
845 bits = bits >> (8 - size); in ReadBits()
851 return bits; in ReadBits()
/system/core/libpixelflinger/codeflinger/
Dload_store.cpp33 const int bits = addr.size; in store() local
35 switch (bits) { in store()
70 const int bits = addr.size; in load() local
72 switch (bits) { in load()
109 void GGLAssembler::extract(integer_t& d, int s, int h, int l, int bits) in extract() argument
120 if (h != bits) { in extract()
/system/bt/stack/include/
Da2dp_sbc_up_sample.h44 void a2dp_sbc_init_up_sample(uint32_t src_sps, uint32_t dst_sps, uint8_t bits,
/system/extras/libpagemap/include/pagemap/
Dpagemap.h163 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument
/system/core/libpixelflinger/include/pixelflinger/
Dformat.h101 inline uint32_t bits(int i) const { in bits() function

123