DRMDumbAllocator.alloc

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.

class DRMDumbAllocator
alloc
(,
uint width
,
uint height
,
out uint outPitch
)

Parameters

drmFourcc uint

the DRM format to allocate for

width uint

padded width for this allocation

height uint

padded height for this allocation

outPitch uint

the pitch as returned by the driver

Return Value

Type: gst.memory.Memory

a new DRM Dumb #GstMemory. Use gst_memory_unref() to release the memory after usage.