Home
last modified time | relevance | path

Searched refs:amplitude (Results 1 – 2 of 2) sorted by relevance

/system/media/audio_utils/
Dpower.cpp125 const float amplitude = convertToFloatAndIncrement<FORMAT>(&amplitudes); in energyMonoRef() local
126 accum += amplitude * amplitude; in energyMonoRef()
162 const float amplitude = ((float *)amplitudes)[i]; in energyMono() local
163 value += amplitude * amplitude; in energyMono()
181 int32x4_t amplitude = vmovl_s16(*samplitudes); in energyMono() local
184 float32x4_t famplitude = vcvtq_f32_s32(amplitude); in energyMono()
195 const float amplitude = (float)((int16_t *)amplitudes)[i]; in energyMono() local
196 value += amplitude * amplitude; in energyMono()
227 const float amplitude = (float)((int32_t *)amplitudes)[i]; in energyMono() local
228 value += amplitude * amplitude; in energyMono()
[all …]
/system/media/audio_utils/include/audio_utils/
Dpower.h80 static inline float audio_utils_power_from_amplitude(float amplitude) in audio_utils_power_from_amplitude() argument
82 return 20.f * log10f(fabsf(amplitude)); in audio_utils_power_from_amplitude()