to release the memory after usage.
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
drmFourcc | the DRM format to allocate for |
width | padded width for this allocation |
height | padded height for this allocation |
outPitch | the pitch as returned by the driver |
Returns
a new DRM Dumb #GstMemory. Use gst_memory_unref()