[Bug 731204] androidmedia: Implement zerocopy rendering

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jun 16 03:43:00 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731204
  GStreamer | gst-plugins-bad | git

--- Comment #15 from Andoni Morales <ylatuya at gmail.com> 2014-06-16 10:42:58 UTC ---
+1 for the new meta to handle the transformation matrix.

In this particular case, the transformation matrix applies a simple translation
to remove grey strides introduced by the decoder with even widths.
But we don't really care whether it's a simple rotation, a flip or a
translation since it's just a multiplication of the texture coordinates and the
4x4 matrix. The vertex shader should look like:

static const gchar *simple_vertex_shader_str_gles2 =
      "attribute vec4 a_position;   \n"
      "attribute vec2 a_texCoord;   \n"
      "uniform mat4 trans;          \n" 
      "varying vec2 v_texCoord;     \n"
      "void main()                  \n"
      "{                            \n"
      "   gl_Position = a_position; \n"
      "   v_texCoord = (trans * vec4(a_texCoor, 0, 1)).xy; \n"
      "}                            \n";


This can be useful also for https://bugzilla.gnome.org/show_bug.cgi?id=679522

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list