Home
last modified time | relevance | path

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

/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp326 uint32_t inIdx; in Visualizer_process() local
329 for (inIdx = 0 ; inIdx < inBuffer->frameCount * pContext->mChannelCount ; inIdx++) { in Visualizer_process()
330 if (inBuffer->s16[inIdx] > maxSample) { in Visualizer_process()
331 maxSample = inBuffer->s16[inIdx]; in Visualizer_process()
332 } else if (-inBuffer->s16[inIdx] > maxSample) { in Visualizer_process()
333 maxSample = -inBuffer->s16[inIdx]; in Visualizer_process()
335 rmsSqAcc += (inBuffer->s16[inIdx] * inBuffer->s16[inIdx]); in Visualizer_process()
376 uint32_t inIdx; in Visualizer_process() local
378 for (inIdx = 0, captIdx = pContext->mCaptureIdx; in Visualizer_process()
379 inIdx < inBuffer->frameCount; in Visualizer_process()
[all …]
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp283 uint16_t inIdx; in LE_process() local
286 for (inIdx = 0 ; inIdx < inBuffer->frameCount ; inIdx++) { in LE_process()
288 leftSample = inputAmp * (float)inBuffer->s16[2*inIdx]; in LE_process()
289 rightSample = inputAmp * (float)inBuffer->s16[2*inIdx +1]; in LE_process()
291 inBuffer->s16[2*inIdx] = (int16_t) leftSample; in LE_process()
292 inBuffer->s16[2*inIdx +1] = (int16_t) rightSample; in LE_process()