Home
last modified time | relevance | path

Searched refs:outBuffer (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/resize/
Dresize.cpp50 ANativeWindow_Buffer outBuffer; in main() local
51 surface->lock(&outBuffer, NULL); in main()
52 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in main()
53 android_memset16((uint16_t*)outBuffer.bits, 0xF800, bpr*outBuffer.height); in main()
56 surface->lock(&outBuffer); in main()
57 android_memset16((uint16_t*)outBuffer.bits, 0x07E0, bpr*outBuffer.height); in main()
/frameworks/native/libs/gui/tests/
DSRGB_test.cpp302 ANativeWindow_Buffer outBuffer; in createDebugSurface() local
305 mOutputSurface->lock(&outBuffer, &inOutDirtyBounds); in createDebugSurface()
306 uint8_t* bytePointer = reinterpret_cast<uint8_t*>(outBuffer.bits); in createDebugSurface()
307 for (int y = 0; y < outBuffer.height; ++y) { in createDebugSurface()
308 int rowOffset = y * outBuffer.stride; // pixels in createDebugSurface()
309 for (int x = 0; x < outBuffer.width; ++x) { in createDebugSurface()
326 ANativeWindow_Buffer outBuffer; in copyToDebugSurface() local
328 mOutputSurface->lock(&outBuffer, &outBufferBounds); in copyToDebugSurface()
329 ASSERT_EQ(mLockedBuffer.width, outBuffer.width); in copyToDebugSurface()
330 ASSERT_EQ(mLockedBuffer.height, outBuffer.height); in copyToDebugSurface()
[all …]
/frameworks/av/cmds/stagefright/
Dsf2.cpp451 sp<ABuffer> outBuffer; in onFillThisBuffer() local
452 CHECK(msg->findBuffer("buffer", &outBuffer)); in onFillThisBuffer()
455 outBuffer = mCSD.editItemAt(mCSDIndex++); in onFillThisBuffer()
456 outBuffer->meta()->setInt64("timeUs", 0); in onFillThisBuffer()
458 size_t sizeLeft = outBuffer->capacity(); in onFillThisBuffer()
459 outBuffer->setRange(0, 0); in onFillThisBuffer()
493 if (outBuffer->size() == 0) { in onFillThisBuffer()
497 CHECK_GT(outBuffer->size(), 0u); in onFillThisBuffer()
505 if (outBuffer->size() == 0) { in onFillThisBuffer()
509 outBuffer->meta()->setInt64("timeUs", timeUs); in onFillThisBuffer()
[all …]
/frameworks/base/core/jni/
Dandroid_view_Surface.cpp215 ANativeWindow_Buffer outBuffer; in nativeLockCanvas() local
216 status_t err = surface->lock(&outBuffer, dirtyRectPtr); in nativeLockCanvas()
226 env->SetIntField(canvasObj, gCanvasClassInfo.mSurfaceFormat, outBuffer.format); in nativeLockCanvas()
228 SkImageInfo info = SkImageInfo::Make(outBuffer.width, outBuffer.height, in nativeLockCanvas()
229 convertPixelFormat(outBuffer.format), in nativeLockCanvas()
231 if (outBuffer.format == PIXEL_FORMAT_RGBX_8888) { in nativeLockCanvas()
236 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in nativeLockCanvas()
238 if (outBuffer.width > 0 && outBuffer.height > 0) { in nativeLockCanvas()
239 bitmap.setPixels(outBuffer.bits); in nativeLockCanvas()
Dandroid_view_TextureView.cpp105 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in native_window_lock() argument
107 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in native_window_lock()
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp267 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in LE_process() argument
276 outBuffer == NULL || outBuffer->raw == NULL || in LE_process()
277 inBuffer->frameCount != outBuffer->frameCount || in LE_process()
295 if (inBuffer->raw != outBuffer->raw) { in LE_process()
297 for (size_t i = 0; i < outBuffer->frameCount*2; i++) { in LE_process()
298 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in LE_process()
301 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in LE_process()
/frameworks/base/libs/input/
DSpriteController.cpp202 ANativeWindow_Buffer outBuffer; in doUpdateSprites() local
203 status_t status = surface->lock(&outBuffer, NULL); in doUpdateSprites()
208 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in doUpdateSprites()
209 … surfaceBitmap.installPixels(SkImageInfo::MakeN32Premul(outBuffer.width, outBuffer.height), in doUpdateSprites()
210 outBuffer.bits, bpr); in doUpdateSprites()
218 if (outBuffer.width > update.state.icon.bitmap.width()) { in doUpdateSprites()
221 outBuffer.width, update.state.icon.bitmap.height(), paint); in doUpdateSprites()
223 if (outBuffer.height > update.state.icon.bitmap.height()) { in doUpdateSprites()
226 outBuffer.width, outBuffer.height, paint); in doUpdateSprites()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp34 ANativeWindow_Buffer outBuffer; in fillSurfaceRGBA8() local
37 ASSERT_EQ(NO_ERROR, s->lock(&outBuffer, NULL)); in fillSurfaceRGBA8()
38 uint8_t* img = reinterpret_cast<uint8_t*>(outBuffer.bits); in fillSurfaceRGBA8()
39 for (uint32_t y = 0; y < outBuffer.height; y++) { in fillSurfaceRGBA8()
40 for (uint32_t x = 0; x < outBuffer.width; x++) { in fillSurfaceRGBA8()
41 uint8_t* pixel = img + (4 * (y*outBuffer.stride + x)); in fillSurfaceRGBA8()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp308 effect_handle_t self,audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument
317 outBuffer == NULL || outBuffer->raw == NULL || in Visualizer_process()
318 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process()
398 if (inBuffer->raw != outBuffer->raw) { in Visualizer_process()
400 for (size_t i = 0; i < outBuffer->frameCount*2; i++) { in Visualizer_process()
401 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in Visualizer_process()
404 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in Visualizer_process()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp86 status_t FramebufferSurface::nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence) { in nextBuffer() argument
92 outBuffer = mCurrentBuffer; in nextBuffer()
120 outBuffer = mCurrentBuffer; in nextBuffer()
DFramebufferSurface.h67 status_t nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence);
/frameworks/base/native/android/
Dnative_window.cpp77 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in ANativeWindow_lock() argument
79 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in ANativeWindow_lock()
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.cpp72 status_t MonitoredProducer::detachNextBuffer(sp<GraphicBuffer>* outBuffer, in detachNextBuffer() argument
74 return mProducer->detachNextBuffer(outBuffer, outFence); in detachNextBuffer()
DMonitoredProducer.h42 virtual status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer,
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp601 …C" int Equalizer_process(effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Equalizer_process() argument
609 outBuffer == NULL || outBuffer->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()
/frameworks/native/libs/gui/
DSurface.cpp532 ANativeWindow_Buffer* outBuffer = va_arg(args, ANativeWindow_Buffer*); in dispatchLock() local
534 return lock(outBuffer, inOutDirtyBounds); in dispatchLock()
797 ANativeWindow_Buffer* outBuffer, ARect* inOutDirtyBounds) in lock() argument
880 outBuffer->width = backBuffer->width; in lock()
881 outBuffer->height = backBuffer->height; in lock()
882 outBuffer->stride = backBuffer->stride; in lock()
883 outBuffer->format = backBuffer->format; in lock()
884 outBuffer->bits = vaddr; in lock()
DBufferQueueConsumer.cpp38 status_t BufferQueueConsumer::acquireBuffer(BufferItem* outBuffer, in acquireBuffer() argument
147 *outBuffer = *front; in acquireBuffer()
163 if (outBuffer->mAcquireCalled) { in acquireBuffer()
164 outBuffer->mGraphicBuffer = NULL; in acquireBuffer()
DIGraphicBufferProducer.cpp128 virtual status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer, in detachNextBuffer() argument
130 if (outBuffer == NULL) { in detachNextBuffer()
147 *outBuffer = new GraphicBuffer; in detachNextBuffer()
148 reply.read(**outBuffer); in detachNextBuffer()
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.c259 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument
270 outBuffer == NULL || outBuffer->raw == NULL || in Downmix_Process()
271 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process()
286 pDst = outBuffer->s16; in Downmix_Process()
287 size_t numFrames = outBuffer->frameCount; in Downmix_Process()
DEffectDownmix.h78 audio_buffer_t *outBuffer);
/frameworks/native/include/android/
Dnative_window.h113 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer,
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp2833 audio_buffer_t *outBuffer){ in Effect_process() argument
2839 LVM_INT16 *out = (LVM_INT16 *)outBuffer->raw; in Effect_process()
2861 outBuffer == NULL || outBuffer->raw == NULL || in Effect_process()
2862 inBuffer->frameCount != outBuffer->frameCount){ in Effect_process()
2870 pContext->pBundledContext->SamplesToExitCountBb -= outBuffer->frameCount * 2; // STEREO in Effect_process()
2890 pContext->pBundledContext->SamplesToExitCountEq -= outBuffer->frameCount * 2; // STEREO in Effect_process()
2904 pContext->pBundledContext->SamplesToExitCountVirt -= outBuffer->frameCount * 2;// STEREO in Effect_process()
2932 (LVM_INT16 *)outBuffer->raw, in Effect_process()
2933 outBuffer->frameCount, in Effect_process()
2945 for (size_t i=0; i < outBuffer->frameCount*2; i++){ in Effect_process()
[all …]
/frameworks/av/media/libeffects/proxy/
DEffectProxy.h43 audio_buffer_t *outBuffer);
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp1165 audio_buffer_t *outBuffer) in PreProcessingFx_Process() argument
1177 outBuffer == NULL || outBuffer->raw == NULL){ in PreProcessingFx_Process()
1189 size_t framesRq = outBuffer->frameCount; in PreProcessingFx_Process()
1193 if (outBuffer->frameCount < fr) { in PreProcessingFx_Process()
1194 fr = outBuffer->frameCount; in PreProcessingFx_Process()
1196 memcpy(outBuffer->s16, in PreProcessingFx_Process()
1205 outBuffer->frameCount = framesWr; in PreProcessingFx_Process()
1322 memcpy(outBuffer->s16 + framesWr * session->outChannelCount, in PreProcessingFx_Process()
1329 outBuffer->frameCount += fr; in PreProcessingFx_Process()
1717 audio_buffer_t *outBuffer __unused) in PreProcessingFx_ProcessReverse()
/frameworks/av/media/libstagefright/codecs/aacenc/
DSoftAACEncoder2.cpp571 void* outBuffer[] = { outPtr }; in onQueueFilled() local
577 outBufDesc.numBufs = sizeof(outBuffer) / sizeof(void*); in onQueueFilled()
578 outBufDesc.bufs = (void**)&outBuffer; in onQueueFilled()
590 outBuffer[0] = outPtr; in onQueueFilled()

12