Home
last modified time | relevance | path

Searched refs:inBuffer (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp283 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in LE_process() argument
291 if (inBuffer == NULL || inBuffer->raw == NULL || in LE_process()
293 inBuffer->frameCount != outBuffer->frameCount || in LE_process()
294 inBuffer->frameCount == 0) { in LE_process()
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()
[all …]
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp322 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument
330 if (inBuffer == NULL || inBuffer->raw == NULL || in Visualizer_process()
332 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process()
333 inBuffer->frameCount == 0) { in Visualizer_process()
337 const size_t sampleLen = inBuffer->frameCount * pContext->mChannelCount; in Visualizer_process()
347 maxSample = fmax(maxSample, fabs(inBuffer->f32[inIdx])); in Visualizer_process()
348 rmsSqAcc += inBuffer->f32[inIdx] * inBuffer->f32[inIdx]; in Visualizer_process()
355 maxSample = std::max(maxSample, std::abs(int32_t(inBuffer->s16[inIdx]))); in Visualizer_process()
356 rmsSqAcc += inBuffer->s16[inIdx] * inBuffer->s16[inIdx]; in Visualizer_process()
386 smp += inBuffer->f32[inIdx++]; in Visualizer_process()
[all …]
/frameworks/base/telephony/common/com/google/android/mms/util/
DDrmConvertSession.java92 public byte [] convert(byte[] inBuffer, int size) { in convert() argument
94 if (inBuffer != null) { in convert()
97 if (size != inBuffer.length) { in convert()
99 System.arraycopy(inBuffer, 0, buf, 0, size); in convert()
102 convertedStatus = mDrmClient.convertData(mConvertSessionId, inBuffer); in convert()
/frameworks/av/media/libstagefright/flac/dec/
DFLACDecoder.h42 status_t parseMetadata(const uint8_t *inBuffer, size_t inBufferLen);
43 status_t decodeOneFrame(const uint8_t *inBuffer, size_t inBufferLen,
69 status_t addDataToBuffer(const uint8_t *inBuffer, size_t inBufferLen);
DFLACDecoder.cpp272 status_t FLACDecoder::parseMetadata(const uint8_t *inBuffer, size_t inBufferLen) { in parseMetadata() argument
281 status_t err = addDataToBuffer(inBuffer, inBufferLen); in parseMetadata()
337 status_t FLACDecoder::decodeOneFrame(const uint8_t *inBuffer, size_t inBufferLen, in decodeOneFrame() argument
346 status_t err = addDataToBuffer(inBuffer, inBufferLen); in decodeOneFrame()
418 status_t FLACDecoder::addDataToBuffer(const uint8_t *inBuffer, size_t inBufferLen) { in addDataToBuffer() argument
443 memcpy(mBuffer + mBufferDataSize, inBuffer, inBufferLen); in addDataToBuffer()
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp397 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in HapticGenerator_Process() argument
400 if (inBuffer == nullptr || inBuffer->raw == nullptr in HapticGenerator_Process()
407 size_t audioBytes = context->audioDataBytesPerFrame * inBuffer->frameCount; in HapticGenerator_Process()
408 size_t audioSampleCount = inBuffer->frameCount * context->param.audioChannelCount; in HapticGenerator_Process()
409 if (inBuffer->raw != outBuffer->raw) { in HapticGenerator_Process()
412 outBuffer->f32[i] += inBuffer->f32[i]; in HapticGenerator_Process()
415 memcpy(outBuffer->raw, inBuffer->raw, audioBytes); in HapticGenerator_Process()
431 size_t hapticSampleCount = inBuffer->frameCount * context->param.hapticChannelCount; in HapticGenerator_Process()
440 for (size_t i = 0; i < inBuffer->frameCount; ++i) { in HapticGenerator_Process()
443 inBuffer->f32[i * context->param.audioChannelCount in HapticGenerator_Process()
[all …]
/frameworks/av/media/libeffects/lvm/tests/
DEffectTestHelper.cpp71 audio_buffer_t inBuffer = {.frameCount = mFrameCount, .f32 = input}; in process() local
74 int status = (*mEffectHandle)->process(mEffectHandle, &inBuffer, &outBuffer); in process()
77 inBuffer.f32 += mFrameCount * mInChannelCount; in process()
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.cpp77 audio_buffer_t inBuffer = {.frameCount = mFrameCount, .s16 = input}; in process() local
81 int status = (*mEffectHandle)->process(mEffectHandle, &inBuffer, &outBuffer); in process()
84 inBuffer.s16 += mFrameCount * mChannelCount; in process()
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp426 void* inBuffer[] = { (unsigned char *)data }; in process() local
432 inBufDesc.numBufs = sizeof(inBuffer) / sizeof(void*); in process()
433 inBufDesc.bufs = (void**)&inBuffer; in process()
495 inBuffer[0] = mRemainder; in process()
556 if (inBuffer[0] == mRemainder) { in process()
557 inBuffer[0] = const_cast<uint8_t *>(data); in process()
561 inBuffer[0] = (int16_t *)inBuffer[0] + outargs.numInSamples; in process()
605 mRemainder[i] = static_cast<uint8_t *>(inBuffer[0])[i]; in process()
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp1050 int PreProcessingFx_Process(effect_handle_t self, audio_buffer_t* inBuffer, in PreProcessingFx_Process() argument
1060 if (inBuffer == NULL || inBuffer->raw == NULL || outBuffer == NULL || outBuffer->raw == NULL) { in PreProcessingFx_Process()
1065 if (inBuffer->frameCount != outBuffer->frameCount) { in PreProcessingFx_Process()
1067 inBuffer->frameCount, outBuffer->frameCount); in PreProcessingFx_Process()
1071 if (inBuffer->frameCount != session->frameCount) { in PreProcessingFx_Process()
1073 inBuffer->frameCount, session->frameCount, session->samplingRate); in PreProcessingFx_Process()
1084 (const int16_t* const)inBuffer->s16, in PreProcessingFx_Process()
1451 int PreProcessingFx_ProcessReverse(effect_handle_t self, audio_buffer_t* inBuffer, in PreProcessingFx_ProcessReverse() argument
1461 if (inBuffer == NULL || inBuffer->raw == NULL) { in PreProcessingFx_ProcessReverse()
1466 if (inBuffer->frameCount != outBuffer->frameCount) { in PreProcessingFx_ProcessReverse()
[all …]
/frameworks/av/media/libstagefright/codecs/xaacdec/
DSoftXAAC.h88 IA_ERRORCODE configXAACDecoder(uint8_t* inBuffer, uint32_t inBufferLength);
90 IA_ERRORCODE decodeXAACStream(uint8_t* inBuffer, uint32_t inBufferLength,
DSoftXAAC.cpp522 uint8_t* inBuffer = NULL; in onQueueFilled() local
552 inBuffer = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
556 IA_ERRORCODE err_code = configXAACDecoder(inBuffer, inBufferLength); in onQueueFilled()
632 inBuffer = (uint8_t*)adtsHeader + adtsHeaderSize; in onQueueFilled()
655 inBuffer = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
669 IA_ERRORCODE err_code = configXAACDecoder(inBuffer, inBufferLength); in onQueueFilled()
701 decodeXAACStream(inBuffer, inBufferLength, &bytesConsumed, &numOutBytes); in onQueueFilled()
1054 IA_ERRORCODE SoftXAAC::configXAACDecoder(uint8_t* inBuffer, uint32_t inBufferLength) { in configXAACDecoder() argument
1065 memcpy(mInputBuffer, inBuffer, inBufferLength); in configXAACDecoder()
1407 IA_ERRORCODE SoftXAAC::decodeXAACStream(uint8_t* inBuffer, uint32_t inBufferLength, in decodeXAACStream() argument
[all …]
/frameworks/av/media/codec2/components/xaac/
DC2SoftXaacDec.h115 IA_ERRORCODE configXAACDecoder(uint8_t* inBuffer, uint32_t inBufferLength);
117 IA_ERRORCODE decodeXAACStream(uint8_t* inBuffer,
DC2SoftXaacDec.cpp402 uint8_t* inBuffer = nullptr; in process() local
428 inBuffer = const_cast<uint8_t*>(view.data() + offset); in process()
432 IA_ERRORCODE err_code = configXAACDecoder(inBuffer, inBufferLength); in process()
489 inBuffer = in process()
507 inBuffer = const_cast<uint8_t*>(view.data() + offset); in process()
518 IA_ERRORCODE err_code = configXAACDecoder(inBuffer, inBufferLength); in process()
556 errorCode = decodeXAACStream(inBuffer, inBufferLength, in process()
937 IA_ERRORCODE C2SoftXaacDec::configXAACDecoder(uint8_t* inBuffer, uint32_t inBufferLength) { in configXAACDecoder() argument
943 memcpy(mInputBuffer, inBuffer, inBufferLength); in configXAACDecoder()
1282 IA_ERRORCODE C2SoftXaacDec::decodeXAACStream(uint8_t* inBuffer, in decodeXAACStream() argument
[all …]
/frameworks/av/media/libeffects/lvm/benchmarks/
Dlvm_benchmark.cpp213 audio_buffer_t inBuffer = {.frameCount = kFrameCount, .f32 = input.data()}; in BM_LVM() local
215 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_LVM()
Dreverb_benchmark.cpp155 audio_buffer_t inBuffer = {.frameCount = kFrameCount, .f32 = input.data()}; in BM_REVERB() local
157 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_REVERB()
/frameworks/av/media/libeffects/downmix/benchmark/
Ddownmix_benchmark.cpp183 audio_buffer_t inBuffer = {.frameCount = kFrameCount, .f32 = input.data()}; in BM_Downmix() local
185 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_Downmix()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp321 int DP_process(effect_handle_t self, audio_buffer_t *inBuffer, in DP_process() argument
330 if (inBuffer == NULL || inBuffer->raw == NULL || in DP_process()
332 inBuffer->frameCount != outBuffer->frameCount || in DP_process()
333 inBuffer->frameCount == 0) { in DP_process()
346 pContext->mPDynamics->processSamples(inBuffer->f32, inBuffer->f32, in DP_process()
347 inBuffer->frameCount * channelCount); in DP_process()
349 if (inBuffer->raw != outBuffer->raw) { in DP_process()
352 outBuffer->f32[i] += inBuffer->f32[i]; in DP_process()
355 memcpy(outBuffer->raw, inBuffer->raw, in DP_process()
/frameworks/av/media/libstagefright/include/media/stagefright/
DRenderScriptWrapper.h30 RSC::Allocation* inBuffer,
/frameworks/av/cmds/stagefright/
Dmediafilter.cpp78 RSC::Allocation *inBuffer, RSC::Allocation *outBuffer) { in processBuffers()
79 mScript->forEach_root(inBuffer, outBuffer); in processBuffers()
98 RSC::Allocation *inBuffer, RSC::Allocation *outBuffer) { in processBuffers()
99 mScript->forEach_root(inBuffer, outBuffer); in processBuffers()
118 RSC::Allocation *inBuffer, RSC::Allocation *outBuffer) { in processBuffers()
119 mScript->forEach_root(inBuffer, outBuffer); in processBuffers()
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp604 extern "C" int Equalizer_process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *ou… in Equalizer_process() argument
611 if (inBuffer == NULL || inBuffer->raw == NULL || in Equalizer_process()
613 inBuffer->frameCount != outBuffer->frameCount) { in Equalizer_process()
624 pContext->adapter.process(inBuffer->raw, outBuffer->raw, outBuffer->frameCount); in Equalizer_process()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp461 const C2ConstGraphicBlock inBuffer = in process() local
463 if (inBuffer.width() < mSize->width || in process()
464 inBuffer.height() < mSize->height) { in process()
466 inBuffer.width(), mSize->width, inBuffer.height(), in process()
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.cpp61 audio_buffer_t *inBuffer,
315 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument
325 if (inBuffer == NULL || inBuffer->raw == NULL || in Downmix_Process()
327 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process()
341 pSrc = inBuffer->f32; in Downmix_Process()
/frameworks/av/media/libeffects/proxy/
DEffectProxy.h42 audio_buffer_t *inBuffer,
/frameworks/av/media/libeffects/factory/
DEffectsFactory.c65 int Effect_Process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Effect_Process() argument
80 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer); in Effect_Process()
131 int Effect_ProcessReverse(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Effect_ProcessReverse() argument
147 ret = (*fx->subItfe)->process_reverse(fx->subItfe, inBuffer, outBuffer); in Effect_ProcessReverse()

12