Home
last modified time | relevance | path

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

/frameworks/av/media/libeffects/loudness/aidl/
DLoudnessEnhancerContext.cpp79 for (int inIdx = 0; inIdx < samples; inIdx += 2) { in process() local
81 leftSample = inputAmp * in[inIdx]; in process()
82 rightSample = inputAmp * in[inIdx + 1]; in process()
84 in[inIdx] = leftSample * inverseScale; in process()
85 in[inIdx + 1] = rightSample * inverseScale; in process()
88 for (int inIdx = 0; inIdx < samples; inIdx += 2) { in process() local
89 leftSample = inputAmp * in[inIdx]; in process()
90 rightSample = inputAmp * in[inIdx + 1]; in process()
91 in[inIdx] = leftSample * inverseScale; in process()
92 in[inIdx + 1] = rightSample * inverseScale; in process()
/frameworks/av/media/libeffects/visualizer/aidl/
DVisualizerContext.cpp239 for (size_t inIdx = 0; inIdx < (unsigned) samples; ++inIdx) { in process() local
240 maxSample = fmax(maxSample, fabs(in[inIdx])); in process()
241 rmsSqAcc += in[inIdx] * in[inIdx]; in process()
258 for (size_t inIdx = 0; inIdx < (unsigned)samples; ) { in process() local
263 smp += in[inIdx++]; in process()
285 uint32_t inIdx; in process() local
286 for (inIdx = 0, captIdx = mCaptureIdx; inIdx < (unsigned)samples; captIdx++) { in process()
294 smp += in[inIdx++]; in process()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp345 for (size_t inIdx = 0; inIdx < sampleLen; ++inIdx) { in Visualizer_process() local
346 maxSample = fmax(maxSample, fabs(inBuffer->f32[inIdx])); in Visualizer_process()
347 rmsSqAcc += inBuffer->f32[inIdx] * inBuffer->f32[inIdx]; in Visualizer_process()
353 for (size_t inIdx = 0; inIdx < sampleLen; ++inIdx) { in Visualizer_process() local
354 maxSample = std::max(maxSample, std::abs(int32_t(inBuffer->s16[inIdx]))); in Visualizer_process()
355 rmsSqAcc += inBuffer->s16[inIdx] * inBuffer->s16[inIdx]; in Visualizer_process()
380 for (size_t inIdx = 0; inIdx < sampleLen; ) { in Visualizer_process() local
385 smp += inBuffer->f32[inIdx++]; in Visualizer_process()
430 uint32_t inIdx; in Visualizer_process() local
432 for (inIdx = 0, captIdx = pContext->mCaptureIdx; in Visualizer_process()
[all …]
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp299 uint16_t inIdx; in LE_process() local
308 for (inIdx = 0 ; inIdx < inBuffer->frameCount ; inIdx++) { in LE_process()
311 leftSample = inputAmp * inBuffer->f32[2*inIdx]; in LE_process()
312 rightSample = inputAmp * inBuffer->f32[2*inIdx +1]; in LE_process()
314 inBuffer->f32[2*inIdx] = leftSample * inverseScale; in LE_process()
315 inBuffer->f32[2*inIdx +1] = rightSample * inverseScale; in LE_process()
317 leftSample = inputAmp * (float)inBuffer->s16[2*inIdx]; in LE_process()
318 rightSample = inputAmp * (float)inBuffer->s16[2*inIdx +1]; in LE_process()
320 inBuffer->s16[2*inIdx] = (int16_t) leftSample; in LE_process()
321 inBuffer->s16[2*inIdx +1] = (int16_t) rightSample; in LE_process()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.cpp186 ssize_t inIdx = AMediaCodec_dequeueInputBuffer(mCodec, kQueueDequeueTimeoutUs); in decode() local
187 if (inIdx < 0 && inIdx != AMEDIACODEC_INFO_TRY_AGAIN_LATER) { in decode()
188 ALOGE("AMediaCodec_dequeueInputBuffer returned invalid index %zd\n", inIdx); in decode()
189 mErrorCode = (media_status_t)inIdx; in decode()
191 } else if (inIdx >= 0) { in decode()
193 onInputAvailable(mCodec, inIdx); in decode()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.cpp260 ssize_t inIdx = AMediaCodec_dequeueInputBuffer(mCodec, kQueueDequeueTimeoutUs); in encode() local
261 if (inIdx < 0 && inIdx != AMEDIACODEC_INFO_TRY_AGAIN_LATER) { in encode()
262 ALOGE("AMediaCodec_dequeueInputBuffer returned invalid index %zd\n", inIdx); in encode()
263 mErrorCode = (media_status_t)inIdx; in encode()
265 } else if (inIdx >= 0) { in encode()
267 onInputAvailable(mCodec, inIdx); in encode()