glvideomixer: Moves the objects to zero on z axis
authorDaniel Klamt <d.klamt@pengutronix.de>
Wed, 25 Apr 2018 14:36:21 +0000 (16:36 +0200)
committerMatthew Waters <matthew@centricular.com>
Thu, 12 Jul 2018 02:46:40 +0000 (12:46 +1000)
Matches the output from a similar glimagesink pipeline when
rotating from an upstream gltransformation passed through
the affine transformation meta with xpos/ypos being set.

https://bugzilla.gnome.org/show_bug.cgi?id=794401

ext/gl/gstglvideomixer.c

index 68f74ed..fe7915c 100644 (file)
@@ -1272,10 +1272,10 @@ _draw_checker_background (GstGLVideoMixer * video_mixer)
 
   /* *INDENT-OFF* */
   gfloat v_vertices[] = {
-    -1.0,-1.0,-1.0f,
-     1.0,-1.0,-1.0f,
-     1.0, 1.0,-1.0f,
-    -1.0, 1.0,-1.0f,
+    -1.0,-1.0, 0.0f,
+     1.0,-1.0, 0.0f,
+     1.0, 1.0, 0.0f,
+    -1.0, 1.0, 0.0f,
   };
   /* *INDENT-ON* */
 
@@ -1513,10 +1513,10 @@ gst_gl_video_mixer_callback (gpointer stuff)
 
     /* *INDENT-OFF* */
     gfloat v_vertices[] = {
-      -1.0,-1.0,-1.0f, 0.0f, 0.0f,
-       1.0,-1.0,-1.0f, 1.0f, 0.0f,
-       1.0, 1.0,-1.0f, 1.0f, 1.0f,
-      -1.0, 1.0,-1.0f, 0.0f, 1.0f,
+      -1.0,-1.0, 0.0f, 0.0f, 0.0f,
+       1.0,-1.0, 0.0f, 1.0f, 0.0f,
+       1.0, 1.0, 0.0f, 1.0f, 1.0f,
+      -1.0, 1.0, 0.0f, 0.0f, 1.0f,
     };
     /* *INDENT-ON* */