From: Julien Isorce Date: Wed, 20 Aug 2008 13:47:51 +0000 (+0200) Subject: [204/906] get ride of a bug on ATI related to YV12 to rgb conversion through GLSL... X-Git-Tag: 1.19.3~511^2~1989^2~2121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f01ea128fe1114285483b4ef8d824b6b880ba9d;p=platform%2Fupstream%2Fgstreamer.git [204/906] get ride of a bug on ATI related to YV12 to rgb conversion through GLSL and add an example --- diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index 147ab7de8d..4aa6488c5d 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -2425,8 +2425,17 @@ gst_gl_display_thread_do_upload_fill (GstGLDisplay *display) //So we have to set a display->hardware (ATI o/ NVIDIA) and //etc... case GST_VIDEO_FORMAT_YV12: - offsetU = 2; - offsetV = 1; + + if (g_ascii_strncasecmp ("ATI", (gchar *) glGetString (GL_VENDOR), 3) == 0) + { + offsetU = 2; + offsetV = 1; + } + else + { + offsetU = 1; + offsetV = 2; + } break; default: g_assert_not_reached ();