egl: allow for EGLImage imports into VA Surfaces.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Dec 2014 17:14:56 +0000 (18:14 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 24 Feb 2015 14:20:03 +0000 (15:20 +0100)
commita9fe79610a6b3529f60ba0392c31fefacb6d5f45
tree49c94997633ddc074b78e3f6960087ca6989652f
parent1e7c4db5a740df7b68547c091148dc27f80388d7
egl: allow for EGLImage imports into VA Surfaces.

Add helpers to import EGLImage objects into VA surfaces. There are
two operational modes: (i) gst_vaapi_surface_new_from_egl_image(),
which allows for implicit conversion from EGLImage to a VA surface
in native video format, and (ii) gst_vaapi_surface_new_with_egl_image(),
which exactly wraps the source EGLImage, typically in RGBA format
with linear storage.

Note: in case of (i), the EGLImage can be disposed right after the
VA surface creation call, unlike in (ii) where the user shall ensure
that the EGLImage is live until the associated VA surface is no longer
needed.

https://bugzilla.gnome.org/show_bug.cgi?id=743847
gst-libs/gst/vaapi/Makefile.am
gst-libs/gst/vaapi/gstvaapisurface_egl.c [new file with mode: 0644]
gst-libs/gst/vaapi/gstvaapisurface_egl.h [new file with mode: 0644]