Home
last modified time | relevance | path

Searched refs:smp (Results 1 – 3 of 3) sorted by relevance

/hardware/knowles/athletico/sound_trigger_hal/tests/
Dconversion_routines.c51 double smp; in kst_float_to_q15_vector() local
57 kst_aft_to_dbl(&smp, &(pSrcT[idx])); in kst_float_to_q15_vector()
58 smp = smp * 32768.0; in kst_float_to_q15_vector()
59 pDstT[idx] = ((smp < 32767.0) ? ((smp > -32768.0) ? ((int16_t)smp) : -32768) : 32767); in kst_float_to_q15_vector()
/hardware/knowles/athletico/sound_trigger_hal/
Dadnc_strm.c124 double smp; in kst_float_to_q15_vector() local
129 kst_aft_to_dbl(&smp, &(pSrcT[idx])); in kst_float_to_q15_vector()
130 smp = smp * 32768.0; in kst_float_to_q15_vector()
131 pDstT[idx] = ((smp < 32767.0) ? in kst_float_to_q15_vector()
132 ((smp > -32768.0) ? in kst_float_to_q15_vector()
133 ((int16_t)smp) : -32768) : 32767); in kst_float_to_q15_vector()
/hardware/qcom/audio/visualizer/
Doffload_visualizer.c768 int32_t smp = inBuffer->s16[i]; in visualizer_process() local
769 if (smp < 0) smp = -smp - 1; /* take care to keep the max negative in range */ in visualizer_process()
770 int32_t clz = __builtin_clz(smp); in visualizer_process()
798 int32_t smp = inBuffer->s16[2 * in_idx] + inBuffer->s16[2 * in_idx + 1]; in visualizer_process() local
799 smp = smp >> shift; in visualizer_process()
800 buf[capt_idx] = ((uint8_t)smp)^0x80; in visualizer_process()