va: caps: Don't use image formats for decoded frames.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 18 Sep 2021 09:03:16 +0000 (11:03 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 19 Sep 2021 20:44:58 +0000 (20:44 +0000)
commit64c4eb2def3dc9081d4674625842998b7b464527
treece27c1cb4ced50c84cd29ff5bb56bb7da1391875
parent397b0cc492f4b9d2ed53f7f662214109b3f6398f
va: caps: Don't use image formats for decoded frames.

Initially we tried to use the internal color conversion used in i965
and Gallium drivers when decoding. But this approach has showed
limitations and problems.

This patch removes completely the possible color conversion at
decoding, since it show problems with deinterlacing, for example:

gst-launch-1.0 filesrc location=interlaced.mpg2 ! parsebin ! vampeg2dec ! vadeinterlace ! xvimagesink

Allowing only the surface formats when decoding is more stable.

For color conversion is better to do it explicitly with vapostproc.

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