GNOME Bugzilla – Bug 730666
gl: YUY2 conversion broken in GLES2
Last modified: 2014-05-24 13:22:58 UTC
I've tested all other formats, only one it still broken in GLES. I can reproduce on MESA and on libMALI based target. GST_GL_API=gles2 gst-launch-1.0 videotestsrc ! video/x-raw,format=YUY2 ! glimagesink And what it looks like on libMALI http://people.collabora.com/~nicolas/YUY2.png On MESA there is no ping, it's all greenish.
Another interesting fact, UYVY works.
Another note, texture_rg = 0. the error is that we use RG instead of RA when indexing. https://www.opengl.org/registry/specs/EXT/texture.txt So for UYVY it's fine, but for YUY2, we endup not reading undefined values.
Created attachment 277097 [details] [review] Fix YUY2 support with luminance_alpha texture Here's a proposed patch, it's a bit intrusive because I tried not to have to add 4 new parameters to the shaders (would have been 2 time the same, got 2 now).
Review of attachment 277097 [details] [review]: Looks good
Comment on attachment 277097 [details] [review] Fix YUY2 support with luminance_alpha texture commit a7866aa9e58d1249431a8754288231f21b141d39 Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> Date: Fri May 23 23:02:32 2014 -0400 glcolorconvert: Fix YUY2 and UYVY support with luminance_alpha https://bugzilla.gnome.org/show_bug.cgi?id=730666