Searched refs:fenceFd (Results 1 - 25 of 46) sorted by relevance

12

/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3BufferManager.h125 status_t getBufferForStream(int streamId, int streamSetId, sp<GraphicBuffer>* gb, int* fenceFd);
174 int fenceFd);
197 int fenceFd; member in struct:android::camera3::Camera3BufferManager::GraphicBufferEntry
200 fenceFd(fd) {}
H A DCamera3OutputStreamInterface.h56 * buffer must be non-null; fenceFd may null, and if it is non-null, but
61 virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd) = 0;
H A DCamera3DummyStream.cpp79 status_t Camera3DummyStream::detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd) { argument
81 (void) fenceFd;
H A DCamera3DummyStream.h57 virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd);
H A DCamera3OutputStream.cpp158 int fenceFd = -1; local
163 res = mBufferManager->getBufferForStream(getId(), getStreamSetId(), &gb, &fenceFd);
202 res = currentConsumer->dequeueBuffer(currentConsumer.get(), &anb, &fenceFd);
222 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
644 status_t Camera3OutputStream::detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd) { argument
668 if (fenceFd != nullptr) {
670 *fenceFd = fence->dup();
672 *fenceFd = -1;
H A DCamera3InputStream.cpp63 int fenceFd; local
78 fenceFd = bufferItem.mFence->dup();
84 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
H A DCamera3ZslStream.cpp151 int fenceFd; local
173 fenceFd = bufferItem->getBufferItem().mFence->dup();
179 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
/frameworks/native/include/ui/
H A DGraphicBufferMapper.h52 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd);
56 int fenceFd);
58 status_t unlockAsync(buffer_handle_t handle, int *fenceFd);
H A DGraphicBuffer.h116 status_t lockAsync(uint32_t inUsage, void** vaddr, int fenceFd);
118 int fenceFd);
120 int fenceFd);
122 android_ycbcr *ycbcr, int fenceFd);
123 status_t unlockAsync(int *fenceFd);
H A DFence.h58 Fence(int fenceFd);
/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp108 int32_t fenceFd = -1; local
109 status_t error = unlockAsync(handle, &fenceFd);
111 sync_wait(fenceFd, -1);
112 close(fenceFd);
118 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd)
123 sp<Fence> fence = new Fence(fenceFd);
158 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd)
163 sp<Fence> fence = new Fence(fenceFd);
275 status_t GraphicBufferMapper::unlockAsync(buffer_handle_t handle, int *fenceFd) argument
286 *fenceFd
117 lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) argument
157 lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument
[all...]
H A DGraphicBuffer.cpp232 status_t GraphicBuffer::lockAsync(uint32_t inUsage, void** vaddr, int fenceFd) argument
235 status_t res = lockAsync(inUsage, lockBounds, vaddr, fenceFd);
240 void** vaddr, int fenceFd)
250 fenceFd);
255 int fenceFd)
258 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd);
263 android_ycbcr* ycbcr, int fenceFd)
273 ycbcr, fenceFd);
277 status_t GraphicBuffer::unlockAsync(int *fenceFd) argument
279 status_t res = getBufferMapper().unlockAsync(handle, fenceFd);
239 lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd) argument
254 lockAsyncYCbCr(uint32_t inUsage, android_ycbcr* ycbcr, int fenceFd) argument
262 lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr, int fenceFd) argument
[all...]
H A DFence.cpp41 Fence::Fence(int fenceFd) : argument
42 mFenceFd(fenceFd) {
/frameworks/native/include/gui/
H A DSurface.h155 ANativeWindowBuffer* buffer, int fenceFd);
157 ANativeWindowBuffer** buffer, int* fenceFd);
161 ANativeWindowBuffer* buffer, int fenceFd);
197 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd);
198 virtual int cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd);
199 virtual int queueBuffer(ANativeWindowBuffer* buffer, int fenceFd);
/frameworks/native/libs/gui/
H A DSurface.cpp177 ANativeWindowBuffer** buffer, int* fenceFd) {
179 return c->dequeueBuffer(buffer, fenceFd);
183 ANativeWindowBuffer* buffer, int fenceFd) {
185 return c->cancelBuffer(buffer, fenceFd);
189 ANativeWindowBuffer* buffer, int fenceFd) {
191 return c->queueBuffer(buffer, fenceFd);
198 int fenceFd = -1; local
199 int result = c->dequeueBuffer(&buf, &fenceFd);
203 sp<Fence> fence(new Fence(fenceFd));
266 int Surface::dequeueBuffer(android_native_buffer_t** buffer, int* fenceFd) { argument
176 hook_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) argument
182 hook_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) argument
188 hook_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) argument
360 cancelBuffer(android_native_buffer_t* buffer, int fenceFd) argument
406 queueBuffer(android_native_buffer_t* buffer, int fenceFd) argument
1253 int fenceFd = -1; local
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp177 sp<GraphicBuffer> buffer, int fenceFd);
179 GraphicBuffer** buffer, int* fenceFd);
328 int fenceFd = -1; local
329 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd);
354 Image_setNativeContext(env, image, buffer, fenceFd);
403 int fenceFd = -1; local
404 Image_getNativeContext(env, image, &buffer, &fenceFd);
413 anw->cancelBuffer(anw.get(), buffer, fenceFd);
432 int fenceFd = -1; local
433 Image_getNativeContext(env, image, &buffer, &fenceFd);
580 Image_getNativeContext(JNIEnv* env, jobject thiz, GraphicBuffer** buffer, int* fenceFd) argument
595 Image_setNativeContext(JNIEnv* env, jobject thiz, sp<GraphicBuffer> buffer, int fenceFd) argument
681 Image_setFenceFd(JNIEnv* env, jobject thiz, int fenceFd) argument
689 int fenceFd = -1; local
[all...]
H A Dandroid_media_Utils.h133 const Rect& rect, int fenceFd, LockedImage* outputImage);
136 int fenceFd, LockedImage* outputImage);
/frameworks/av/media/libstagefright/
H A DFrameRenderTracker.cpp51 ANativeWindowBuffer *buf, int fenceFd, int index) {
77 if (fenceFd < 0) {
84 renderInfo->mFence = new Fence(::dup(fenceFd));
50 updateInfoForDequeuedBuffer( ANativeWindowBuffer *buf, int fenceFd, int index) argument
/frameworks/av/media/libstagefright/omx/
H A DOMXNodeInstance.cpp81 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \
82 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd)
83 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \
85 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd)
1400 status_t OMXNodeInstance::fillBuffer(OMX::buffer_id buffer, int fenceFd) { argument
1412 // meta now owns fenceFd
1413 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexOutput);
1415 CLOG_ERROR(fillBuffer::storeFenceInMeta, res, EMPTY_BUFFER(buffer, header, fenceFd));
1422 CLOG_BUMPED_BUFFER(fillBuffer, WITH_STATS(EMPTY_BUFFER(buffer, header, fenceFd)));
1427 CLOG_ERROR(fillBuffer, err, EMPTY_BUFFER(buffer, header, fenceFd));
1434 emptyBuffer( OMX::buffer_id buffer, OMX_U32 rangeOffset, OMX_U32 rangeLength, OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) argument
1503 storeFenceInMeta_l( OMX_BUFFERHEADERTYPE *header, int fenceFd, OMX_U32 portIndex) argument
1529 int fenceFd = -1; local
1546 emptyBuffer_l( OMX_BUFFERHEADERTYPE *header, OMX_U32 flags, OMX_TICKS timestamp, intptr_t debugAddr, int fenceFd) argument
1587 emptyGraphicBuffer( OMX_BUFFERHEADERTYPE *header, const sp<GraphicBuffer> &graphicBuffer, OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) argument
1934 int fenceFd = instance->retrieveFenceFromMeta_l(pBuffer, kPortIndexOutput); local
1952 int fenceFd = instance->retrieveFenceFromMeta_l(pBuffer, kPortIndexOutput); local
[all...]
H A DOMX.cpp584 status_t OMX::fillBuffer(node_id node, buffer_id buffer, int fenceFd) { argument
591 return instance->fillBuffer(buffer, fenceFd);
598 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) {
606 buffer, range_offset, range_length, flags, timestamp, fenceFd);
668 msg.fenceFd = -1;
680 msg.fenceFd = -1;
691 node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd) {
697 msg.fenceFd = fenceFd;
706 node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd) {
594 emptyBuffer( node_id node, buffer_id buffer, OMX_U32 range_offset, OMX_U32 range_length, OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) argument
690 OnEmptyBufferDone( node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd) argument
705 OnFillBufferDone( node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd) argument
[all...]
/frameworks/av/media/libstagefright/include/
H A DOMX.h127 virtual status_t fillBuffer(node_id node, buffer_id buffer, int fenceFd);
133 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd);
159 node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd);
162 node_id node, buffer_id buffer, OMX_IN OMX_BUFFERHEADERTYPE *pBuffer, int fenceFd);
H A DOMXNodeInstance.h114 status_t fillBuffer(OMX::buffer_id buffer, int fenceFd);
119 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd);
123 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd);
239 // otherwise, waits for the fence to signal. Takes ownership of |fenceFd|.
241 OMX_BUFFERHEADERTYPE *header, int fenceFd, OMX_U32 portIndex);
249 OMX_U32 flags, OMX_TICKS timestamp, intptr_t debugAddr, int fenceFd);
/frameworks/av/include/media/stagefright/
H A DFrameRenderTracker.h101 // |fenceFd| is the dequeue fence, and |index| is a positive buffer ID to be usable by the
105 Info *updateInfoForDequeuedBuffer(ANativeWindowBuffer *buf, int fenceFd, int index);
/frameworks/native/libs/gui/tests/
H A DSurface_test.cpp194 int fenceFd; local
197 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fenceFd));
198 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffer, fenceFd));
214 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fenceFd));
/frameworks/av/include/media/
H A DIOMX.h167 // Calls OMX_FillBuffer on buffer, and passes |fenceFd| to component if it supports
168 // fences. Otherwise, it waits on |fenceFd| before calling OMX_FillBuffer.
169 // Takes ownership of |fenceFd| even if this call fails.
170 virtual status_t fillBuffer(node_id node, buffer_id buffer, int fenceFd = -1) = 0;
173 // |range_length|, |flags| and |timestamp|). Passes |fenceFd| to component if it
174 // supports fences. Otherwise, it waits on |fenceFd| before calling OMX_EmptyBuffer.
175 // Takes ownership of |fenceFd| even if this call fails.
180 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd = -1) = 0;
214 int fenceFd; // used for EMPTY_BUFFER_DONE and FILL_BUFFER_DONE; client must close this member in struct:android::omx_message

Completed in 252 milliseconds

12