/system/bt/embdrv/sbc/decoder/srce/ |
H A D | bitstream-decode.c | 48 PRIVATE uint32_t OI_BITSTREAM_ReadUINT(OI_BITSTREAM* bs, OI_UINT bits) { argument 51 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr);
|
H A D | dequant.c | 44 dequant = 2^(scale_factor+1) * ((raw * 2.0 + 1.0) / ((2^bits) - 1) - 1) 46 2 <= bits <= 16 47 0 <= raw < (2^bits)-1 (the -1 is because quantized values with all 1's are 55 dequant_long_scaled table for 16 bits is as accurate as possible, since it has 63 dequant_long_long[bits] = round(2^31 * 1/((2^bits - 1) / 1.38...) for 2 <= 64 bits <= 16 71 dequant_long_scaled[bits] <= 2^31 / ((2^bits - 1)) for 2 <= bits < 133 dequant_float(uint32_t raw, OI_UINT scale_factor, OI_UINT bits) argument 151 OI_SBC_Dequant(uint32_t raw, OI_UINT scale_factor, OI_UINT bits) argument 190 OI_SBC_Dequant_Unscaled(uint32_t raw, OI_UINT scale_factor, OI_UINT bits) argument [all...] |
H A D | bitalloc-sbc.c | 73 excess = allocAdjustedBits(&common->bits.uint8[sbL], 76 excess = allocAdjustedBits(&common->bits.uint8[sbR], 83 excess = allocExcessBits(&common->bits.uint8[sbL], excess); 88 excess = allocExcessBits(&common->bits.uint8[sbR], excess); 134 uint16_t bits; local 148 bits = 8 * (frameLen - SBC_HEADER_LEN) - hdr; 149 return DIVIDE(bits, nrof_blocks);
|
H A D | decoder-private.c | 193 uint32_t bits_by4 = common->bits.uint32[i]; 197 OI_UINT bits; local 201 bits = bits_by4 & 0xFF; 206 bits = (bits_by4 >> 24) & 0xFF; 211 if (bits) { 213 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); 214 dequant = OI_SBC_Dequant(raw, sf, bits);
|
H A D | bitalloc.c | 28 The functions in this file relate to the allocation of available bits to 108 * bitpool may be larger than the bits actually required but the only input we 109 * have are the scale factors. For example, it takes 2 bits to represent values 112 * preferred bitpool. This is not ideal because 0 requires 0 bits but we 119 * @param preferredBitpool Returns the number of reserved bits 143 OI_INT bits = scale_factor[sb]; local 144 if (bits > maxBits) { 145 maxBits = bits; 147 bitneeds[sb] = bits; 149 bitcount += bits; 161 OI_INT bits = scale_factor[sb]; local 300 allocAdjustedBits(uint8_t* dest, OI_INT bits, OI_INT excess) argument [all...] |
/system/bt/stack/a2dp/ |
H A D | a2dp_sbc_up_sample.cc | 36 uint8_t bits; /* number of bits per pcm sample */ member in struct:__anon803 53 * bits: number of bits per pcm sample 59 void a2dp_sbc_init_up_sample(uint32_t src_sps, uint32_t dst_sps, uint8_t bits, argument 64 a2dp_sbc_ups_cb.bits = bits; 69 if (bits == 8) { 78 if (bits == 8) { 131 * Function a2dp_sbc_up_sample_16s (16bits [all...] |
/system/core/libpixelflinger/codeflinger/ |
H A D | load_store.cpp | 33 const int bits = addr.size; local 35 switch (bits) { 41 // 24 bits formats are a little special and used only for RGB 70 const int bits = addr.size; local 72 switch (bits) { 78 // 24 bits formats are a little special and used only for RGB 109 void GGLAssembler::extract(integer_t& d, int s, int h, int l, int bits) argument 120 if (h != bits) { 267 // we need to mask the high bits (and possibly the lowbits too) 284 // in the dithering case though, we need to preserve the lower bits [all...] |
H A D | texturing.cpp | 141 const int bits = parts.iterated.size(); local 142 const uint32_t size = ((bits>=32) ? 0 : (1LU << bits)) - 1; 171 mask, bits); 280 tmu.bits = tmu.format.size*8; 349 txPtr.setTo(obtainReg(), tmu.bits); 486 // for 8-bits textures, we can afford 487 // 7 bits of fractional precision at no 488 // additional cost (we can't do 8 bits 489 // because filter8 uses signed 16 bits mul [all...] |
H A D | GGLAssembler.cpp | 505 // expand the source if the destination has more bits 541 // expand the source if the destination has more bits 569 // We keep only 8 bits for the blending stage 885 void GGLAssembler::build_and_immediate(int d, int s, uint32_t mask, int bits) argument 888 uint32_t size = ((bits>=32) ? 0 : (1LU << bits)) - 1;
|
H A D | GGLAssembler.h | 324 int bits; member in struct:android::GGLAssembler::texture_unit_t 393 void extract(integer_t& d, int s, int h, int l, int bits=32); 523 void build_and_immediate(int d, int s, uint32_t mask, int bits);
|
/system/core/libunwindstack/ |
H A D | ArmExidx.cpp | 52 // Each entry is a 32 bit prel31 offset followed by 32 bits 240 uint8_t bits = byte & 0xf; local 241 if (bits == 13 || bits == 15) { 252 log(log_indent_, "vsp = r%d", bits); 257 // It is impossible for bits to be larger than the total number of 258 // arm registers, so don't bother checking if bits is a valid register. 259 cfa_ = (*regs_)[bits]; 477 uint8_t bits = byte & 0x7; local 478 if (bits 558 uint8_t bits = byte & 0x7; local [all...] |
/system/extras/simpleperf/ |
H A D | event_attr.cpp | 30 static std::string BitsToString(const std::string& name, uint64_t bits, argument 34 if (bits & p.first) { 35 bits &= ~p.first; 42 if (bits != 0) { 43 LOG(DEBUG) << "unknown " << name << " bits: " << std::hex << bits; local
|
/system/bt/bta/dm/ |
H A D | bta_dm_sco.cc | 22 * 16k/32k/48k/44.1k/22050/11025 sampling rate into 8K/16bits samples 68 uint32_t bits; /* number of bits per pcm sample */ member in struct:__anon132 563 * bits: number of bits per pcm sample (16) 569 void BTA_DmPcmInitSamples(uint32_t src_sps, uint32_t bits, argument 575 p_cb->bits = bits; 590 APPL_TRACE_DEBUG("bta_dm_pcm_init_samples: n_channels = %d bits = %d", 591 n_channels, bits); [all...] |
/system/core/libpixelflinger/ |
H A D | buffer.cpp | 36 static uint32_t extract(uint32_t v, int h, int l, int bits); 278 uint32_t extract(uint32_t v, int h, int l, int bits) argument 284 if (h != bits) { 353 // we need to clear the high bits of the source 367 // sbits==dbits and we don't need to clean the lower bits
|
H A D | fixed.cpp | 110 // Compute a full precision square-root (24 bits accuracy) 270 if ((result >> 31) != 0) // result must fit in 31 bits 274 int bits = 31; local 284 } while (bits--);
|
/system/extras/tests/framebuffer/ |
H A D | fb_test.c | 55 void *bits; local 88 bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 89 if(bits == MAP_FAILED) { 99 fb->data = bits; 107 fb->data = (void *)((unsigned long)bits +
|
/system/bt/embdrv/sbc/decoder/include/ |
H A D | oi_codec_sbc.h | 206 } bits; member in struct:__anon695 458 @return the approximate bit rate in bits per second,
|
/system/core/libpixelflinger/include/pixelflinger/ |
H A D | format.h | 101 inline uint32_t bits(int i) const { function in struct:__anon1609
|
/system/tpm/trunks/ftdi/ |
H A D | mpsse.c | 644 * Performs a bit-wise write of up to 8 bits at a time. 647 * @bits - A byte containing the desired bits to write. 648 * @size - The number of bits from the 'bits' byte to write. 652 int WriteBits(struct mpsse_context* mpsse, char bits, size_t size) { argument 661 /* Convert each bit in bits to an array of bytes */ 663 if (bits & (1 << i)) { 809 * Performs a bit-wise read of up to 8 bits. 812 * @size - Number of bits t 817 char bits = 0; local [all...] |
/system/bt/bta/av/ |
H A D | bta_av_main.cc | 652 * because we rely on feature bits being scanned by external 1026 bool bta_av_link_role_ok(tBTA_AV_SCB* p_scb, uint8_t bits) { argument 1031 LOG_INFO(LOG_TAG, "%s hndl:x%x role:%d conn_audio:x%x bits:%d features:x%x", 1032 __func__, p_scb->hndl, role, bta_av_cb.conn_audio, bits, 1035 (A2DP_BitsSet(bta_av_cb.conn_audio) > bits ||
|
/system/core/toolbox/ |
H A D | getevent.c | 65 uint8_t bits[INPUT_PROP_CNT / 8]; local 72 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); 80 if (bits[i] & 1 << j) { 97 uint8_t *bits = NULL; local 109 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); 113 bits = realloc(bits, bits_size * 2); 114 if(bits == NULL) 120 res2 = ioctl(fd, EVIOCGKEY(res), bits [all...] |
/system/keymaster/ |
H A D | ocb.c | 250 /* KtopStr is reg correct by 64 bits, return mem correct */ 301 /* KtopStr is reg correct by 64 bits, return mem correct */ 521 static int AES_set_encrypt_key(const unsigned char* userKey, const int bits, AES_KEY* key) { argument 522 if (bits == 128) { 524 } else if (bits == 192) { 526 } else if (bits == 256) { 530 key->rounds = 6 + bits / 32; 547 static int AES_set_decrypt_key(const unsigned char* userKey, const int bits, AES_KEY* key) { argument 549 AES_set_encrypt_key(userKey, bits, &temp_key); 775 idx = (unsigned)(tmp.u8[15] & 0x3f); /* Get low 6 bits o [all...] |
/system/media/audio/include/system/ |
H A D | audio.h | 133 * The constants AUDIO_CHANNEL_OUT_* or AUDIO_CHANNEL_IN_* apply to the bits portion. 134 * It is not permitted for no bits to be set. 139 * There is no platform interpretation of the various bits. 141 * It is not permitted for no bits to be set. 167 // The right shift should be sufficient, but also "and" for safety in case mask is not 32 bits 181 uint32_t bits = audio_channel_mask_get_bits(channel); local 188 bits = 0; 191 return bits != 0; 196 audio_channel_representation_t representation, uint32_t bits) 198 return (audio_channel_mask_t) ((representation << AUDIO_CHANNEL_COUNT_MAX) | bits); 195 audio_channel_mask_from_representation_and_bits( audio_channel_representation_t representation, uint32_t bits) argument 629 uint32_t bits = audio_channel_mask_get_bits(channel); local 651 uint32_t bits = audio_channel_mask_get_bits(channel); local 673 uint32_t bits = audio_channel_mask_get_bits(channel); local 694 uint32_t bits = audio_channel_mask_get_bits(channel); local 721 uint32_t bits = (1 << channel_count) - 1; local 738 uint32_t bits; local 783 uint32_t bits; local [all...] |
/system/tpm/trunks/ |
H A D | tpm_generated.h | 1567 TPM2B_SENSITIVE_DATA bits; member in union:trunks::TPMU_SENSITIVE_COMPOSITE 5929 const UINT64& bits, 5939 const UINT64& bits, 5946 const UINT64& bits,
|
H A D | tpm_generated.cc | 7287 result = Serialize_TPM2B_SENSITIVE_DATA(value.bits, buffer); 7324 result = Parse_TPM2B_SENSITIVE_DATA(buffer, &value->bits, value_bytes); 31610 SerializeCommand_NV_SetBits( const TPMI_RH_NV_AUTH& auth_handle, const std::string& auth_handle_name, const TPMI_RH_NV_INDEX& nv_index, const std::string& nv_index_name, const UINT64& bits, std::string* serialized_command, AuthorizationDelegate* authorization_delegate) argument 31789 NV_SetBits(const TPMI_RH_NV_AUTH& auth_handle, const std::string& auth_handle_name, const TPMI_RH_NV_INDEX& nv_index, const std::string& nv_index_name, const UINT64& bits, AuthorizationDelegate* authorization_delegate, const NV_SetBitsResponse& callback) argument 31812 NV_SetBitsSync(const TPMI_RH_NV_AUTH& auth_handle, const std::string& auth_handle_name, const TPMI_RH_NV_INDEX& nv_index, const std::string& nv_index_name, const UINT64& bits, AuthorizationDelegate* authorization_delegate) argument [all...] |