alloc


Description:

public Memory alloc (uint32 drm_fourcc, uint32 width, uint32 height, out uint32 out_pitch)

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:

this

the allocator instance

drm_fourcc

the DRM format to allocate for

width

padded width for this allocation

height

padded height for this allocation

out_pitch

the pitch as returned by the driver

Returns:

a new DRM Dumb Memory. Use gst_memory_unref to release the memory after usage.