alloc
Description:
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 |