DRMDumbAllocator

Private intance object for #GstDRMDumbAllocator.

Members

Functions

alloc
gst.memory.Memory alloc(uint drmFourcc, uint width, uint height, uint outPitch)

Allocated a DRM buffer object for the specific drm_fourcc, width and height. Note that the DRM Dumb allocation interface is agnostic to the pixel format. This drm_fourcc is converted into a bpp (bit-per-pixel) number and the height is scaled according to the sub-sampling.

hasPrimeExport
bool hasPrimeExport()

This function allow verifying if the driver support dma-buf exportation.

Static functions

newWithDevicePath
gstallocators.drmdumb_allocator.DRMDumbAllocator newWithDevicePath(string drmDevicePath)

Creates a new #GstDRMDumbAllocator for the specific device path. This function can fail if the path does not exist, is not a DRM device or if the DRM device doesnot support DUMB allocation.

newWithFd
gstallocators.drmdumb_allocator.DRMDumbAllocator newWithFd(int drmFd)

Creates a new #GstDRMDumbAllocator for the specific file desciptor. This function can fail if the file descriptor is not a DRM device or if the DRM device does not support DUMB allocation.

Inherited Members

From Allocator

find
gst.allocator.Allocator find(string name)

Find a previously registered allocator with name. When name is null, the default allocator will be returned.

register
void register(string name, gst.allocator.Allocator allocator)

Registers the memory allocator with name.

alloc
gst.memory.Memory alloc(size_t size, gst.allocation_params.AllocationParams params)

Use allocator to allocate a new memory block with memory that is at least size big.

setDefault
void setDefault()

Set the default allocator.