plugins: check if negotiate dmabuf with downstream
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 2 Jun 2016 20:13:51 +0000 (22:13 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 2 Feb 2017 19:33:36 +0000 (20:33 +0100)
commit37b774393413aec9c444bc45f08be2bf385e3be2
tree482063a5db587587cf668182070160e01b1c6b59
parent33af1fc5786a179a22ecb9c43021ddd24c382263
plugins: check if negotiate dmabuf with downstream

In order to enable, in the future, dmabuf-based buffers, the vaapi base
plugin needs to check if downstream can import dmabuf buffers.

This patch checks if downstream can handle dmabuf, by introspecting the
shared GL context. If the GL context is EGL/GLES2 and have the extension
EGL_EXT_image_dma_buf_import, then dmabuf can be negotiated.

Original-patch-by: Julien Isorce <j.isorce@samsung.com>
gst/vaapi/gstvaapipluginbase.c
gst/vaapi/gstvaapipluginbase.h