DRMDumbAllocator.alloc

gst.memory.Memory alloc(uint drmFourcc, uint width, uint height, out 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.

Parameters

drmFourccthe DRM format to allocate for
widthpadded width for this allocation
heightpadded height for this allocation
outPitchthe pitch as returned by the driver

Returns

a new DRM Dumb #GstMemory. Use gst_memory_unref()

to release the memory after usage.