mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 06:58:49 +00:00
[204/906] get ride of a bug on ATI related to YV12 to rgb conversion through GLSL and add an example
This commit is contained in:
parent
0adee75dce
commit
2f01ea128f
1 changed files with 11 additions and 2 deletions
|
@ -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
|
//So we have to set a display->hardware (ATI o/ NVIDIA) and
|
||||||
//etc...
|
//etc...
|
||||||
case GST_VIDEO_FORMAT_YV12:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
|
|
Loading…
Reference in a new issue