gstallocators.global

Global functions for gstallocators1 library

Functions 9

fnint dmabufMemoryGetFd(gst.memory.Memory mem)Return the file descriptor associated with mem.
fngst.memory.Memory drmDumbMemoryExportDmabuf(gst.memory.Memory mem)Exports 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)Return the DRM buffer object handle associated with mem.
fnint fdMemoryGetFd(gst.memory.Memory mem)Get the fd from mem. Call [gstallocators.global.isFdMemory] to check if mem has an fd.
fnbool isDmabufMemory(gst.memory.Memory mem)Check if mem is dmabuf memory.
fnbool isFdMemory(gst.memory.Memory mem)Check if mem is memory backed by an fd