Home
last modified time | relevance | path

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

/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp312 effect_handle_t self,audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument
320 if (inBuffer == NULL || inBuffer->raw == NULL || in Visualizer_process()
322 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process()
323 inBuffer->frameCount == 0) { in Visualizer_process()
333 for (inIdx = 0 ; inIdx < inBuffer->frameCount * pContext->mChannelCount ; inIdx++) { in Visualizer_process()
334 if (inBuffer->s16[inIdx] > maxSample) { in Visualizer_process()
335 maxSample = inBuffer->s16[inIdx]; in Visualizer_process()
336 } else if (-inBuffer->s16[inIdx] > maxSample) { in Visualizer_process()
337 maxSample = -inBuffer->s16[inIdx]; in Visualizer_process()
339 rmsSqAcc += (inBuffer->s16[inIdx] * inBuffer->s16[inIdx]); in Visualizer_process()
[all …]
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp270 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in LE_process() argument
278 if (inBuffer == NULL || inBuffer->raw == NULL || in LE_process()
280 inBuffer->frameCount != outBuffer->frameCount || in LE_process()
281 inBuffer->frameCount == 0) { in LE_process()
289 for (inIdx = 0 ; inIdx < inBuffer->frameCount ; inIdx++) { in LE_process()
291 leftSample = inputAmp * (float)inBuffer->s16[2*inIdx]; in LE_process()
292 rightSample = inputAmp * (float)inBuffer->s16[2*inIdx +1]; in LE_process()
294 inBuffer->s16[2*inIdx] = (int16_t) leftSample; in LE_process()
295 inBuffer->s16[2*inIdx +1] = (int16_t) rightSample; in LE_process()
298 if (inBuffer->raw != outBuffer->raw) { in LE_process()
[all …]
/frameworks/opt/telephony/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.cpp1208 audio_buffer_t *inBuffer, in PreProcessingFx_Process() argument
1219 if (inBuffer == NULL || inBuffer->raw == NULL || in PreProcessingFx_Process()
1250 inBuffer->frameCount = 0; in PreProcessingFx_Process()
1256 if (inBuffer->frameCount < fr) { in PreProcessingFx_Process()
1257 fr = inBuffer->frameCount; in PreProcessingFx_Process()
1273 inBuffer->s16, in PreProcessingFx_Process()
1278 fwrite(inBuffer->raw, in PreProcessingFx_Process()
1285 inBuffer->frameCount = fr; in PreProcessingFx_Process()
1311 if (inBuffer->frameCount < fr) { in PreProcessingFx_Process()
1312 fr = inBuffer->frameCount; in PreProcessingFx_Process()
[all …]
/frameworks/av/media/libstagefright/include/
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()
DEffectReverb.c195 static int Reverb_Process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer… in Reverb_Process() argument
204 if (inBuffer == NULL || inBuffer->raw == NULL || in Reverb_Process()
206 inBuffer->frameCount != outBuffer->frameCount) { in Reverb_Process()
221 if (inBuffer->raw != outBuffer->raw) { in Reverb_Process()
223 pSrc = inBuffer->s16; in Reverb_Process()
225 size_t count = inBuffer->frameCount; in Reverb_Process()
246 pSrc = inBuffer->s16; in Reverb_Process()
DEffectReverb.h312 audio_buffer_t *inBuffer,
/frameworks/av/media/libeffects/proxy/
DEffectProxy.h42 audio_buffer_t *inBuffer,
DEffectProxy.cpp181 audio_buffer_t *inBuffer, in Effect_process() argument
191 inBuffer, outBuffer); in Effect_process()
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.c293 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument
303 if (inBuffer == NULL || inBuffer->raw == NULL || in Downmix_Process()
305 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process()
319 pSrc = inBuffer->s16; in Downmix_Process()
DEffectDownmix.h77 audio_buffer_t *inBuffer,
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp551 UCHAR* inBuffer[FILEREAD_MAX_LAYERS]; in onQueueFilled() local
574 inBuffer[0] = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
579 inBuffer, in onQueueFilled()
655 inBuffer[0] = (UCHAR *)adtsHeader + adtsHeaderSize; in onQueueFilled()
682 inBuffer[0] = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
696 inBuffer, in onQueueFilled()
/frameworks/av/services/audioflinger/
DTracks.cpp1292 Buffer inBuffer; in write() local
1294 inBuffer.frameCount = frames; in write()
1295 inBuffer.raw = data; in write()
1308 pInBuffer = &inBuffer; in write()
1364 if (inBuffer.frameCount) { in write()
1369 pInBuffer->mBuffer = malloc(inBuffer.frameCount * mFrameSize); in write()
1370 pInBuffer->frameCount = inBuffer.frameCount; in write()
1372 memcpy(pInBuffer->raw, inBuffer.raw, inBuffer.frameCount * mFrameSize); in write()
DEffects.h90 int16_t *inBuffer() const { in inBuffer() function
313 int16_t *inBuffer() const { in inBuffer() function
DThreads.cpp2038 ALOGV("createTrack_l() setting main buffer %p", chain->inBuffer()); in createTrack_l()
2039 track->setMainBuffer(chain->inBuffer()); in createTrack_l()
2910 track->setAuxBuffer(EffectId, (int32_t *)effect->inBuffer()); in attachAuxEffect_l()
/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()
/frameworks/av/media/libeffects/factory/
DEffectsFactory.c84 int Effect_Process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Effect_Process() argument
99 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer); in Effect_Process()
150 int Effect_ProcessReverse(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Effect_ProcessReverse() argument
166 ret = (*fx->subItfe)->process_reverse(fx->subItfe, inBuffer, outBuffer); in Effect_ProcessReverse()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp1859 audio_buffer_t *inBuffer, in Reverb_process() argument
1868 if (inBuffer == NULL || inBuffer->raw == NULL || in Reverb_process()
1870 inBuffer->frameCount != outBuffer->frameCount){ in Reverb_process()
1876 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/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp2928 audio_buffer_t *inBuffer, in Effect_process() argument
2953 if (inBuffer == NULL || inBuffer->raw == NULL || in Effect_process()
2955 inBuffer->frameCount != outBuffer->frameCount){ in Effect_process()
3024 processStatus = android::LvmBundle_process( (LVM_INT16 *)inBuffer->raw, in Effect_process()
3043 clamp16((LVM_INT32)outBuffer->s16[i] + (LVM_INT32)inBuffer->s16[i]); in Effect_process()
3045 } else if (outBuffer->raw != inBuffer->raw) { in Effect_process()
3046 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount*sizeof(LVM_INT16)*2); in Effect_process()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp2140 jint height, jobject inBuffer, jint rowStride, jint pixStride, jlong offset, in DngCreator_nativeWriteImage() argument
2197 jlong capacity = env->GetDirectBufferCapacity(inBuffer); in DngCreator_nativeWriteImage()
2205 uint8_t* pixelBytes = reinterpret_cast<uint8_t*>(env->GetDirectBufferAddress(inBuffer)); in DngCreator_nativeWriteImage()
2227 inBuf = new JniInputByteBuffer(env, inBuffer); in DngCreator_nativeWriteImage()