/frameworks/av/include/media/ |
IOMX.h | 167 // 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
|
/frameworks/av/media/libstagefright/omx/ |
OMX.cpp | 584 status_t OMX::fillBuffer(node_id node, buffer_id buffer, int fenceFd) { 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) { [all...] |
GraphicBufferSource.h | 101 void codecBufferEmptied(OMX_BUFFERHEADERTYPE* header, int fenceFd);
|
GraphicBufferSource.cpp | 327 void GraphicBufferSource::codecBufferEmptied(OMX_BUFFERHEADERTYPE* header, int fenceFd) { 337 if (fenceFd >= 0) { 338 ::close(fenceFd); 361 if (fenceFd >= 0) { 362 ::close(fenceFd); 397 sp<Fence> fence = new Fence(fenceFd); 902 0 /* timestamp */, -1 /* fenceFd */); [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
Camera3InputStream.cpp | 63 int fenceFd; 78 fenceFd = bufferItem.mFence->dup(); 81 * FenceFD now owned by HAL except in case of error, 84 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
|
Camera3ZslStream.cpp | 151 int fenceFd; 173 fenceFd = bufferItem->getBufferItem().mFence->dup(); 176 * FenceFD now owned by HAL except in case of error, 179 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd,
|
Camera3BufferManager.cpp | 178 sp<GraphicBuffer>* gb, int* fenceFd) { 222 buffer.fenceFd = -1; 246 *fenceFd = buffer.fenceFd; 307 stream->detachBuffer(&buffer, /*fenceFd*/ nullptr); 359 int streamSetId, const sp<GraphicBuffer>& buffer, int fenceFd) { 380 entry.add(streamId, GraphicBufferEntry(buffer, fenceFd));
|
Camera3OutputStream.h | 159 virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd);
|
/frameworks/av/media/libstagefright/colorconversion/ |
SoftwareRenderer.cpp | 212 int fenceFd = -1; 213 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buf, &fenceFd); 214 if (err == 0 && fenceFd >= 0) { 215 info = mRenderTracker.updateInfoForDequeuedBuffer(buf, fenceFd, 0); 216 sp<Fence> fence = new Fence(fenceFd);
|
/frameworks/av/media/libstagefright/ |
OMXClient.cpp | 143 virtual status_t fillBuffer(node_id node, buffer_id buffer, int fenceFd); 149 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd); 466 status_t MuxOMX::fillBuffer(node_id node, buffer_id buffer, int fenceFd) { 467 return getOMX(node)->fillBuffer(node, buffer, fenceFd); 474 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { 476 node, buffer, range_offset, range_length, flags, timestamp, fenceFd);
|
ACodec.cpp | 163 msg->setInt32("fence_fd", omx_msg.fenceFd); 184 "fence_fd", omx_msg.fenceFd); 251 bool onOMXEmptyBufferDone(IOMX::buffer_id bufferID, int fenceFd); 258 int fenceFd); 464 void ACodec::BufferInfo::setWriteFence(int fenceFd, const char *dbg) { 467 mIsReadFence ? "read" : "write", mFenceFd, fenceFd, dbg); 469 mFenceFd = fenceFd; 473 void ACodec::BufferInfo::setReadFence(int fenceFd, const char *dbg) { 476 mIsReadFence ? "read" : "write", mFenceFd, fenceFd, dbg); 478 mFenceFd = fenceFd; [all...] |
/system/core/include/system/ |
window.h | 561 * fenceFd argument will refer to the fence that must signal before the 570 struct ANativeWindowBuffer** buffer, int* fenceFd); 582 * The fenceFd argument specifies a libsync fence file descriptor for a 592 struct ANativeWindowBuffer* buffer, int fenceFd); 606 * The fenceFd argument specifies a libsync fence file decsriptor for a 620 struct ANativeWindowBuffer* buffer, int fenceFd); [all...] |
/frameworks/av/media/libmedia/ |
IOMX.cpp | 552 virtual status_t fillBuffer(node_id node, buffer_id buffer, int fenceFd) { 557 data.writeInt32(fenceFd >= 0); 558 if (fenceFd >= 0) { 559 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); 570 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) { 579 data.writeInt32(fenceFd >= 0); 580 if (fenceFd >= 0) { 581 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); [all...] |
/frameworks/native/libs/ui/ |
Gralloc1On0Adapter.cpp | 435 int fenceFd = -1; 437 &fenceFd); 439 close(fenceFd); 442 *outReleaseFence = new Fence(fenceFd);
|
Gralloc1.cpp | 266 int32_t fenceFd = -1; 267 int32_t intError = mFunctions.unlock(mDevice, buffer, &fenceFd); 270 *outFence = new Fence(fenceFd);
|
/frameworks/native/libs/gui/ |
GLConsumer.cpp | 703 int fenceFd = eglDupNativeFenceFDANDROID(dpy, sync); 705 if (fenceFd == EGL_NO_NATIVE_FENCE_FD_ANDROID) { 710 sp<Fence> fence(new Fence(fenceFd)); [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
HWC2On1Adapter.h | 140 void add(int32_t fenceFd) { 141 mFences.emplace(new Fence(fenceFd)); 159 void setFence(int fenceFd) { mFence = new Fence(fenceFd); } 238 void addRetireFence(int fenceFd); 533 void addReleaseFence(int fenceFd);
|
HWC2.cpp | 805 int32_t fenceFd = acquireFence->dup(); 807 fenceFd, static_cast<int32_t>(dataspace), {0, nullptr}); 828 int32_t fenceFd = releaseFence->dup(); 831 fenceFd); 832 close(fenceFd); 981 int32_t fenceFd = acquireFence->dup(); 983 mId, buffer, fenceFd); [all...] |
HWComposer_hwc1.h | 176 virtual void setAcquireFenceFd(int fenceFd) = 0;
|
/frameworks/base/media/jni/ |
android_media_Utils.cpp | 856 const Rect& rect, int fenceFd, LockedImage* outputImage) { 874 res = buffer->lockAsyncYCbCr(inUsage, rect, &ycbcr, fenceFd); 881 res = buffer->lockAsync(inUsage, rect, &pData, fenceFd); 907 int fenceFd, LockedImage* outputImage) { 915 fenceFd, outputImage);
|
android_media_ImageReader.cpp | 442 int fenceFd = -1; 444 res = buffer->mGraphicBuffer->unlockAsync(&fenceFd); 450 sp<Fence> releaseFence = new Fence(fenceFd);
|
/frameworks/av/include/media/stagefright/ |
ACodec.h | 205 // Store |fenceFd| and set read/write flag. Log error, if there is already a fence stored. 206 void setReadFence(int fenceFd, const char *dbg); 207 void setWriteFence(int fenceFd, const char *dbg); 526 // |fenceFd| is the dequeue fence, and |info| points to the buffer info where this buffer is 529 ANativeWindowBuffer *buf, int fenceFd, BufferInfo *info);
|
/hardware/intel/common/libmix/videoencoder/ |
VideoEncoderUtils.cpp | 164 int fenceFd; 165 err = gAllocMod->perform(gAllocMod, GRALLOC_MODULE_BLIT_HANDLE_TO_HANDLE_IMG, src, dest, w, h, 0, 0, 0, -1, &fenceFd); 167 sync_wait(fenceFd, -1); 168 close(fenceFd);
|
/hardware/intel/img/hwcomposer/merrifield/common/devices/ |
VirtualDevice.cpp | 59 static void my_close_fence(const char* func, const char* fenceName, int& fenceFd) 61 if (fenceFd != -1) { 62 ALOGV("%s: closing fence %s (fd=%d)", func, fenceName, fenceFd); 63 int err = close(fenceFd); 67 fenceFd = -1; 71 static void my_sync_wait_and_close(const char* func, const char* fenceName, int& fenceFd) 73 if (fenceFd != -1) { 74 ALOGV("%s: waiting on fence %s (fd=%d)", func, fenceName, fenceFd); 75 int err = sync_wait(fenceFd, 300); 79 my_close_fence(func, fenceName, fenceFd); [all...] |
/frameworks/native/opengl/libagl/ |
egl.cpp | 373 int fenceFd = -1; 375 &fenceFd) != NO_ERROR) { 380 sp<Fence> fence(new Fence(fenceFd)); 382 nativeWindow->cancelBuffer(nativeWindow, buffer, fenceFd); 528 int fenceFd = -1; 529 if (nativeWindow->dequeueBuffer(nativeWindow, &buffer, &fenceFd) == NO_ERROR) { 530 sp<Fence> fence(new Fence(fenceFd)); 532 nativeWindow->cancelBuffer(nativeWindow, buffer, fenceFd); [all...] |