video: Fix scaling in 4x horizontal co-sited chroma
authorJan Schmidt <jan@centricular.com>
Fri, 22 Jul 2022 16:49:20 +0000 (02:49 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 23 Jul 2022 09:28:32 +0000 (09:28 +0000)
commit202c3bc4b1e0682bd0dfee998f2420d0c8e37392
tree3fb57a248bad1398ec109d90b8090ecf85eac32c
parent8ec0dca73bf785d068a522e68c21cca3e2c489da
video: Fix scaling in 4x horizontal co-sited chroma

4x downscaling of chroma with co-sited chroma has never worked
it seems.

Fixes incorrect videotestsrc output and videoconvert conversions
to Y41B, YUV9, YVU9 and IYU9 with co-sited chroma.

e.g.
gst-launch-1.0 videotestsrc ! video/x-raw,format=Y41B,width=1280,height=720 ! \
  videoconvert ! autovideosink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2789>
subprojects/gst-plugins-base/gst-libs/gst/video/video-chroma.c