Home
last modified time | relevance | path

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

/frameworks/av/media/libeffects/visualizer/aidl/
DVisualizerContext.cpp253 float fscale; // multiplicative scale in process() local
268 fscale = 0.99f / maxSample; in process()
270 const float significand = frexp(fscale, &exp); in process()
272 fscale *= 255.f / 256.f; // avoid returning unaltered PCM signal in process()
276 fscale = 1.f; in process()
281 fscale = 1.f / mChannelCount; // account for summing all the channels together. in process()
296 mCaptureBuf[captIdx] = clamp8_from_float(smp * fscale); in process()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp369 float fscale; // multiplicative scale in Visualizer_process() local
390 fscale = 0.99f / maxSample; in Visualizer_process()
392 const float significand = frexp(fscale, &exp); in Visualizer_process()
394 fscale *= 255.f / 256.f; // avoid returning unaltered PCM signal in Visualizer_process()
398 fscale = 1.f; in Visualizer_process()
423 fscale = 1.f / pContext->mChannelCount; // account for summing all the channels together. in Visualizer_process()
442 buf[captIdx] = clamp8_from_float(smp * fscale); in Visualizer_process()