Home
last modified time | relevance | path

Searched refs:anb (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/libs/gui/tests/
DSurfaceTextureGL_test.cpp40 ANativeWindowBuffer* anb; in TEST_F() local
42 &anb)); in TEST_F()
43 ASSERT_TRUE(anb != nullptr); in TEST_F()
45 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in TEST_F()
90 ANativeWindowBuffer* anb; in TEST_F() local
92 &anb)); in TEST_F()
93 ASSERT_TRUE(anb != nullptr); in TEST_F()
95 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in TEST_F()
155 ANativeWindowBuffer* anb; in TEST_F() local
157 &anb)); in TEST_F()
[all …]
DSurfaceTextureFBO_test.cpp39 android_native_buffer_t* anb; in TEST_F() local
41 &anb)); in TEST_F()
42 ASSERT_TRUE(anb != nullptr); in TEST_F()
44 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in TEST_F()
65 &anb)); in TEST_F()
66 ASSERT_TRUE(anb != nullptr); in TEST_F()
68 buf = GraphicBuffer::from(anb); in TEST_F()
DFillBuffer.cpp93 android_native_buffer_t* anb; in produceOneRGBA8Frame() local
95 &anb)); in produceOneRGBA8Frame()
96 ASSERT_TRUE(anb != nullptr); in produceOneRGBA8Frame()
98 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in produceOneRGBA8Frame()
DCpuConsumer_test.cpp482 ANativeWindowBuffer* anb; in produceOneFrame() local
484 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); in produceOneFrame()
487 ASSERT_TRUE(anb != nullptr); in produceOneFrame()
489 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in produceOneFrame()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3InputStream.cpp70 ANativeWindowBuffer* anb; in getInputBufferLocked() local
88 anb = bufferItem.mGraphicBuffer->getNativeBuffer(); in getInputBufferLocked()
89 assert(anb != NULL); in getInputBufferLocked()
95 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getInputBufferLocked()
132 ANativeWindowBuffer *anb = tmp.mGraphicBuffer->getNativeBuffer(); in returnBufferCheckedLocked() local
133 if (anb != NULL && &(anb->handle) == buffer.buffer) { in returnBufferCheckedLocked()
DCamera3SharedOutputStream.cpp85 ANativeWindowBuffer* anb, in attachBufferToSplitterLocked() argument
94 res = splitter->attachBufferToOutputs(anb, surface_ids); in attachBufferToSplitterLocked()
167 ANativeWindowBuffer* anb; in getBufferLocked() local
171 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
177 res = attachBufferToSplitterLocked(anb, surfaceIds); in getBufferLocked()
187 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
DCamera3OutputStream.cpp216 ANativeWindowBuffer* anb; in getBufferLocked() local
220 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
229 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
804 status_t Camera3OutputStream::getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd) { in getBufferLockedCommon() argument
821 *anb = gb.get(); in getBufferLockedCommon()
822 res = mConsumer->attachBuffer(*anb); in getBufferLockedCommon()
866 res = anw->dequeueBuffer(anw.get(), anb, fenceFd); in getBufferLockedCommon()
894 *anb = mBatchedBuffers.back().buffer; in getBufferLockedCommon()
916 *anb = gb.get(); in getBufferLockedCommon()
917 res = mConsumer->attachBuffer(*anb); in getBufferLockedCommon()
DCamera3SharedOutputStream.h119 status_t attachBufferToSplitterLocked(ANativeWindowBuffer* anb,
DCamera3StreamSplitter.h86 status_t attachBufferToOutputs(ANativeWindowBuffer* anb,
DCamera3OutputStream.h310 status_t getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd);
DCamera3StreamSplitter.cpp428 status_t Camera3StreamSplitter::attachBufferToOutputs(ANativeWindowBuffer* anb, in attachBufferToOutputs() argument
435 sp<GraphicBuffer> gb(static_cast<GraphicBuffer*>(anb)); in attachBufferToOutputs()
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp196 ANativeWindowBuffer* anb = NULL; in pushBlankBuffersToNativeWindow() local
250 err = native_window_dequeue_buffer_and_wait(nativeWindow, &anb); in pushBlankBuffersToNativeWindow()
257 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in pushBlankBuffersToNativeWindow()
281 anb = NULL; in pushBlankBuffersToNativeWindow()
286 if (anb != NULL) { in pushBlankBuffersToNativeWindow()
287 nativeWindow->cancelBuffer(nativeWindow, anb, -1); in pushBlankBuffersToNativeWindow()
288 anb = NULL; in pushBlankBuffersToNativeWindow()
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp253 ANativeWindowBuffer *anb; in processInputFrame() local
298 res = outputANW->dequeueBuffer(mOutputSurface.get(), &anb, &fenceFd); in processInputFrame()
305 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame()
311 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
318 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
372 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
379 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
396 outputANW->queueBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
DHeicCompositeStream.h172 ANativeWindowBuffer *anb; member
180 fileFd(-1), trackIndex(-1), anb(nullptr), appSegmentWritten(false), in InputFrame()
DHeicCompositeStream.cpp916 auto res = outputANW->dequeueBuffer(mOutputSurface.get(), &inputFrame.anb, &inputFrame.fenceFd); in startMuxerForInputFrame()
1136 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame()
1179 res = outputANW->queueBuffer(mOutputSurface.get(), inputFrame.anb, /*fence*/ -1); in processCompletedInputFrame()
1185 inputFrame.anb = nullptr; in processCompletedInputFrame()
1233 if (inputFrame->anb != nullptr) { in releaseInputFrameLocked()
1235 outputANW->cancelBuffer(mOutputSurface.get(), inputFrame->anb, /*fence*/ -1); in releaseInputFrameLocked()
1236 inputFrame->anb = nullptr; in releaseInputFrameLocked()
/frameworks/base/tests/SurfaceViewBufferTests/cpp/
DSurfaceProxy.cpp126 ANativeWindowBuffer* anb; in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer() local
128 int result = sAnw->dequeueBuffer(sAnw, &anb, &fenceFd); in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer()
132 sBuffers[slot] = anb; in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer()
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h883 struct ANativeWindowBuffer** anb) { in native_window_dequeue_buffer_and_wait() argument
884 return anw->dequeueBuffer_DEPRECATED(anw, anb); in native_window_dequeue_buffer_and_wait()
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp537 android_native_buffer_t *anb = NULL; in ImageWriter_dequeueImage() local
539 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage()
555 sp<GraphicBuffer> buffer(GraphicBuffer::from(anb)); in ImageWriter_dequeueImage()