GNOME Bugzilla – Bug 594599
videobox: converts AYUV to I420 incorrectly
Last modified: 2009-11-26 13:08:04 UTC
gst-launch videotestsrc ! video/x-raw-yuv,format=\(fourcc\)AYUV ! videobox ! video/x-raw-yuv,format=\(fourcc\)I420 ! xvimagesink This pipeline gives a vts image that is darker than the original. I was unable to find any other format pairs that also failed, so I'm guessing the brokenness is somewhere in the AYUV->I420 conversion.
confirmed, I'll take a look at it.
Also the snow in the right bottom is a bit green ;)
commit 1262476f42fb80a73e7ed379ad52d8a51419d9e0 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Wed Sep 9 16:02:03 2009 +0200 videobox: Fix AYUV->I420 conversion For this fix the averaging of the chroma values. It should't be (a/2 + b)/2 but just (a + b)/2. Fixes bug #594599.
*** Bug 602463 has been marked as a duplicate of this bug. ***