mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
301e281777
This is a simplification of the venerable gst_va_base_dec_get_preferred_format_and_caps_features() function, which predates since gstreamer-vaapi. It's used to select the format and the capsfeature to use when setting the output state. It was complex and hard to follow. This refactor simplifies a lot the algorithm. The first thing to remove _downstream_has_video_meta() since, most of the time it will be called before the caps negotiation, and allocation queries make sense only after caps negotiation. It might work during renegotiation but, in that case, caps feature change is uncommon. Better a simple and common approach. Also, for performance, instead of dealing with caps features as strings, GQuarks are used. The refactor works like this: 1. If peer pad returns any caps, the returned caps feature is system memory and looks for a proper format in the allowed caps. 2. The allowed caps are traversed at most 3 times: one per each valid caps feature. First VAMemory, later DMABuf, and last system memory. The first to match in allowed caps is picked, and the first format matching with the chroma is picked too. Notice that, right now, using playbin videoconvert never return any. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6154> |
||
---|---|---|
.. | ||
gstjpegdecoder.c | ||
gstjpegdecoder.h | ||
gstvaav1dec.c | ||
gstvaav1dec.h | ||
gstvaav1enc.c | ||
gstvaav1enc.h | ||
gstvabase.c | ||
gstvabase.h | ||
gstvabasedec.c | ||
gstvabasedec.h | ||
gstvabaseenc.c | ||
gstvabaseenc.h | ||
gstvabasetransform.c | ||
gstvabasetransform.h | ||
gstvacaps.c | ||
gstvacaps.h | ||
gstvacompositor.c | ||
gstvacompositor.h | ||
gstvadecoder.c | ||
gstvadecoder.h | ||
gstvadeinterlace.c | ||
gstvadeinterlace.h | ||
gstvadevice.h | ||
gstvadevice_linux.c | ||
gstvadevice_win32.cpp | ||
gstvadisplay_priv.c | ||
gstvadisplay_priv.h | ||
gstvaencoder.c | ||
gstvaencoder.h | ||
gstvafilter.c | ||
gstvafilter.h | ||
gstvah264dec.c | ||
gstvah264dec.h | ||
gstvah264enc.c | ||
gstvah264enc.h | ||
gstvah265dec.c | ||
gstvah265dec.h | ||
gstvah265enc.c | ||
gstvah265enc.h | ||
gstvajpegdec.c | ||
gstvajpegdec.h | ||
gstvampeg2dec.c | ||
gstvampeg2dec.h | ||
gstvapluginutils.c | ||
gstvapluginutils.h | ||
gstvaprofile.c | ||
gstvaprofile.h | ||
gstvavp8dec.c | ||
gstvavp8dec.h | ||
gstvavp9dec.c | ||
gstvavp9dec.h | ||
gstvavpp.c | ||
gstvavpp.h | ||
meson.build | ||
plugin.c | ||
vacompat.h |