vapostproc: Color fixation will choose othercaps' structure.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 27 Oct 2021 09:54:09 +0000 (11:54 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 27 Oct 2021 18:01:50 +0000 (18:01 +0000)
commitcf3d271cdef523492fbbe6ec09ace486f8aaa77e
treeba11ce4fdd3ff6ee2bc08b700f57fc8eaa06f660
parentbc6a7a63f07b4e71172004af0478f56a4483605f
vapostproc: Color fixation will choose othercaps' structure.

gst_va_fixate_format() will iterate all othercaps' structures to find
the one with less information lost at color conversion. If a structure
with same color format is found, the iteration stops. It's like a
smart truncation. Then, this function also will choose the caps
feature.

Later this structure is used fixate its size and no further truncation
is needed.

Don't intersect at fixate, since it kills possible resizing.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1261>
subprojects/gst-plugins-bad/sys/va/gstvavpp.c