/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 283 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/services/camera/virtualcamera/tests/ |
D | JpegUtilTest.cc | 145 std::shared_ptr<AHardwareBuffer> inBuffer) { in compress() argument 146 return compressJpeg(imageWidth, imageHeight, kJpegQuality, inBuffer, in compress() 155 std::shared_ptr<AHardwareBuffer> inBuffer = in TEST_F() local 158 std::optional<size_t> compressedSize = compress(640, 480, inBuffer); in TEST_F() 167 std::shared_ptr<AHardwareBuffer> inBuffer = in TEST_F() local 170 std::optional<size_t> compressedSize = compress(630, 470, inBuffer); in TEST_F() 179 std::shared_ptr<AHardwareBuffer> inBuffer = in TEST_F() local 182 std::optional<size_t> compressedSize = compress(640, 480, inBuffer); in TEST_F() 188 std::shared_ptr<AHardwareBuffer> inBuffer = in TEST_F() local 191 std::optional<size_t> compressedSize = compress(640, 480, inBuffer); in TEST_F()
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 321 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument 329 if (inBuffer == NULL || inBuffer->raw == NULL || in Visualizer_process() 331 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process() 332 inBuffer->frameCount == 0) { in Visualizer_process() 336 const size_t sampleLen = inBuffer->frameCount * pContext->mChannelCount; in Visualizer_process() 346 maxSample = fmax(maxSample, fabs(inBuffer->f32[inIdx])); in Visualizer_process() 347 rmsSqAcc += inBuffer->f32[inIdx] * inBuffer->f32[inIdx]; in Visualizer_process() 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() 385 smp += inBuffer->f32[inIdx++]; in Visualizer_process() [all …]
|
/frameworks/base/telephony/common/com/google/android/mms/util/ |
D | DrmConvertSession.java | 92 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/module/codecs/flac/dec/ |
D | FLACDecoder.h | 42 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);
|
D | FLACDecoder.cpp | 272 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/tests/common/ |
D | EffectTestHelper.cpp | 53 audio_buffer_t inBuffer = {.frameCount = mFrameCount, .f32 = input}; in process() local 56 int status = (*mEffectHandle)->process(mEffectHandle, &inBuffer, &outBuffer); in process() 59 inBuffer.f32 += mFrameCount * mInChannelCount; in process()
|
/frameworks/av/media/libeffects/hapticgenerator/ |
D | EffectHapticGenerator.cpp | 458 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in HapticGenerator_Process() argument 461 if (inBuffer == nullptr || inBuffer->raw == nullptr in HapticGenerator_Process() 468 size_t audioBytes = context->audioDataBytesPerFrame * inBuffer->frameCount; in HapticGenerator_Process() 469 size_t audioSampleCount = inBuffer->frameCount * context->param.audioChannelCount; in HapticGenerator_Process() 470 if (inBuffer->raw != outBuffer->raw) { in HapticGenerator_Process() 473 outBuffer->f32[i] += inBuffer->f32[i]; in HapticGenerator_Process() 476 memcpy(outBuffer->raw, inBuffer->raw, audioBytes); in HapticGenerator_Process() 492 size_t hapticSampleCount = inBuffer->frameCount * context->param.hapticChannelCount; in HapticGenerator_Process() 501 for (size_t i = 0; i < inBuffer->frameCount; ++i) { in HapticGenerator_Process() 504 inBuffer->f32[i * context->param.audioChannelCount in HapticGenerator_Process() [all …]
|
/frameworks/av/media/libeffects/preprocessing/tests/ |
D | EffectTestHelper.cpp | 77 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/services/camera/virtualcamera/util/ |
D | JpegUtil.cc | 104 std::optional<size_t> compress(std::shared_ptr<AHardwareBuffer> inBuffer) { in compress() argument 105 GraphicBuffer* gBuffer = GraphicBuffer::fromAHardwareBuffer(inBuffer.get()); in compress() 120 YCbCrLockGuard yCbCrLock(inBuffer, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in compress() 301 std::shared_ptr<AHardwareBuffer> inBuffer, in compressJpeg() argument 308 return context.compress(inBuffer); in compressJpeg()
|
D | JpegUtil.h | 43 std::shared_ptr<AHardwareBuffer> inBuffer,
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacEnc.cpp | 433 void* inBuffer[] = { (unsigned char *)data }; in process() local 439 inBufDesc.numBufs = sizeof(inBuffer) / sizeof(void*); in process() 440 inBufDesc.bufs = (void**)&inBuffer; in process() 502 inBuffer[0] = mRemainder; in process() 563 if (inBuffer[0] == mRemainder) { in process() 564 inBuffer[0] = const_cast<uint8_t *>(data); in process() 568 inBuffer[0] = (int16_t *)inBuffer[0] + outargs.numInSamples; in process() 574 inBuffer[0] = nullptr; in process() 614 inBuffer[0] = nullptr; in process() 626 mRemainder[i] = static_cast<uint8_t *>(inBuffer[0])[i]; in process()
|
/frameworks/av/media/libeffects/preprocessing/ |
D | PreProcessing.cpp | 1045 int PreProcessingFx_Process(effect_handle_t self, audio_buffer_t* inBuffer, in PreProcessingFx_Process() argument 1055 if (inBuffer == NULL || inBuffer->raw == NULL || outBuffer == NULL || outBuffer->raw == NULL) { in PreProcessingFx_Process() 1060 if (inBuffer->frameCount != outBuffer->frameCount) { in PreProcessingFx_Process() 1062 inBuffer->frameCount, outBuffer->frameCount); in PreProcessingFx_Process() 1066 if (inBuffer->frameCount != session->frameCount) { in PreProcessingFx_Process() 1068 inBuffer->frameCount, session->frameCount, session->samplingRate); in PreProcessingFx_Process() 1079 (const int16_t* const)inBuffer->s16, in PreProcessingFx_Process() 1446 int PreProcessingFx_ProcessReverse(effect_handle_t self, audio_buffer_t* inBuffer, in PreProcessingFx_ProcessReverse() argument 1456 if (inBuffer == NULL || inBuffer->raw == NULL) { in PreProcessingFx_ProcessReverse() 1461 if (inBuffer->frameCount != outBuffer->frameCount) { in PreProcessingFx_ProcessReverse() [all …]
|
/frameworks/av/media/libstagefright/codecs/xaacdec/ |
D | SoftXAAC.h | 88 IA_ERRORCODE configXAACDecoder(uint8_t* inBuffer, uint32_t inBufferLength); 90 IA_ERRORCODE decodeXAACStream(uint8_t* inBuffer, uint32_t inBufferLength,
|
D | SoftXAAC.cpp | 522 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/libeffects/lvm/benchmarks/ |
D | lvm_benchmark.cpp | 213 audio_buffer_t inBuffer = {.frameCount = kFrameCount, .f32 = input.data()}; in BM_LVM() local 215 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_LVM()
|
D | reverb_benchmark.cpp | 155 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/codec2/components/xaac/ |
D | C2SoftXaacDec.h | 115 IA_ERRORCODE configXAACDecoder(uint8_t* inBuffer, uint32_t inBufferLength); 117 IA_ERRORCODE decodeXAACStream(uint8_t* inBuffer,
|
D | C2SoftXaacDec.cpp | 402 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/downmix/ |
D | EffectDownmix.cpp | 62 audio_buffer_t *inBuffer, 313 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument 324 if (inBuffer == NULL || inBuffer->raw == NULL || in Downmix_Process() 326 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process() 340 pSrc = inBuffer->f32; in Downmix_Process()
|
/frameworks/av/media/libeffects/spatializer/benchmarks/ |
D | spatializer_benchmark.cpp | 140 audio_buffer_t inBuffer = {.frameCount = frameCount, .f32 = input.data()}; in BM_SPATIALIZER() local 142 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_SPATIALIZER()
|
/frameworks/av/media/libeffects/downmix/benchmark/ |
D | downmix_benchmark.cpp | 158 audio_buffer_t inBuffer = {.frameCount = kFrameCount, .f32 = input.data()}; in BM_Downmix() local 160 (*effectHandle)->process(effectHandle, &inBuffer, &outBuffer); in BM_Downmix()
|
/frameworks/av/media/libeffects/dynamicsproc/ |
D | EffectDynamicsProcessing.cpp | 321 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/libeffects/testlibs/ |
D | EffectEqualizer.cpp | 604 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/libeffects/proxy/ |
D | EffectProxy.h | 42 audio_buffer_t *inBuffer,
|