Home
last modified time | relevance | path

Searched refs:inBuffer (Results 1 – 25 of 43) 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/preprocessing/
DPreProcessing.cpp1209 audio_buffer_t *inBuffer, in PreProcessingFx_Process() argument
1220 if (inBuffer == NULL || inBuffer->raw == NULL || in PreProcessingFx_Process()
1251 inBuffer->frameCount = 0; in PreProcessingFx_Process()
1257 if (inBuffer->frameCount < fr) { in PreProcessingFx_Process()
1258 fr = inBuffer->frameCount; in PreProcessingFx_Process()
1274 inBuffer->s16, in PreProcessingFx_Process()
1279 fwrite(inBuffer->raw, in PreProcessingFx_Process()
1286 inBuffer->frameCount = fr; in PreProcessingFx_Process()
1312 if (inBuffer->frameCount < fr) { in PreProcessingFx_Process()
1313 fr = inBuffer->frameCount; in PreProcessingFx_Process()
[all …]
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp403 void* inBuffer[] = { (unsigned char *)data }; in process() local
409 inBufDesc.numBufs = sizeof(inBuffer) / sizeof(void*); in process()
410 inBufDesc.bufs = (void**)&inBuffer; in process()
472 inBuffer[0] = mRemainder; in process()
533 if (inBuffer[0] == mRemainder) { in process()
534 inBuffer[0] = const_cast<uint8_t *>(data); in process()
538 inBuffer[0] = (int16_t *)inBuffer[0] + outargs.numInSamples; in process()
582 mRemainder[i] = static_cast<uint8_t *>(inBuffer[0])[i]; in process()
DC2SoftAacDec.cpp523 UCHAR* inBuffer[FILEREAD_MAX_LAYERS]; in process() local
548 inBuffer[0] = const_cast<UCHAR *>(view.data() + offset); in process()
553 inBuffer, in process()
609 inBuffer[0] = const_cast<UCHAR *>(adtsHeader + adtsHeaderSize); in process()
625 inBuffer[0] = const_cast<UCHAR *>(view.data() + offset); in process()
636 inBuffer, in process()
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.c310 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument
320 if (inBuffer == NULL || inBuffer->raw == NULL || in Downmix_Process()
322 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process()
336 pSrc = inBuffer->s16; in Downmix_Process()
409 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument
419 if (inBuffer == NULL || inBuffer->raw == NULL || in Downmix_Process()
421 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process()
435 pSrc = (LVM_FLOAT *) inBuffer->s16; in Downmix_Process()
DEffectDownmix.h79 audio_buffer_t *inBuffer,
/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.cpp399 uint8_t* inBuffer = nullptr; in process() local
425 inBuffer = const_cast<uint8_t*>(view.data() + offset); in process()
429 IA_ERRORCODE err_code = configXAACDecoder(inBuffer, inBufferLength); in process()
486 inBuffer = in process()
504 inBuffer = const_cast<uint8_t*>(view.data() + offset); in process()
515 IA_ERRORCODE err_code = configXAACDecoder(inBuffer, inBufferLength); in process()
553 errorCode = decodeXAACStream(inBuffer, inBufferLength, in process()
934 IA_ERRORCODE C2SoftXaacDec::configXAACDecoder(uint8_t* inBuffer, uint32_t inBufferLength) { in configXAACDecoder() argument
940 memcpy(mInputBuffer, inBuffer, inBufferLength); in configXAACDecoder()
1279 IA_ERRORCODE C2SoftXaacDec::decodeXAACStream(uint8_t* inBuffer, in decodeXAACStream() argument
[all …]
/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/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/libstagefright/include/media/stagefright/
DRenderScriptWrapper.h30 RSC::Allocation* inBuffer,
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp456 const C2ConstGraphicBlock inBuffer = in process() local
458 if (inBuffer.width() < mSize->width || in process()
459 inBuffer.height() < mSize->height) { in process()
461 inBuffer.width(), mSize->width, inBuffer.height(), in process()
/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()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Enc.cpp473 const C2ConstGraphicBlock inBuffer = inputBuffer->data().graphicBlocks().front(); in process() local
474 if (inBuffer.width() < mSize->width || in process()
475 inBuffer.height() < mSize->height) { in process()
477 ALOGW("unexpected Capacity Aspect %d(%d) x %d(%d)", inBuffer.width(), in process()
478 mSize->width, inBuffer.height(), mSize->height); in process()
/frameworks/av/media/libeffects/proxy/
DEffectProxy.h42 audio_buffer_t *inBuffer,
/frameworks/av/media/libstagefright/codecs/flac/dec/
DSoftFlacDecoder.cpp330 uint8_t* inBuffer = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() local
359 status_t decoderErr = mFLACDecoder->parseMetadata(inBuffer, inBufferLength); in onQueueFilled()
392 inBuffer, inBufferLength, outBuffer, &outBufferSize, outputFloat); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp614 UCHAR* inBuffer[FILEREAD_MAX_LAYERS]; in onQueueFilled() local
637 inBuffer[0] = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
642 inBuffer, in onQueueFilled()
718 inBuffer[0] = (UCHAR *)adtsHeader + adtsHeaderSize; in onQueueFilled()
745 inBuffer[0] = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
759 inBuffer, in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/aacenc/
DSoftAACEncoder2.cpp635 void* inBuffer[] = { (unsigned char *)mInputFrame }; in onQueueFilled() local
641 inBufDesc.numBufs = sizeof(inBuffer) / sizeof(void*); in onQueueFilled()
642 inBufDesc.bufs = (void**)&inBuffer; in onQueueFilled()

12