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()
129 ANativeWindowBuffer *anb = tmp.mGraphicBuffer->getNativeBuffer(); in returnBufferCheckedLocked() local
130 if (anb != NULL && &(anb->handle) == buffer.buffer) { in returnBufferCheckedLocked()
DCamera3SharedOutputStream.cpp81 ANativeWindowBuffer* anb, in attachBufferToSplitterLocked() argument
90 res = splitter->attachBufferToOutputs(anb, surface_ids); in attachBufferToSplitterLocked()
163 ANativeWindowBuffer* anb; in getBufferLocked() local
167 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
173 res = attachBufferToSplitterLocked(anb, surfaceIds); in getBufferLocked()
183 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
DCamera3OutputStream.cpp180 ANativeWindowBuffer* anb; in getBufferLocked() local
184 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
193 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
604 status_t Camera3OutputStream::getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd) { in getBufferLockedCommon() argument
621 *anb = gb.get(); in getBufferLockedCommon()
622 res = mConsumer->attachBuffer(*anb); in getBufferLockedCommon()
666 res = anw->dequeueBuffer(anw.get(), anb, fenceFd); in getBufferLockedCommon()
694 *anb = mBatchedBuffers.back().buffer; in getBufferLockedCommon()
716 *anb = gb.get(); in getBufferLockedCommon()
717 res = mConsumer->attachBuffer(*anb); in getBufferLockedCommon()
DCamera3SharedOutputStream.h114 status_t attachBufferToSplitterLocked(ANativeWindowBuffer* anb,
DCamera3StreamSplitter.h83 status_t attachBufferToOutputs(ANativeWindowBuffer* anb,
DCamera3OutputStream.h266 status_t getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd);
DCamera3StreamSplitter.cpp413 status_t Camera3StreamSplitter::attachBufferToOutputs(ANativeWindowBuffer* anb, in attachBufferToOutputs() argument
420 sp<GraphicBuffer> gb(static_cast<GraphicBuffer*>(anb)); in attachBufferToOutputs()
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp196 ANativeWindowBuffer* anb = NULL; in pushBlankBuffersToNativeWindow() local
245 err = native_window_dequeue_buffer_and_wait(nativeWindow, &anb); in pushBlankBuffersToNativeWindow()
252 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in pushBlankBuffersToNativeWindow()
276 anb = NULL; in pushBlankBuffersToNativeWindow()
281 if (anb != NULL) { in pushBlankBuffersToNativeWindow()
282 nativeWindow->cancelBuffer(nativeWindow, anb, -1); in pushBlankBuffersToNativeWindow()
283 anb = NULL; in pushBlankBuffersToNativeWindow()
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp247 ANativeWindowBuffer *anb; in processInputFrame() local
292 res = outputANW->dequeueBuffer(mOutputSurface.get(), &anb, &fenceFd); in processInputFrame()
299 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame()
304 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
311 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
365 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
372 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
389 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.cpp911 auto res = outputANW->dequeueBuffer(mOutputSurface.get(), &inputFrame.anb, &inputFrame.fenceFd); in startMuxerForInputFrame()
1131 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame()
1171 res = outputANW->queueBuffer(mOutputSurface.get(), inputFrame.anb, /*fence*/ -1); in processCompletedInputFrame()
1177 inputFrame.anb = nullptr; in processCompletedInputFrame()
1225 if (inputFrame->anb != nullptr) { in releaseInputFrameLocked()
1227 outputANW->cancelBuffer(mOutputSurface.get(), inputFrame->anb, /*fence*/ -1); in releaseInputFrameLocked()
1228 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.cpp520 android_native_buffer_t *anb = NULL; in ImageWriter_dequeueImage() local
522 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage()
538 sp<GraphicBuffer> buffer(GraphicBuffer::from(anb)); in ImageWriter_dequeueImage()