Home
last modified time | relevance | path

Searched refs:anb (Results 1 – 20 of 20) 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.cpp65 ANativeWindowBuffer* anb; in getInputBufferLocked() local
79 anb = bufferItem.mGraphicBuffer->getNativeBuffer(); in getInputBufferLocked()
80 assert(anb != NULL); in getInputBufferLocked()
87 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getInputBufferLocked()
121 ANativeWindowBuffer *anb = tmp.mGraphicBuffer->getNativeBuffer(); in returnBufferCheckedLocked() local
122 if (anb != NULL && &(anb->handle) == buffer.buffer) { in returnBufferCheckedLocked()
DCamera3SharedOutputStream.cpp80 ANativeWindowBuffer* anb, in attachBufferToSplitterLocked() argument
89 res = splitter->attachBufferToOutputs(anb, surface_ids); in attachBufferToSplitterLocked()
162 ANativeWindowBuffer* anb; in getBufferLocked() local
166 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
172 res = attachBufferToSplitterLocked(anb, surfaceIds); in getBufferLocked()
182 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
DCamera3OutputStream.cpp165 ANativeWindowBuffer* anb; in getBufferLocked() local
169 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
178 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
518 status_t Camera3OutputStream::getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd) { in getBufferLockedCommon() argument
534 *anb = gb.get(); in getBufferLockedCommon()
535 res = mConsumer->attachBuffer(*anb); in getBufferLockedCommon()
573 res = currentConsumer->dequeueBuffer(currentConsumer.get(), anb, fenceFd); in getBufferLockedCommon()
589 *anb = gb.get(); in getBufferLockedCommon()
590 res = mConsumer->attachBuffer(*anb); in getBufferLockedCommon()
DCamera3SharedOutputStream.h107 status_t attachBufferToSplitterLocked(ANativeWindowBuffer* anb,
DCamera3StreamSplitter.h83 status_t attachBufferToOutputs(ANativeWindowBuffer* anb,
DCamera3OutputStream.h245 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.cpp170 ANativeWindowBuffer* anb = NULL; in pushBlankBuffersToNativeWindow() local
219 err = native_window_dequeue_buffer_and_wait(nativeWindow, &anb); in pushBlankBuffersToNativeWindow()
226 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in pushBlankBuffersToNativeWindow()
250 anb = NULL; in pushBlankBuffersToNativeWindow()
255 if (anb != NULL) { in pushBlankBuffersToNativeWindow()
256 nativeWindow->cancelBuffer(nativeWindow, anb, -1); in pushBlankBuffersToNativeWindow()
257 anb = NULL; in pushBlankBuffersToNativeWindow()
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp253 ANativeWindowBuffer *anb; in processInputFrame() local
289 res = outputANW->dequeueBuffer(mOutputSurface.get(), &anb, &fenceFd); in processInputFrame()
296 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame()
301 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
308 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
362 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
369 outputANW->cancelBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
386 outputANW->queueBuffer(mOutputSurface.get(), anb, /*fence*/ -1); in processInputFrame()
DHeicCompositeStream.h166 ANativeWindowBuffer *anb; member
174 trackIndex(-1), anb(nullptr), appSegmentWritten(false), in InputFrame()
DHeicCompositeStream.cpp823 auto res = outputANW->dequeueBuffer(mOutputSurface.get(), &inputFrame.anb, &inputFrame.fenceFd); in startMuxerForInputFrame()
1049 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame()
1089 res = outputANW->queueBuffer(mOutputSurface.get(), inputFrame.anb, /*fence*/ -1); in processCompletedInputFrame()
1095 inputFrame.anb = nullptr; in processCompletedInputFrame()
1142 if (inputFrame->anb != nullptr) { in releaseInputFrameLocked()
1144 outputANW->cancelBuffer(mOutputSurface.get(), inputFrame->anb, /*fence*/ -1); in releaseInputFrameLocked()
1145 inputFrame->anb = nullptr; in releaseInputFrameLocked()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.cpp207 ANativeWindowBuffer* anb) { in getBufferId() argument
210 buffer_handle_t& buf = anb->handle; in getBufferId()
215 mReversedBufMap[bufId] = anb; in getBufferId()
235 ANativeWindowBuffer* anb; in dequeueBuffer() local
236 int rc = native_window_dequeue_buffer_and_wait(a, &anb); in dequeueBuffer()
243 auto pair = getBufferId(anb); in dequeueBuffer()
244 buf = (pair.first) ? anb->handle : nullptr; in dequeueBuffer()
246 stride = anb->stride; in dequeueBuffer()
DCameraHardwareInterface.h370 std::pair<bool, uint64_t> getBufferId(ANativeWindowBuffer* anb);
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h864 struct ANativeWindowBuffer** anb) { in native_window_dequeue_buffer_and_wait() argument
865 return anw->dequeueBuffer_DEPRECATED(anw, anb); in native_window_dequeue_buffer_and_wait()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp175 ANativeWindowBuffer* anb; in produceFrame() local
201 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); in produceFrame()
209 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in produceFrame()
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp476 android_native_buffer_t *anb = NULL; in ImageWriter_dequeueImage() local
478 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage()
494 sp<GraphicBuffer> buffer(GraphicBuffer::from(anb)); in ImageWriter_dequeueImage()