gl: initial support for texture targets other than GL_TEXTURE_2D
authorAlessandro Decina <alessandro.d@gmail.com>
Tue, 27 Jan 2015 13:13:46 +0000 (00:13 +1100)
committerAlessandro Decina <alessandro.d@gmail.com>
Thu, 29 Jan 2015 13:34:08 +0000 (00:34 +1100)
commit4860e179fa624daba8d1d4a3db04bed0e3a646fa
treee76f3b6fe545c02b180d156489fbc7c7f40f1137
parent490444637f98702fa49461d89e2dd019673cce52
gl: initial support for texture targets other than GL_TEXTURE_2D

Make GstGLMemory hold the texture target (tex_target) the texture it represents
(tex_id) is bound to. Modify gst_gl_memory_wrapped_texture and
gst_gl_download_perform_with_data to take the texture target as an argument.

This change is needed to support wrapping textures created outside libgstgl,
which might be bound to a target other than GL_TEXTURE_2D. For example on OSX
textures coming from VideoToolbox have target GL_TEXTURE_RECTANGLE.

With this change we still keep (and sometimes imply) GL_TEXTURE_2D as the
target of textures created with libgstgl.

API: modify GstGLMemory
API: modify gst_gl_memory_wrapped_texture
API: gst_gl_download_perform_with_data
ext/gl/gstglmixer.c