Skip to content

Draft: RFC: GstVideoFrame: Add flag to skip memory mapping

See !5965 (merged) for an alternative

In some cases it is desirable to us VideoFrame but not map memory. Notably when dealing with Dmabufs with modifiers, mapping the memory is not only not helpful, but can fail outright, such as when using GstVaDmabufAllocator (compare gst_va_dmabuf_mem_map()).

Thus introduce a new flag that skips memory mapping altogether for such cases, in order to avoid users to have to duplicate a lot of logic for meta data handling.


See e.g. https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6618 for an example.

cc @ndufresne @slomo

Edited by Robert Mader

Merge request reports