Skip to content

v4l2codecs: decoder: Translate V4L2 formats into DRM fourcc/mod pairs

V4L2 and DRM choose different, incompatible ways to represent tiled/compressed etc. formats. While the later uses combinations of format fourccs and opaque, vendor/hardware specific modifiers, for the later every such combination is a distinct new format.

Traditionally Gst implemented each of the V4L2 formats if needed. Given the large number of tiling and compression modes, this is quite work intensive - and often actually not needed. In many situations Gst just needs to pass buffers from V4L2 to DRM in the form of EGL, VK, Wayland or KMS.

Thus implement a direct translation for some V4L2 formats to DRM ones, limited to the DMA_DRM API, allowing much quicker enablement of formats while requiring peers to use external implementations (usually Mesa or KMS) for tiling etc.


Includes v4l2codecs: Use GstVideoInfoDmaDrm more consist... (!8028 - merged)

Related:

NC30/P030 test branch: https://gitlab.freedesktop.org/rmader/gstreamer/-/commits/v4l2sl-drm-format-translation-p030

Edited by Robert Mader

Merge request reports

Loading