1 /* 2 * gstvaapisurface_egl.h - VA surface abstraction (EGL interop) 3 * 4 * Copyright (C) 2014 Intel Corporation 5 * Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com> 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public License 9 * as published by the Free Software Foundation; either version 2.1 10 * of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free 19 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * Boston, MA 02110-1301 USA 21 */ 22 23 #ifndef GST_VAAPI_SURFACE_EGL_H 24 #define GST_VAAPI_SURFACE_EGL_H 25 26 #include <EGL/egl.h> 27 #include <EGL/eglext.h> 28 #include <gst/vaapi/gstvaapisurface.h> 29 30 G_BEGIN_DECLS 31 32 GstVaapiSurface * 33 gst_vaapi_surface_new_from_egl_image (GstVaapiDisplay * display, 34 const GstVideoInfo * vip, EGLImageKHR image, GstVideoFormat format, 35 guint width, guint height, guint flags); 36 37 GstVaapiSurface * 38 gst_vaapi_surface_new_with_egl_image (GstVaapiDisplay * display, 39 EGLImageKHR image, GstVideoFormat format, guint width, guint height); 40 41 G_END_DECLS 42 43 #endif /* GST_VAAPI_SURFACE_EGL_H */ 44