/system/bt/embdrv/sbc/encoder/srce/ |
D | sbc_dct_coeffs.c | 29 const int16_t gas16AnalDCTcoeff4[] = { 30 (int16_t)(0.7071 * 32768), (int16_t)(0.9239 * 32768), 31 (int16_t)(1.0000 * 32767), (int16_t)(0.9239 * 32768), 32 (int16_t)(0.7071 * 32768), (int16_t)(0.3827 * 32768), 33 (int16_t)(0.0000 * 32768), (int16_t)(-0.3827 * 32768), 35 (int16_t)(-0.7071 * 32768), (int16_t)(0.3827 * 32768), 36 (int16_t)(1.0000 * 32767), (int16_t)(0.3827 * 32768), 37 (int16_t)(-0.7071 * 32768), (int16_t)(-0.9239 * 32768), 38 (int16_t)(-0.0000 * 32768), (int16_t)(0.9239 * 32768), 40 (int16_t)(-0.7071 * 32768), (int16_t)(-0.3827 * 32768), [all …]
|
D | sbc_enc_coeffs.c | 30 const int16_t gas32CoeffFor4SBs[] = { 31 (int16_t)((int32_t)0x00000000 >> 16), (int16_t)0x00000000, 32 (int16_t)((int32_t)0x001194E6 >> 16), (int16_t)0x001194E6, 33 (int16_t)((int32_t)0x0030E2D3 >> 16), (int16_t)0x0030E2D3, 34 (int16_t)((int32_t)0x00599403 >> 16), (int16_t)0x00599403, 35 (int16_t)((int32_t)0x007DBCC8 >> 16), (int16_t)0x007DBCC8, 36 (int16_t)((int32_t)0x007F88E4 >> 16), (int16_t)0x007F88E4, 37 (int16_t)((int32_t)0x003D239B >> 16), (int16_t)0x003D239B, 38 (int16_t)((int32_t)0xFF9BB9D5 >> 16), (int16_t)0xFF9BB9D5, 40 (int16_t)((int32_t)0x01659F45 >> 16), (int16_t)0x01659F45, [all …]
|
D | sbc_enc_bit_alloc_ste.c | 31 extern const int16_t sbc_enc_as16Offset4[4][4]; 32 extern const int16_t sbc_enc_as16Offset8[4][8]; 51 int16_t* ps16BitNeed; /*temp memory to store required number of bits*/ in sbc_enc_bit_alloc_ste() 53 int16_t *ps16GenBufPtr, *pas16ScaleFactor; in sbc_enc_bit_alloc_ste() 54 int16_t* ps16GenArrPtr; in sbc_enc_bit_alloc_ste() 55 int16_t* ps16GenTabPtr; in sbc_enc_bit_alloc_ste() 71 (int16_t*)sbc_enc_as16Offset4[pstrCodecParams->s16SamplingFreq]; in sbc_enc_bit_alloc_ste() 74 (int16_t*)sbc_enc_as16Offset8[pstrCodecParams->s16SamplingFreq]; in sbc_enc_bit_alloc_ste() 84 *ps16GenBufPtr = (int16_t)(s32Loudness >> 1); in sbc_enc_bit_alloc_ste() 86 *ps16GenBufPtr = (int16_t)s32Loudness; in sbc_enc_bit_alloc_ste() [all …]
|
D | sbc_enc_bit_alloc_mono.c | 31 const int16_t sbc_enc_as16Offset4[4][4] = { 33 const int16_t sbc_enc_as16Offset8[4][8] = {{-2, 0, 0, 0, 0, 0, 0, 1}, 52 int16_t* ps16BitNeed; /*temp memory to store required number of bits*/ in sbc_enc_bit_alloc_mono() 54 int16_t* ps16GenBufPtr; in sbc_enc_bit_alloc_mono() 55 int16_t* ps16GenArrPtr; in sbc_enc_bit_alloc_mono() 56 int16_t* ps16GenTabPtr; in sbc_enc_bit_alloc_mono() 73 (int16_t*)sbc_enc_as16Offset4[pstrCodecParams->s16SamplingFreq]; in sbc_enc_bit_alloc_mono() 76 (int16_t*)sbc_enc_as16Offset8[pstrCodecParams->s16SamplingFreq]; in sbc_enc_bit_alloc_mono() 88 *(ps16GenBufPtr) = (int16_t)(s32Loudness >> 1); in sbc_enc_bit_alloc_mono() 90 *(ps16GenBufPtr) = (int16_t)s32Loudness; in sbc_enc_bit_alloc_mono() [all …]
|
D | sbc_encoder.c | 30 int16_t EncMaxShiftCounter; 37 uint32_t SBC_Encode(SBC_ENC_PARAMS* pstrEncParams, int16_t* input, in SBC_Encode() 44 int16_t* ps16ScfL; in SBC_Encode() 78 *ps16ScfL++ = (int16_t)u32Count; in SBC_Encode() 114 (int16_t)(u32CountSum + u32CountDiff)) { in SBC_Encode() 119 *ps16ScfL = (int16_t)u32CountSum; in SBC_Encode() 120 *(ps16ScfL + s32NumOfSubBands) = (int16_t)u32CountDiff; in SBC_Encode() 145 pstrEncParams->s16MaxBitNeed = (int16_t)maxBit; in SBC_Encode() 165 int16_t s16Bitpool; /*to store bit pool value*/ in SBC_Encoder_Init() 166 int16_t s16BitRate; /*to store bitrate*/ in SBC_Encoder_Init() [all …]
|
D | sbc_analysis.c | 116 (int16_t)0x0166 /* gas32CoeffFor4SBs[8] = -gas32CoeffFor4SBs[32] = \ 119 (int16_t)0x115B /* gas32CoeffFor4SBs[16] = -gas32CoeffFor4SBs[24] = \ 122 (int16_t)0x0012 /* gas32CoeffFor4SBs[1 et 39] = 0x001194E6 */ 124 (int16_t)0x029E /* gas32CoeffFor4SBs[9 et 31] = 0x029DBAA3 */ 126 (int16_t)0x18F5 /* gas32CoeffFor4SBs[17 et 23] = 0x18F55C90 */ 128 (int16_t)0xF610 /* gas32CoeffFor4SBs[15 et 25] = 0xF60FAF37 */ 130 (int16_t)0xFF9C /* gas32CoeffFor4SBs[7 et 33] = 0xFF9BB9D5 */ 132 (int16_t)0x0031 /* gas32CoeffFor4SBs[2 et 38] = 0x0030E2D3 */ 134 (int16_t)0x03B2 /* gas32CoeffFor4SBs[10 et 30] = 0x03B23341 */ 136 (int16_t)0x1F91 /* gas32CoeffFor4SBs[18 et 22] = 0x1F91CA46 */ [all …]
|
/system/bt/embdrv/sbc/encoder/include/ |
D | sbc_encoder.h | 163 int16_t s16SamplingFreq; /* 16k, 32k, 44.1k or 48k*/ 164 int16_t s16ChannelMode; /* mono, dual, streo or joint streo*/ 165 int16_t s16NumOfSubBands; /* 4 or 8 */ 166 int16_t s16NumOfChannels; 167 int16_t s16NumOfBlocks; /* 4, 8, 12 or 16*/ 168 int16_t s16AllocationMethod; /* loudness or SNR*/ 169 int16_t s16BitPool; /* 16*numOfSb for mono & dual; 173 int16_t as16Join[SBC_MAX_NUM_OF_SUBBANDS]; /*1 if JS, 0 otherwise*/ 176 int16_t s16MaxBitNeed; 177 int16_t as16ScaleFactor[SBC_MAX_NUM_OF_CHANNELS * SBC_MAX_NUM_OF_SUBBANDS]; [all …]
|
D | sbc_enc_func_declare.h | 31 extern const int16_t gas32CoeffFor4SBs[]; 32 extern const int16_t gas32CoeffFor8SBs[]; 45 extern void SbcAnalysisFilter4(SBC_ENC_PARAMS* strEncParams, int16_t* input); 46 extern void SbcAnalysisFilter8(SBC_ENC_PARAMS* strEncParams, int16_t* input);
|
/system/media/audio/include/system/audio_effects/ |
D | effect_environmentalreverb.h | 52 int16_t roomLevel; 53 int16_t roomHFLevel; 55 int16_t decayHFRatio; 56 int16_t reflectionsLevel; 58 int16_t reverbLevel; 60 int16_t diffusion; 61 int16_t density;
|
/system/media/audio_utils/include/audio_utils/ |
D | primitives.h | 68 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count); 80 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 93 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count); 158 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count); 173 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count); 202 void memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count); 245 void memcpy_to_i16_from_p24(int16_t *dst, const uint8_t *src, size_t count); 274 void memcpy_to_p24_from_i16(uint8_t *dst, const int16_t *src, size_t count); 331 void memcpy_to_q8_23_from_i16(int32_t *dst, const int16_t *src, size_t count); 387 void memcpy_to_i16_from_q8_23(int16_t *dst, const int32_t *src, size_t count); [all …]
|
D | resampler.h | 72 int16_t *out, 80 int16_t *in, 82 int16_t *out,
|
/system/bt/stack/a2dp/ |
D | a2dp_sbc_up_sample.cc | 38 int16_t worker1; 39 int16_t worker2; 150 int16_t* p_src_tmp = (int16_t*)p_src; in a2dp_sbc_up_sample_16s() 151 int16_t* p_dst_tmp = (int16_t*)p_dst; in a2dp_sbc_up_sample_16s() 152 int16_t* p_worker1 = &a2dp_sbc_ups_cb.worker1; in a2dp_sbc_up_sample_16s() 153 int16_t* p_worker2 = &a2dp_sbc_ups_cb.worker2; in a2dp_sbc_up_sample_16s() 209 int16_t* p_src_tmp = (int16_t*)p_src; in a2dp_sbc_up_sample_16m() 210 int16_t* p_dst_tmp = (int16_t*)p_dst; in a2dp_sbc_up_sample_16m() 211 int16_t* p_worker = &a2dp_sbc_ups_cb.worker1; in a2dp_sbc_up_sample_16m() 270 int16_t* p_dst_tmp = (int16_t*)p_dst; in a2dp_sbc_up_sample_8s() [all …]
|
/system/bt/embdrv/g722/ |
D | g722_encode.cc | 46 static __inline int16_t saturate(int32_t amp) in saturate() 48 int16_t amp16; in saturate() 51 amp16 = (int16_t) amp; in saturate() 59 static __inline int16_t saturate(int32_t val) in saturate() 67 return (int16_t)res; in saturate() 202 int16_t limitValues (int16_t rl) in limitValues() 205 int16_t yl; in limitValues() 214 static int16_t q6[32] = 221 static int16_t iln[32] = 228 static int16_t ilp[32] = [all …]
|
D | g722_decode.cc | 45 static __inline int16_t __ssat16(int32_t amp) in __ssat16() 47 int16_t amp16; in __ssat16() 50 amp16 = (int16_t) amp; in __ssat16() 59 static __inline int16_t __ssat16( int32_t val) in __ssat16() 67 return (int16_t)res; in __ssat16() 202 static int16_t wl[8] = {-60, -30, 58, 172, 334, 538, 1198, 3042 }; 203 static int16_t rl42[16] = {0, 7, 6, 5, 4, 3, 2, 1, 7, 6, 5, 4, 3, 2, 1, 0 }; 204 static int16_t ilb[32] = 213 static int16_t wh[3] = {0, -214, 798}; 214 static int16_t rh2[4] = {2, 1, 2, 1}; [all …]
|
D | g722_enc_dec.h | 63 #define NLDECOMPRESS_PREPROCESS_SAMPLE_WITH_GAIN(s,g) ((int16_t)NLDECOMPRESS_APPLY_GAIN((s),(g))) 66 #define NLDECOMPRESS_PREPROCESS_SAMPLE_WITH_GAIN(s,g) ((int16_t)(NLDECOMPRESS_APPLY_GAIN((s),(g)))) 138 int g722_encode(g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[], int len); 142 uint32_t g722_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len, uin…
|
/system/media/audio_utils/ |
D | format.c | 46 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count); in memcpy_by_audio_format() 49 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format() 52 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format() 55 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format() 58 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format() 67 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count); in memcpy_by_audio_format() 88 memcpy_to_u8_from_i16((uint8_t*)dst, (int16_t*)src, count); in memcpy_by_audio_format() 110 memcpy_to_p24_from_i16((uint8_t*)dst, (int16_t*)src, count); in memcpy_by_audio_format() 128 memcpy_to_i32_from_i16((int32_t*)dst, (int16_t*)src, count); in memcpy_by_audio_format() 143 memcpy_to_q8_23_from_i16((int32_t*)dst, (int16_t*)src, count); in memcpy_by_audio_format()
|
D | primitives.c | 30 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_q4_27() 37 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() 42 *--dst = (int16_t)(*--src - 0x80) << 8; in memcpy_to_i16_from_u8() 46 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_u8_from_i16() 86 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_i32() 93 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) in memcpy_to_i16_from_float() 107 void memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count) in memcpy_to_float_from_i16() 135 void memcpy_to_i16_from_p24(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_p24() 161 void memcpy_to_p24_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_p24_from_i16() 167 const int16_t sample = *--src; in memcpy_to_p24_from_i16() [all …]
|
D | mono_blend.cpp | 32 int16_t *out = (int16_t *)buf; in mono_blend() 34 const int16_t *in = out; in mono_blend()
|
D | resampler.c | 36 int16_t *in_buf; // input buffer 75 int16_t *out, in resampler_resample_from_provider() 105 rsmp->in_buf = (int16_t *)realloc(rsmp->in_buf, in resampler_resample_from_provider() 106 rsmp->in_buf_size * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider() 116 buf.frame_count * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider() 146 rsmp->frames_in * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider() 154 int16_t *in, in resampler_resample_from_input() 156 int16_t *out, in resampler_resample_from_input()
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | synthesis-sbc.c | 227 INLINE int32_t default_mul_16s_32s_hi(int16_t u, int32_t v) { in default_mul_16s_32s_hi() 229 int16_t v1; in default_mul_16s_32s_hi() 234 v1 = (int16_t)(v >> 16); in default_mul_16s_32s_hi() 246 PRIVATE void SynthWindow80_generated(int16_t* pcm, 249 PRIVATE void SynthWindow112_generated(int16_t* pcm, 254 typedef void (*SYNTH_FRAME)(OI_CODEC_SBC_DECODER_CONTEXT* context, int16_t* pcm, 277 int16_t* pcm, OI_UINT blkstart, in OI_SBC_SynthFrame_80() 316 int16_t* pcm, OI_UINT blkstart, in OI_SBC_SynthFrame_4SB() 356 int16_t* pcm, OI_UINT blkstart, in OI_SBC_SynthFrame_Enhanced() 414 int16_t* pcm, OI_UINT start_block, in OI_SBC_SynthFrame() [all …]
|
D | synthesis-8-generated.c | 50 PRIVATE void SynthWindow80_generated(int16_t* pcm, in SynthWindow80_generated() 66 pcm[0 << strideShift] = (int16_t)pcm_b; in SynthWindow80_generated() 91 pcm[1 << strideShift] = (int16_t)pcm_a; in SynthWindow80_generated() 94 pcm[7 << strideShift] = (int16_t)pcm_b; in SynthWindow80_generated() 119 pcm[2 << strideShift] = (int16_t)pcm_a; in SynthWindow80_generated() 122 pcm[6 << strideShift] = (int16_t)pcm_b; in SynthWindow80_generated() 147 pcm[3 << strideShift] = (int16_t)pcm_a; in SynthWindow80_generated() 150 pcm[5 << strideShift] = (int16_t)pcm_b; in SynthWindow80_generated() 159 pcm[4 << strideShift] = (int16_t)pcm_a; in SynthWindow80_generated()
|
/system/media/audio_utils/tests/ |
D | primitives_tests.cpp | 66 int16_t ival = clamp16_from_float(f / (1 << 15)); in testClamp16() 193 std::vector<int16_t> i16ref(size); in TEST() 194 std::vector<int16_t> i16ary(size); in TEST() 378 EXPECT_EQ((size_t)0, nonZeroMono16((int16_t*)u16ary, 65530)); in TEST() 386 EXPECT_EQ((size_t)0, nonZeroMono16((int16_t*)u16ary, 65530)); in TEST() 402 EXPECT_EQ((size_t)(65536 * 3 / 4 - 1), nonZeroMono16((int16_t*)u16ary, 65536)); in TEST() 448 memcpy_to_p24_from_i16((uint8_t*)u24ref, (int16_t*)u16ref, 65536); in TEST() 456 memcpy_to_i16_from_p24((int16_t*)u16ary, (uint8_t*)u24ary, 65536); in TEST() 457 EXPECT_EQ((size_t)0, nonZeroMono16((int16_t*)u16ary, 65530)); in TEST() 465 memcpy_to_i16_from_p24((int16_t*)u16ary, (uint8_t*)u24ary, 65536); in TEST() [all …]
|
D | powerlog_tests.cpp | 42 const int16_t zero = 0; in TEST() 43 const int16_t half = 0x4000; in TEST() 89 const int16_t zero = 0; in TEST() 90 const int16_t quarter = 0x2000; in TEST()
|
D | fifo_tests.cpp | 98 size_t frameSize = sizeof(int16_t) * sfinfoin.channels; in main() 99 int16_t *inputBuffer = new int16_t[sfinfoin.frames * sfinfoin.channels]; in main() 108 int16_t *outputBuffer = new int16_t[sfinfoin.frames * sfinfoin.channels]; in main() 111 int16_t *fifoBuffer = new int16_t[frameCount * sfinfoin.channels]; in main()
|
/system/bt/embdrv/sbc/decoder/ |
D | sbcdecoder_fuzzer.c | 36 static int16_t 51 int16_t* pcmDataPointer = in LLVMFuzzerTestOneInput() 57 (uint32_t*)&len, (int16_t*)pcmDataPointer, in LLVMFuzzerTestOneInput()
|