Home
last modified time | relevance | path

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

/system/media/audio_utils/
Dmono_blend.cpp35 int accum = 0; in mono_blend() local
37 accum += *in++; in mono_blend()
39 accum /= channelCount; // round to 0 in mono_blend()
41 *out++ = accum; in mono_blend()
50 float accum = 0; in mono_blend() local
52 accum += *in++; in mono_blend()
55 accum = limiter(accum * M_SQRT1_2); in mono_blend()
57 accum *= recipdiv; in mono_blend()
60 *out++ = accum; in mono_blend()
Dpower.cpp124 float accum(0.f); in energyMonoRef() local
127 accum += amplitude * amplitude; in energyMonoRef()
129 return accum; in energyMonoRef()
185 float32x4_t accum = vdupq_n_f32(0); in energyMonoVector() local
191 accum = vmlaq_f32(accum, famplitude, famplitude); in energyMonoVector()
195 float32x2_t accum2 = vadd_f32(vget_low_f32(accum), vget_high_f32(accum)); // get stereo volume in energyMonoVector()