After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613159 - [cogcolorspace] Overflows for out-of-gamut values in YUV->RGB conversion
[cogcolorspace] Overflows for out-of-gamut values in YUV->RGB conversion
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-17 15:02 UTC by Sebastian Dröge (slomo)
Modified: 2012-10-23 07:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test.png (17.72 KB, image/png)
2010-03-17 19:06 UTC, Sebastian Dröge (slomo)
Details

Description Sebastian Dröge (slomo) 2010-03-17 15:02:30 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.
Comment 1 David Schleef 2010-03-17 18:10:16 UTC
It's *supposed* to have colorful vertical bars.
Comment 2 Sebastian Dröge (slomo) 2010-03-17 19:06:03 UTC
Created attachment 156390 [details]
test.png

Yes but not bars with between the bars that should be there ;)
Comment 3 David Schleef 2010-03-17 21:52:10 UTC
What CPU?  And what version of orc?
Comment 4 Sebastian Dröge (slomo) 2010-03-18 07:56:21 UTC
Intel Core2 Duo T8300 in 64 bit mode and 0.4.3
Comment 5 David Schleef 2010-03-19 06:30:50 UTC
Ok, took me a while, but I finally reproduced this.
Comment 6 Sebastian Dröge (slomo) 2010-04-25 09:46:24 UTC
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.
Comment 7 David Schleef 2010-04-27 02:14:53 UTC
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.
Comment 8 Tim-Philipp Müller 2012-06-09 16:28:36 UTC
Can't reproduce with videoconvert in 1.0. Can this be closed or moved to videoconvert in -base?
Comment 9 Tim-Philipp Müller 2012-10-21 18:45:58 UTC
David, Sebastian: can this be closed, or does it also need fixing in videoconvert?
Comment 10 Sebastian Dröge (slomo) 2012-10-23 07:43:13 UTC
Seems to be fixed in cogcolorspace too already. Everything's good :)