Skip to content

v4l2codecs: decoders: Add DMA_DRM caps support

Robert Mader requested to merge rmader/gstreamer:v4l2coders-dmadrm into main

From the main commit:

In order to simplify caps negotiations for clients and, notably, be more
compatible with va* decoders.
Crucially this allows clients to know ahead of time whether buffers will
actually be DMABufs.

Similar to GstVaBaseDec we only announce system memory caps if the peer
has ANY caps. Further more, and again like va decoders, we fail in
`decide_allocation()` if DMA_DRM caps are used without VideoMeta.
Apart from buggy peers this can happen e.g. when a peer with ANY caps
is used in combination with caps filters.

Related:

Edited by Robert Mader

Merge request reports