gstallocators.global

Global functions for gstallocators1 library

Functions 9

fnint dmabufMemoryGetFd(gst.memory.Memory mem) nothrowReturn the file descriptor associated with mem.
fngst.memory.Memory drmDumbMemoryExportDmabuf(gst.memory.Memory mem) nothrowExports a DMABuf from the DRM Bumb buffer object. One can check if this feature is supported using [gstallocators.drmdumb_allocator.DRMDumbAllocator.hasPrimeExport];
fnuint drmDumbMemoryGetHandle(gst.memory.Memory mem) nothrowReturn the DRM buffer object handle associated with mem.
fnint fdMemoryGetFd(gst.memory.Memory mem) nothrowGet the fd from mem. Call [gstallocators.global.isFdMemory] to check if mem has an fd.
fnbool isDmabufMemory(gst.memory.Memory mem) nothrowCheck if mem is dmabuf memory.
fnbool isFdMemory(gst.memory.Memory mem) nothrowCheck if mem is memory backed by an fd
fnbool isPhysMemory(gst.memory.Memory mem) nothrow