Home
last modified time | relevance | path

Searched refs:fenceFd (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp96 int32_t fenceFd = -1; in unlock() local
97 status_t error = unlockAsync(handle, &fenceFd); in unlock()
99 sync_wait(fenceFd, -1); in unlock()
100 close(fenceFd); in unlock()
106 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) in lockAsync() argument
108 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd); in lockAsync()
113 void** vaddr, int fenceFd) in lockAsync() argument
120 asGralloc2Rect(bounds), fenceFd, vaddr); in lockAsync()
152 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument
158 asGralloc2Rect(bounds), fenceFd, &layout); in lockAsyncYCbCr()
[all …]
DGraphicBuffer.cpp269 status_t GraphicBuffer::lockAsync(uint32_t inUsage, void** vaddr, int fenceFd) in lockAsync() argument
272 status_t res = lockAsync(inUsage, lockBounds, vaddr, fenceFd); in lockAsync()
277 void** vaddr, int fenceFd) in lockAsync() argument
279 return lockAsync(inUsage, inUsage, rect, vaddr, fenceFd); in lockAsync()
283 uint64_t inConsumerUsage, const Rect& rect, void** vaddr, int fenceFd) in lockAsync() argument
293 inConsumerUsage, rect, vaddr, fenceFd); in lockAsync()
298 int fenceFd) in lockAsyncYCbCr() argument
301 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd); in lockAsyncYCbCr()
306 android_ycbcr* ycbcr, int fenceFd) in lockAsyncYCbCr() argument
316 ycbcr, fenceFd); in lockAsyncYCbCr()
[all …]
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp177 sp<GraphicBuffer> buffer, int fenceFd);
179 GraphicBuffer** buffer, int* fenceFd);
334 int fenceFd = -1; in ImageWriter_dequeueImage() local
335 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage()
360 Image_setNativeContext(env, image, buffer, fenceFd); in ImageWriter_dequeueImage()
409 int fenceFd = -1; in ImageWriter_cancelImage() local
410 Image_getNativeContext(env, image, &buffer, &fenceFd); in ImageWriter_cancelImage()
419 anw->cancelBuffer(anw.get(), buffer, fenceFd); in ImageWriter_cancelImage()
438 int fenceFd = -1; in ImageWriter_queueImage() local
439 Image_getNativeContext(env, image, &buffer, &fenceFd); in ImageWriter_queueImage()
[all …]
/frameworks/native/include/ui/
DGraphicBufferMapper.h64 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd);
68 void** vaddr, int fenceFd);
72 int fenceFd);
74 status_t unlockAsync(buffer_handle_t handle, int *fenceFd);
DGraphicBuffer.h171 status_t lockAsync(uint32_t inUsage, void** vaddr, int fenceFd);
173 int fenceFd);
175 const Rect& rect, void** vaddr, int fenceFd);
177 int fenceFd);
179 android_ycbcr *ycbcr, int fenceFd);
180 status_t unlockAsync(int *fenceFd);
/frameworks/av/media/libstagefright/omx/
DOMXNodeInstance.cpp87 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \ argument
88 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd)
89 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \ argument
91 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd)
1542 IOMX::buffer_id buffer, const OMXBuffer &omxBuffer, int fenceFd) { in fillBuffer() argument
1557 (intptr_t)header->pBuffer, header, fenceFd)); in fillBuffer()
1569 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexOutput); in fillBuffer()
1571 CLOG_ERROR(fillBuffer::storeFenceInMeta, res, EMPTY_BUFFER(buffer, header, fenceFd)); in fillBuffer()
1578 CLOG_BUMPED_BUFFER(fillBuffer, WITH_STATS(EMPTY_BUFFER(buffer, header, fenceFd))); in fillBuffer()
1583 CLOG_ERROR(fillBuffer, err, EMPTY_BUFFER(buffer, header, fenceFd)); in fillBuffer()
[all …]
DBWGraphicBufferSource.cpp42 int64_t timestamp, int fenceFd) override { in emptyBuffer()
43 return mOMXNode->emptyBuffer(bufferId, buffer, flags, timestamp, fenceFd); in emptyBuffer()
50 msg.fenceFd = -1; in dispatchDataSpaceChanged()
/frameworks/native/libs/nativewindow/
DANativeWindow.cpp182 int ANativeWindow_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in ANativeWindow_dequeueBuffer() argument
183 return window->dequeueBuffer(window, buffer, fenceFd); in ANativeWindow_dequeueBuffer()
186 int ANativeWindow_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in ANativeWindow_queueBuffer() argument
187 return window->queueBuffer(window, buffer, fenceFd); in ANativeWindow_queueBuffer()
190 int ANativeWindow_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in ANativeWindow_cancelBuffer() argument
191 return window->cancelBuffer(window, buffer, fenceFd); in ANativeWindow_cancelBuffer()
/frameworks/av/media/libmedia/
DIOMX.cpp369 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd) { in fillBuffer() argument
377 data.writeInt32(fenceFd >= 0); in fillBuffer()
378 if (fenceFd >= 0) { in fillBuffer()
379 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in fillBuffer()
388 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { in emptyBuffer() argument
398 data.writeInt32(fenceFd >= 0); in emptyBuffer()
399 if (fenceFd >= 0) { in emptyBuffer()
400 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in emptyBuffer()
429 data.writeInt32(msg.fenceFd >= 0); in dispatchMessage()
430 if (msg.fenceFd >= 0) { in dispatchMessage()
[all …]
/frameworks/native/libs/gui/
DSurface.cpp378 ANativeWindowBuffer** buffer, int* fenceFd) { in hook_dequeueBuffer() argument
380 return c->dequeueBuffer(buffer, fenceFd); in hook_dequeueBuffer()
384 ANativeWindowBuffer* buffer, int fenceFd) { in hook_cancelBuffer() argument
386 return c->cancelBuffer(buffer, fenceFd); in hook_cancelBuffer()
390 ANativeWindowBuffer* buffer, int fenceFd) { in hook_queueBuffer() argument
392 return c->queueBuffer(buffer, fenceFd); in hook_queueBuffer()
399 int fenceFd = -1; in hook_dequeueBuffer_DEPRECATED() local
400 int result = c->dequeueBuffer(&buf, &fenceFd); in hook_dequeueBuffer_DEPRECATED()
404 sp<Fence> fence(new Fence(fenceFd)); in hook_dequeueBuffer_DEPRECATED()
467 int Surface::dequeueBuffer(android_native_buffer_t** buffer, int* fenceFd) { in dequeueBuffer() argument
[all …]
/frameworks/av/media/libstagefright/include/
DOMXNodeInstance.h86 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd = -1);
90 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd = -1);
208 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd);
212 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd);
216 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd);
220 OMX_U32 flags, OMX_TICKS timestamp, intptr_t debugAddr, int fenceFd);
249 OMX_BUFFERHEADERTYPE *header, int fenceFd, OMX_U32 portIndex);
/frameworks/native/libs/hwc2on1adapter/
DMiniFence.cpp29 MiniFence::MiniFence(int fenceFd) : in MiniFence() argument
30 mFenceFd(fenceFd) { in MiniFence()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3BufferManager.h125 status_t getBufferForStream(int streamId, int streamSetId, sp<GraphicBuffer>* gb, int* fenceFd);
203 int fenceFd; member
206 fenceFd(fd) {} in graphicBuffer()
DCamera3OutputStream.cpp160 int fenceFd = -1; in getBufferLocked() local
163 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
172 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
488 status_t Camera3OutputStream::getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd) { in getBufferLockedCommon() argument
500 res = mBufferManager->getBufferForStream(getId(), getStreamSetId(), &gb, fenceFd); in getBufferLockedCommon()
540 res = currentConsumer->dequeueBuffer(currentConsumer.get(), anb, fenceFd); in getBufferLockedCommon()
738 status_t Camera3OutputStream::detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd) { in detachBuffer() argument
740 return detachBufferLocked(buffer, fenceFd); in detachBuffer()
743 status_t Camera3OutputStream::detachBufferLocked(sp<GraphicBuffer>* buffer, int* fenceFd) { in detachBufferLocked() argument
765 if (fenceFd != nullptr) { in detachBufferLocked()
[all …]
DCamera3DummyStream.cpp80 status_t Camera3DummyStream::detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd) { in detachBuffer() argument
82 (void) fenceFd; in detachBuffer()
DCamera3SharedOutputStream.cpp106 int fenceFd = -1; in getBufferLocked() local
109 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
137 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, in getBufferLocked()
DCamera3OutputStream.h160 virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd);
205 status_t getBufferLockedCommon(ANativeWindowBuffer** anb, int* fenceFd);
271 status_t detachBufferLocked(sp<GraphicBuffer>* buffer, int* fenceFd);
/frameworks/native/include/gui/
DSurface.h180 ANativeWindowBuffer* buffer, int fenceFd);
182 ANativeWindowBuffer** buffer, int* fenceFd);
186 ANativeWindowBuffer* buffer, int fenceFd);
228 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd);
229 virtual int cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd);
230 virtual int queueBuffer(ANativeWindowBuffer* buffer, int fenceFd);
/frameworks/native/libs/nativewindow/include/vndk/
Dwindow.h273 int ANativeWindow_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd);
295 int ANativeWindow_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
323 int ANativeWindow_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
/frameworks/av/media/ndk/
DNdkImageReaderPriv.h69 media_status_t acquireNextImage(/*out*/AImage** image, /*out*/int* fenceFd);
70 media_status_t acquireLatestImage(/*out*/AImage** image, /*out*/int* fenceFd);
86 media_status_t acquireImageLocked(/*out*/AImage** image, /*out*/int* fenceFd);
/frameworks/av/media/libstagefright/
DFrameRenderTracker.cpp51 ANativeWindowBuffer *buf, int fenceFd, int index) { in updateInfoForDequeuedBuffer() argument
77 if (fenceFd < 0) { in updateInfoForDequeuedBuffer()
84 renderInfo->mFence = new Fence(::dup(fenceFd)); in updateInfoForDequeuedBuffer()
/frameworks/av/include/media/
DIOMX.h157 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd = -1) = 0;
166 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd = -1) = 0;
183 int fenceFd; // used for EMPTY_BUFFER_DONE and FILL_BUFFER_DONE; client must close this member
DOMXFenceParcelable.h46 OMXFenceParcelable(int fenceFd) : mFenceFd(fenceFd) {} in OMXFenceParcelable()
/frameworks/av/media/libmedia/include/media/
DIOMX.h157 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd = -1) = 0;
166 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd = -1) = 0;
183 int fenceFd; // used for EMPTY_BUFFER_DONE and FILL_BUFFER_DONE; client must close this member
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp214 int fenceFd = -1; in render() local
215 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buf, &fenceFd); in render()
216 if (err == 0 && fenceFd >= 0) { in render()
217 info = mRenderTracker.updateInfoForDequeuedBuffer(buf, fenceFd, 0); in render()
218 sp<Fence> fence = new Fence(fenceFd); in render()

123