OSDN Git Service

Delete libva-tpi and libva-egl backends
[android-x86/hardware-intel-common-libva.git] / va / va_egl.h
index 8f9c840..d6acb7d 100644 (file)
+/*
+ * Copyright (c) 2007 Intel Corporation. All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
 #ifndef _VA_EGL_H_
 #define _VA_EGL_H_
 
-#include <va/va.h>
-#include <GLES/gl.h>
-#include <GLES/glext.h>
-#include <EGL/egl.h>
-#include <EGL/eglext.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *VASurfaceEGL;
-
-/*This function is used to get EGLClientBuffer
- * (lower 16bits is buffer index, upper 16bits 
- * is BC device id.) from surface id. Application
- * should maintain EGLClientBuffer itself.*/
-
-VAStatus vaGetEGLClientBufferFromSurface (
-    VADisplay dpy,
-    VASurfaceID surface,       
-    EGLClientBuffer *buffer     /* out*/
-);
-
-/**
- * Return a suitable VADisplay for VA API
- *
- * @param[in] native_dpy the native display
- * @param[in] egl_dpy the EGL display
- * @return a VADisplay
- */
-VADisplay vaGetDisplayEGL(
-    VANativeDisplay native_dpy,
-    EGLDisplay egl_dpy
-);
-
-/**
- * Create a surface used for display to OpenGL ES
- *
- * The application shall maintain the live EGL context itself.
- *
- * @param[in]  dpy        the VA display
- * @param[in]  target     the GL target to which the texture needs to be bound, must be GL_TEXTURE_2D
- * @param[in]  texture    the GL texture
- * @param[in]  width      the surface width
- * @param[in]  height     the surface height
- * @param[out] gl_surface the VA/EGL surface
- * @return VA_STATUS_SUCCESS if successful
- */
-VAStatus vaCreateSurfaceEGL(
-    VADisplay dpy,
-    GLenum target,
-    GLuint texture,
-    unsigned int width,
-    unsigned int height,
-    VASurfaceEGL *gl_surface
-);
-
-/**
- * Destroy a VA/EGL surface
- *
- * The application shall maintain the live EGL context itself.
- *
- * @param[in]  dpy        the VA display
- * @param[in]  gl_surface the VA surface
- * @return VA_STATUS_SUCCESS if successful
- */
-VAStatus vaDestroySurfaceEGL(
-    VADisplay dpy,
-    VASurfaceEGL gl_surface
-);
-
-/**
- * Associate a EGLClientBuffer with a VA surface
- *
- * @param[in]  dpy         the VA display
- * @param[in]  egl_surface the VA/EGL destination surface
- * @param[in]  surface     the VA surface
- * @param[in]  flags       the flags to PutSurface
- * @return VA_STATUS_SUCCESS if successful
- */
-VAStatus vaAssociateSurfaceEGL(
-    VADisplay dpy,
-    VASurfaceEGL egl_surface,
-    VASurfaceID surface,
-    unsigned int flags
-);
-
-/**
- * Update the content of a VA/EGL surface
- *
- * Changes to VA surface are committed to VA/EGL surface at this point.
- *
- * @param[in]  dpy         the VA display
- * @param[in]  egl_surface the VA/EGL destination surface
- * @return VA_STATUS_SUCCESS if successful
- */
-VAStatus vaUpdateAssociatedSurfaceEGL(
-    VADisplay dpy,
-    VASurfaceEGL egl_surface
-);
-
-/**
- * Deassociate a EGLClientBuffer
- *
- * @param[in]  dpy         the VA display
- * @param[in]  egl_surface the VA/EGL destination surface
- * @return VA_STATUS_SUCCESS if successful
- */
-VAStatus vaDeassociateSurfaceEGL(
-    VADisplay dpy,
-    VASurfaceEGL egl_surface
-);
-
-#ifdef __cplusplus
-}
-#endif
+#warning The APIs / data structures included in this file are deprecated
 
 #endif /* _VA_EGL_H_ */