GNOME Bugzilla – Bug 613159
[cogcolorspace] Overflows for out-of-gamut values in YUV->RGB conversion
Last modified: 2012-10-23 07:43:13 UTC
The following pipeline produces video frames with colorful vertical bars: gst-launch-0.10 -v videotestsrc ! "video/x-raw-yuv,format=(GstFourcc)I420" ! cogcolorspace ! "video/x-raw-rgb" ! ximagesink This happens for all YUV formats I tested so far.
It's *supposed* to have colorful vertical bars.
Created attachment 156390 [details] test.png Yes but not bars with between the bars that should be there ;)
What CPU? And what version of orc?
Intel Core2 Duo T8300 in 64 bit mode and 0.4.3
Ok, took me a while, but I finally reproduced this.
Seems to be almost fixed by using orc 0.4.4. There's only a black vertical bar right of the cyan bar and before the white noise rectangle and at the right border. These disappear, depending on the frame size.
That vertical line is courtesy of an overflow in the YUV->RGB conversion matrix. In-gamut YUV values don't cause an overflow, but at this particular edge, the chroma upsampling creates an out-of-gamut value. This should not occur with normal video, so I'm not in a hurry to fix it. But it needs to be fixed eventually.
Can't reproduce with videoconvert in 1.0. Can this be closed or moved to videoconvert in -base?
David, Sebastian: can this be closed, or does it also need fixing in videoconvert?
Seems to be fixed in cogcolorspace too already. Everything's good :)