Home
last modified time | relevance | path

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

/frameworks/av/media/libeffects/visualizer/aidl/
DVisualizerContext.cpp284 uint32_t captIdx; in process() local
286 for (inIdx = 0, captIdx = mCaptureIdx; inIdx < (unsigned)samples; captIdx++) { in process()
288 if (captIdx >= kMaxCaptureBufSize) { in process()
289 captIdx = 0; in process()
296 mCaptureBuf[captIdx] = clamp8_from_float(smp * fscale); in process()
301 mCaptureIdx = captIdx; in process()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp429 uint32_t captIdx; in Visualizer_process() local
432 for (inIdx = 0, captIdx = pContext->mCaptureIdx; in Visualizer_process()
434 captIdx++) { in Visualizer_process()
435 if (captIdx >= CAPTURE_BUF_SIZE) captIdx = 0; // wrap in Visualizer_process()
442 buf[captIdx] = clamp8_from_float(smp * fscale); in Visualizer_process()
446 buf[captIdx] = ((uint8_t)smp)^0x80; in Visualizer_process()
452 pContext->mCaptureIdx = captIdx; in Visualizer_process()