eglext.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*************************************************************************/ /*!
  2. @File
  3. @Title EGL extensions.
  4. @Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
  5. @License Strictly Confidential.
  6. */ /**************************************************************************/
  7. #ifndef __drv_eglext_h__
  8. #define __drv_eglext_h__
  9. /* We want all the prototypes */
  10. #define EGL_EGLEXT_PROTOTYPES
  11. /* NOTE: If you want to override an extension, you could put it here,
  12. * before we include the Khronos header, so the khronos header doesn't
  13. * define it first.
  14. */
  15. /* Include the Khronos header first */
  16. #include <EGL/eglext.h>
  17. /* NOTE: Extensions following might be overridden by the platform's
  18. * version of eglext.h. For example, EGL_ANDROID_blob_cache will
  19. * already be defined by this point for Android, but not Linux.
  20. */
  21. #ifndef EGL_IMG_cl_image
  22. #define EGL_IMG_cl_image 1
  23. #define EGL_CL_IMAGE_IMG 0x6010 /* experimental eglCreateImageKHR target */
  24. #endif
  25. #ifndef EGL_IMG_image_plane_attribs
  26. #define EGL_IMG_image_plane_attribs 1
  27. #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
  28. #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
  29. #endif
  30. #ifndef EGL_IMG_image_debug_dump
  31. #define EGL_IMG_image_debug_dump 1
  32. typedef void (EGLAPIENTRYP IMAGEDUMPCALLBACKPROC) (const void *userParam, EGLenum target, EGLImageKHR image, EGLClientBuffer buffer);
  33. typedef EGLBoolean (EGLAPIENTRYP PFNEGLIMAGEDUMPCALLBACKPROC) (EGLDisplay dpy, EGLContext ctx, IMAGEDUMPCALLBACKPROC callback, const void *userParam);
  34. #if defined(EGL_EGLEXT_PROTOTYPES)
  35. EGLAPI EGLBoolean EGLAPIENTRY eglImageDumpCallbackIMG (EGLDisplay dpy, EGLContext ctx, IMAGEDUMPCALLBACKPROC callback, const void *userParam);
  36. #endif
  37. #endif
  38. #endif /* __drv_eglext_h__ */