Home
last modified time | relevance | path

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

/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp306 effect_handle_t self,audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument
314 if (inBuffer == NULL || inBuffer->raw == NULL || in Visualizer_process()
316 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process()
317 inBuffer->frameCount == 0) { in Visualizer_process()
327 for (inIdx = 0 ; inIdx < inBuffer->frameCount * pContext->mChannelCount ; inIdx++) { in Visualizer_process()
328 if (inBuffer->s16[inIdx] > maxSample) { in Visualizer_process()
329 maxSample = inBuffer->s16[inIdx]; in Visualizer_process()
330 } else if (-inBuffer->s16[inIdx] > maxSample) { in Visualizer_process()
331 maxSample = -inBuffer->s16[inIdx]; in Visualizer_process()
333 rmsSqAcc += (inBuffer->s16[inIdx] * inBuffer->s16[inIdx]); in Visualizer_process()
[all …]
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp267 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in LE_process() argument
275 if (inBuffer == NULL || inBuffer->raw == NULL || in LE_process()
277 inBuffer->frameCount != outBuffer->frameCount || in LE_process()
278 inBuffer->frameCount == 0) { in LE_process()
286 for (inIdx = 0 ; inIdx < inBuffer->frameCount ; inIdx++) { in LE_process()
288 leftSample = inputAmp * (float)inBuffer->s16[2*inIdx]; in LE_process()
289 rightSample = inputAmp * (float)inBuffer->s16[2*inIdx +1]; in LE_process()
291 inBuffer->s16[2*inIdx] = (int16_t) leftSample; in LE_process()
292 inBuffer->s16[2*inIdx +1] = (int16_t) rightSample; in LE_process()
295 if (inBuffer->raw != outBuffer->raw) { in LE_process()
[all …]
/frameworks/av/cmds/stagefright/
Dsf2.cpp440 MediaBuffer *inBuffer; in onFillThisBuffer() local
443 inBuffer = mLeftOverBuffer; in onFillThisBuffer()
453 status_t err = mSource->read(&inBuffer, &options); in onFillThisBuffer()
461 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer()
475 mLeftOverBuffer = inBuffer; in onFillThisBuffer()
483 CHECK(inBuffer->meta_data()->findInt64(kKeyTime, &timeUs)); in onFillThisBuffer()
489 (const uint8_t *)inBuffer->data() in onFillThisBuffer()
490 + inBuffer->range_offset(), in onFillThisBuffer()
491 inBuffer->range_length()); in onFillThisBuffer()
495 if (!inBuffer->meta_data()->findInt32( in onFillThisBuffer()
[all …]
/frameworks/opt/mms/src/java/com/google/android/mms/util/
DDrmConvertSession.java83 public byte [] convert(byte[] inBuffer, int size) { in convert() argument
85 if (inBuffer != null) { in convert()
88 if (size != inBuffer.length) { in convert()
90 System.arraycopy(inBuffer, 0, buf, 0, size); in convert()
93 convertedStatus = mDrmClient.convertData(mConvertSessionId, inBuffer); in convert()
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp1162 audio_buffer_t *inBuffer, in PreProcessingFx_Process() argument
1174 if (inBuffer == NULL || inBuffer->raw == NULL || in PreProcessingFx_Process()
1205 inBuffer->frameCount = 0; in PreProcessingFx_Process()
1211 if (inBuffer->frameCount < fr) { in PreProcessingFx_Process()
1212 fr = inBuffer->frameCount; in PreProcessingFx_Process()
1220 inBuffer->s16, in PreProcessingFx_Process()
1225 fwrite(inBuffer->raw, in PreProcessingFx_Process()
1232 inBuffer->frameCount = fr; in PreProcessingFx_Process()
1258 if (inBuffer->frameCount < fr) { in PreProcessingFx_Process()
1259 fr = inBuffer->frameCount; in PreProcessingFx_Process()
[all …]
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp308 UCHAR* inBuffer[FILEREAD_MAX_LAYERS]; in onQueueFilled() local
320 inBuffer[0] = header->pBuffer + header->nOffset; in onQueueFilled()
325 inBuffer, in onQueueFilled()
441 inBuffer[0] = (UCHAR *)adtsHeader + adtsHeaderSize; in onQueueFilled()
460 inBuffer[0] = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
476 inBuffer, in onQueueFilled()
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp601 extern "C" int Equalizer_process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *ou… in Equalizer_process() argument
608 if (inBuffer == NULL || inBuffer->raw == NULL || in Equalizer_process()
610 inBuffer->frameCount != outBuffer->frameCount) { in Equalizer_process()
621 pContext->adapter.process(inBuffer->raw, outBuffer->raw, outBuffer->frameCount); in Equalizer_process()
DEffectReverb.c192 static int Reverb_Process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer… in Reverb_Process() argument
201 if (inBuffer == NULL || inBuffer->raw == NULL || in Reverb_Process()
203 inBuffer->frameCount != outBuffer->frameCount) { in Reverb_Process()
218 if (inBuffer->raw != outBuffer->raw) { in Reverb_Process()
220 pSrc = inBuffer->s16; in Reverb_Process()
222 size_t count = inBuffer->frameCount; in Reverb_Process()
243 pSrc = inBuffer->s16; in Reverb_Process()
DEffectReverb.h312 audio_buffer_t *inBuffer,
/frameworks/av/media/libeffects/proxy/
DEffectProxy.h42 audio_buffer_t *inBuffer,
DEffectProxy.cpp183 audio_buffer_t *inBuffer, in Effect_process() argument
193 inBuffer, outBuffer); in Effect_process()
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.c270 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument
280 if (inBuffer == NULL || inBuffer->raw == NULL || in Downmix_Process()
282 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process()
296 pSrc = inBuffer->s16; in Downmix_Process()
DEffectDownmix.h77 audio_buffer_t *inBuffer,
/frameworks/av/libvideoeditor/vss/common/inc/
DM4ENCODER_AudioCommon.h228 typedef M4OSA_ERR (M4AE_step) (M4OSA_Context pContext, M4ENCODER_AudioBuffer *inBuffer,
/frameworks/av/media/libstagefright/codecs/aacenc/
DSoftAACEncoder2.cpp486 void* inBuffer[] = { (unsigned char *)mInputFrame }; in onQueueFilled() local
492 inBufDesc.numBufs = sizeof(inBuffer) / sizeof(void*); in onQueueFilled()
493 inBufDesc.bufs = (void**)&inBuffer; in onQueueFilled()
/frameworks/av/services/audioflinger/
DTracks.cpp1554 Buffer inBuffer; in write() local
1557 inBuffer.frameCount = frames; in write()
1558 inBuffer.i16 = data; in write()
1588 pInBuffer = &inBuffer; in write()
1639 if (inBuffer.frameCount) { in write()
1644 pInBuffer->mBuffer = new int16_t[inBuffer.frameCount * channelCount]; in write()
1645 pInBuffer->frameCount = inBuffer.frameCount; in write()
1647 memcpy(pInBuffer->raw, inBuffer.raw, inBuffer.frameCount * channelCount * in write()
DEffects.h88 int16_t *inBuffer() { return mConfig.inputCfg.buffer.s16; } in inBuffer() function
281 int16_t *inBuffer() const { in inBuffer() function
DThreads.cpp1340 ALOGV("createTrack_l() setting main buffer %p", chain->inBuffer()); in createTrack_l()
1341 track->setMainBuffer(chain->inBuffer()); in createTrack_l()
2129 track->setAuxBuffer(EffectId, (int32_t *)effect->inBuffer()); in attachAuxEffect_l()
DEffects.cpp1461 delete[] effect->inBuffer(); in removeEffect_l()
/frameworks/av/media/libeffects/factory/
DEffectsFactory.c77 int Effect_Process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Effect_Process() argument
92 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer); in Effect_Process()
143 int Effect_ProcessReverse(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Effect_ProcessReverse() argument
159 ret = (*fx->subItfe)->process_reverse(fx->subItfe, inBuffer, outBuffer); in Effect_ProcessReverse()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp2588 audio_buffer_t *inBuffer, in Effect_process() argument
2594 LVM_INT16 *in = (LVM_INT16 *)inBuffer->raw; in Effect_process()
2616 if (inBuffer == NULL || inBuffer->raw == NULL || in Effect_process()
2618 inBuffer->frameCount != outBuffer->frameCount){ in Effect_process()
2687 lvmStatus = android::LvmBundle_process( (LVM_INT16 *)inBuffer->raw, in Effect_process()
2703 clamp16((LVM_INT32)outBuffer->s16[i] + (LVM_INT32)inBuffer->s16[i]); in Effect_process()
2705 } else if (outBuffer->raw != inBuffer->raw) { in Effect_process()
2706 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount*sizeof(LVM_INT16)*2); in Effect_process()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp1857 audio_buffer_t *inBuffer, in Reverb_process() argument
1866 if (inBuffer == NULL || inBuffer->raw == NULL || in Reverb_process()
1868 inBuffer->frameCount != outBuffer->frameCount){ in Reverb_process()
1874 status = process( (LVM_INT16 *)inBuffer->raw, in Reverb_process()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java310 BufferedReader inBuffer = new BufferedReader(inReader); in writeProcmemInfo() local
312 while ((s = inBuffer.readLine()) != null) { in writeProcmemInfo()
/frameworks/av/libvideoeditor/lvpp/
DVideoEditorPreviewController.cpp1432 M4VIFI_UInt8 *inBuffer = M4OSA_NULL; in doImageRenderingMode() local
1436 inBuffer = (M4OSA_UInt8 *)dataPtr; in doImageRenderingMode()
1440 videoHeight, (M4VIFI_UInt8 *)inBuffer, videoWidth, videoHeight); in doImageRenderingMode()