gl: implement GstGLMemoryEGL
authorGwang Yoon Hwang <yoon@igalia.com>
Thu, 21 Jan 2016 13:18:17 +0000 (22:18 +0900)
committerMatthew Waters <matthew@centricular.com>
Wed, 4 May 2016 02:57:27 +0000 (12:57 +1000)
commitc83fd26c80a9637803476f6605a4dae97e2fd529
tree432ebd6b836a0f9a5489360d84bc45c1d8c27f84
parent8ccf3dc589dc9cde8bc25e3b7f2d7fbc135bc2a7
gl: implement GstGLMemoryEGL

Because current GstEGLImageMemory does not inherit GstGLMemory, GLUpload
allocates additional GLMemory and upload the decoded contents from the decoder
which uses EGLImage (e.g. gst-omx in RPi).

This work adds GstGLMemoryEGL to avoid this overhead. Decoders allocate
GstGLMemoryEGL and decode its contents to the EGLImage of GstGLMemoryEGL.  And
GLUpload uses this memory without allocation of additional textures and blit
operations.

[Matthew Waters]: gst-indent the sources and fix a critical retreiving the egl
display from the memory.

https://bugzilla.gnome.org/show_bug.cgi?id=760916
gst-libs/gst/gl/egl/Makefile.am
gst-libs/gst/gl/egl/gstgldisplay_egl.c
gst-libs/gst/gl/egl/gstglmemoryegl.c [new file with mode: 0644]
gst-libs/gst/gl/egl/gstglmemoryegl.h [new file with mode: 0644]
gst-libs/gst/gl/gstgl_fwd.h
gst-libs/gst/gl/gstgldisplay.c
gst-libs/gst/gl/gstglupload.c