projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0adee75
)
[204/906] get ride of a bug on ATI related to YV12 to rgb conversion through GLSL...
author
Julien Isorce
<julien.isorce@gmail.com>
Wed, 20 Aug 2008 13:47:51 +0000
(15:47 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:18 +0000
(19:31 +0000)
gst-libs/gst/gl/gstgldisplay.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstgldisplay.c
b/gst-libs/gst/gl/gstgldisplay.c
index 147ab7de8da19370243ed8c48bed2a318a3994cd..4aa6488c5d6362f689a82b05b685da4f6813f58e 100644
(file)
--- 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 ();