You.i Engine
YiEGLExtGenerated.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 /*******************************************************************************
3  * DO NOT EDIT THIS FILE!
4  * This file has been generated by tools/YiGLWrangler
5  ******************************************************************************/
6 
7 #ifndef _YI_EGL_EXT_H_
8 #error Do not include YiEGLExtGenerated.h directly. Include YiEGLExt.h instead.
9 #endif
10 
11 #ifndef _YI_EGL_EXT_GENERATED_H_
12 #define _YI_EGL_EXT_GENERATED_H_
13 #if defined(YI_OPENGL_ES2_RENDERING) && !defined(YI_IOS) && !defined(YI_TVOS) && !defined(YI_WEBOS) && !defined(YI_TIZEN_NACL)
14 
15 #include "renderer/YiEGL.h"
16 
22 inline EGLint YiEGLClientWaitSyncKHR(EGLDisplay pDpy, EGLSyncKHR pSync, EGLint nFlags, EGLTimeKHR uTimeout)
23 {
24  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglClientWaitSyncKHRStr);
25  YI_ASSERT(CYIEGL::CurrentAPI.eglClientWaitSyncKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglClientWaitSyncKHRStr, CYIEGL::EGL_KHR_fence_sync_STR);
26  return CYIEGL::CurrentAPI.eglClientWaitSyncKHRProc(pDpy, pSync, nFlags, uTimeout);
27 }
28 #define eglClientWaitSyncKHR YiEGLClientWaitSyncKHR
29 
35 inline EGLint YiEGLClientWaitSyncNV(EGLSyncNV pSync, EGLint nFlags, EGLTimeNV uTimeout)
36 {
37  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglClientWaitSyncNVStr);
38  YI_ASSERT(CYIEGL::CurrentAPI.eglClientWaitSyncNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglClientWaitSyncNVStr, CYIEGL::EGL_NV_sync_STR);
39  return CYIEGL::CurrentAPI.eglClientWaitSyncNVProc(pSync, nFlags, uTimeout);
40 }
41 #define eglClientWaitSyncNV YiEGLClientWaitSyncNV
42 
48 inline EGLImageKHR YiEGLCreateDRMImageMESA(EGLDisplay pDpy, const EGLint *pnAttribList)
49 {
50  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateDRMImageMESAStr);
51  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateDRMImageMESAProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateDRMImageMESAStr, CYIEGL::EGL_MESA_drm_image_STR);
52  return CYIEGL::CurrentAPI.eglCreateDRMImageMESAProc(pDpy, pnAttribList);
53 }
54 #define eglCreateDRMImageMESA YiEGLCreateDRMImageMESA
55 
61 inline EGLSyncNV YiEGLCreateFenceSyncNV(EGLDisplay pDpy, EGLenum eCondition, const EGLint *pnAttribList)
62 {
63  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateFenceSyncNVStr);
64  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateFenceSyncNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateFenceSyncNVStr, CYIEGL::EGL_NV_sync_STR);
65  return CYIEGL::CurrentAPI.eglCreateFenceSyncNVProc(pDpy, eCondition, pnAttribList);
66 }
67 #define eglCreateFenceSyncNV YiEGLCreateFenceSyncNV
68 
74 inline EGLImageKHR YiEGLCreateImageKHR(EGLDisplay pDpy, EGLContext pCtx, EGLenum eTarget, EGLClientBuffer pBuffer, const EGLint *pnAttribList)
75 {
76  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateImageKHRStr);
77  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateImageKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateImageKHRStr, CYIEGL::EGL_KHR_image_STR);
78  return CYIEGL::CurrentAPI.eglCreateImageKHRProc(pDpy, pCtx, eTarget, pBuffer, pnAttribList);
79 }
80 #define eglCreateImageKHR YiEGLCreateImageKHR
81 
87 inline EGLClientBuffer YiEGLCreateNativeClientBufferANDROID(const EGLint *pnAttribList)
88 {
89  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateNativeClientBufferANDROIDStr);
90  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateNativeClientBufferANDROIDProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateNativeClientBufferANDROIDStr, CYIEGL::EGL_ANDROID_create_native_client_buffer_STR);
91  return CYIEGL::CurrentAPI.eglCreateNativeClientBufferANDROIDProc(pnAttribList);
92 }
93 #define eglCreateNativeClientBufferANDROID YiEGLCreateNativeClientBufferANDROID
94 
100 inline EGLSurface YiEGLCreatePixmapSurfaceHI(EGLDisplay pDpy, EGLConfig pConfig, struct EGLClientPixmapHI *pPixmap)
101 {
102  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreatePixmapSurfaceHIStr);
103  YI_ASSERT(CYIEGL::CurrentAPI.eglCreatePixmapSurfaceHIProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreatePixmapSurfaceHIStr, CYIEGL::EGL_HI_clientpixmap_STR);
104  return CYIEGL::CurrentAPI.eglCreatePixmapSurfaceHIProc(pDpy, pConfig, pPixmap);
105 }
106 #define eglCreatePixmapSurfaceHI YiEGLCreatePixmapSurfaceHI
107 
113 inline EGLSurface YiEGLCreatePlatformPixmapSurfaceEXT(EGLDisplay pDpy, EGLConfig pConfig, void *pNativePixmap, const EGLint *pnAttribList)
114 {
115  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreatePlatformPixmapSurfaceEXTStr);
116  YI_ASSERT(CYIEGL::CurrentAPI.eglCreatePlatformPixmapSurfaceEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreatePlatformPixmapSurfaceEXTStr, CYIEGL::EGL_EXT_platform_base_STR);
117  return CYIEGL::CurrentAPI.eglCreatePlatformPixmapSurfaceEXTProc(pDpy, pConfig, pNativePixmap, pnAttribList);
118 }
119 #define eglCreatePlatformPixmapSurfaceEXT YiEGLCreatePlatformPixmapSurfaceEXT
120 
126 inline EGLSurface YiEGLCreatePlatformWindowSurfaceEXT(EGLDisplay pDpy, EGLConfig pConfig, void *pNativeWindow, const EGLint *pnAttribList)
127 {
128  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreatePlatformWindowSurfaceEXTStr);
129  YI_ASSERT(CYIEGL::CurrentAPI.eglCreatePlatformWindowSurfaceEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreatePlatformWindowSurfaceEXTStr, CYIEGL::EGL_EXT_platform_base_STR);
130  return CYIEGL::CurrentAPI.eglCreatePlatformWindowSurfaceEXTProc(pDpy, pConfig, pNativeWindow, pnAttribList);
131 }
132 #define eglCreatePlatformWindowSurfaceEXT YiEGLCreatePlatformWindowSurfaceEXT
133 
139 inline EGLStreamKHR YiEGLCreateStreamAttribKHR(EGLDisplay pDpy, const EGLAttrib *pnAttribList)
140 {
141  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateStreamAttribKHRStr);
142  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateStreamAttribKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateStreamAttribKHRStr, CYIEGL::EGL_KHR_stream_attrib_STR);
143  return CYIEGL::CurrentAPI.eglCreateStreamAttribKHRProc(pDpy, pnAttribList);
144 }
145 #define eglCreateStreamAttribKHR YiEGLCreateStreamAttribKHR
146 
152 inline EGLStreamKHR YiEGLCreateStreamFromFileDescriptorKHR(EGLDisplay pDpy, EGLNativeFileDescriptorKHR nFileDescriptor)
153 {
154  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateStreamFromFileDescriptorKHRStr);
155  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateStreamFromFileDescriptorKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateStreamFromFileDescriptorKHRStr, CYIEGL::EGL_KHR_stream_cross_process_fd_STR);
156  return CYIEGL::CurrentAPI.eglCreateStreamFromFileDescriptorKHRProc(pDpy, nFileDescriptor);
157 }
158 #define eglCreateStreamFromFileDescriptorKHR YiEGLCreateStreamFromFileDescriptorKHR
159 
165 inline EGLStreamKHR YiEGLCreateStreamKHR(EGLDisplay pDpy, const EGLint *pnAttribList)
166 {
167  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateStreamKHRStr);
168  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateStreamKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateStreamKHRStr, CYIEGL::EGL_KHR_stream_STR);
169  return CYIEGL::CurrentAPI.eglCreateStreamKHRProc(pDpy, pnAttribList);
170 }
171 #define eglCreateStreamKHR YiEGLCreateStreamKHR
172 
178 inline EGLSurface YiEGLCreateStreamProducerSurfaceKHR(EGLDisplay pDpy, EGLConfig pConfig, EGLStreamKHR pStream, const EGLint *pnAttribList)
179 {
180  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateStreamProducerSurfaceKHRStr);
181  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateStreamProducerSurfaceKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateStreamProducerSurfaceKHRStr, CYIEGL::EGL_KHR_stream_producer_eglsurface_STR);
182  return CYIEGL::CurrentAPI.eglCreateStreamProducerSurfaceKHRProc(pDpy, pConfig, pStream, pnAttribList);
183 }
184 #define eglCreateStreamProducerSurfaceKHR YiEGLCreateStreamProducerSurfaceKHR
185 
191 inline EGLSyncKHR YiEGLCreateStreamSyncNV(EGLDisplay pDpy, EGLStreamKHR pStream, EGLenum eType, const EGLint *pnAttribList)
192 {
193  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateStreamSyncNVStr);
194  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateStreamSyncNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateStreamSyncNVStr, CYIEGL::EGL_NV_stream_sync_STR);
195  return CYIEGL::CurrentAPI.eglCreateStreamSyncNVProc(pDpy, pStream, eType, pnAttribList);
196 }
197 #define eglCreateStreamSyncNV YiEGLCreateStreamSyncNV
198 
204 inline EGLSyncKHR YiEGLCreateSync64KHR(EGLDisplay pDpy, EGLenum eType, const EGLAttribKHR *pnAttribList)
205 {
206  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateSync64KHRStr);
207  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateSync64KHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateSync64KHRStr, CYIEGL::EGL_KHR_cl_event2_STR);
208  return CYIEGL::CurrentAPI.eglCreateSync64KHRProc(pDpy, eType, pnAttribList);
209 }
210 #define eglCreateSync64KHR YiEGLCreateSync64KHR
211 
217 inline EGLSyncKHR YiEGLCreateSyncKHR(EGLDisplay pDpy, EGLenum eType, const EGLint *pnAttribList)
218 {
219  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglCreateSyncKHRStr);
220  YI_ASSERT(CYIEGL::CurrentAPI.eglCreateSyncKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglCreateSyncKHRStr, CYIEGL::EGL_KHR_fence_sync_STR);
221  return CYIEGL::CurrentAPI.eglCreateSyncKHRProc(pDpy, eType, pnAttribList);
222 }
223 #define eglCreateSyncKHR YiEGLCreateSyncKHR
224 
230 inline EGLint YiEGLDebugMessageControlKHR(EGLDEBUGPROCKHR callback, const EGLAttrib *pnAttribList)
231 {
232  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglDebugMessageControlKHRStr);
233  YI_ASSERT(CYIEGL::CurrentAPI.eglDebugMessageControlKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglDebugMessageControlKHRStr, CYIEGL::EGL_KHR_debug_STR);
234  return CYIEGL::CurrentAPI.eglDebugMessageControlKHRProc(callback, pnAttribList);
235 }
236 #define eglDebugMessageControlKHR YiEGLDebugMessageControlKHR
237 
243 inline EGLBoolean YiEGLDestroyImageKHR(EGLDisplay pDpy, EGLImageKHR pImage)
244 {
245  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglDestroyImageKHRStr);
246  YI_ASSERT(CYIEGL::CurrentAPI.eglDestroyImageKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglDestroyImageKHRStr, CYIEGL::EGL_KHR_image_STR);
247  return CYIEGL::CurrentAPI.eglDestroyImageKHRProc(pDpy, pImage);
248 }
249 #define eglDestroyImageKHR YiEGLDestroyImageKHR
250 
256 inline EGLBoolean YiEGLDestroyStreamKHR(EGLDisplay pDpy, EGLStreamKHR pStream)
257 {
258  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglDestroyStreamKHRStr);
259  YI_ASSERT(CYIEGL::CurrentAPI.eglDestroyStreamKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglDestroyStreamKHRStr, CYIEGL::EGL_KHR_stream_STR);
260  return CYIEGL::CurrentAPI.eglDestroyStreamKHRProc(pDpy, pStream);
261 }
262 #define eglDestroyStreamKHR YiEGLDestroyStreamKHR
263 
269 inline EGLBoolean YiEGLDestroySyncKHR(EGLDisplay pDpy, EGLSyncKHR pSync)
270 {
271  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglDestroySyncKHRStr);
272  YI_ASSERT(CYIEGL::CurrentAPI.eglDestroySyncKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglDestroySyncKHRStr, CYIEGL::EGL_KHR_fence_sync_STR);
273  return CYIEGL::CurrentAPI.eglDestroySyncKHRProc(pDpy, pSync);
274 }
275 #define eglDestroySyncKHR YiEGLDestroySyncKHR
276 
282 inline EGLBoolean YiEGLDestroySyncNV(EGLSyncNV pSync)
283 {
284  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglDestroySyncNVStr);
285  YI_ASSERT(CYIEGL::CurrentAPI.eglDestroySyncNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglDestroySyncNVStr, CYIEGL::EGL_NV_sync_STR);
286  return CYIEGL::CurrentAPI.eglDestroySyncNVProc(pSync);
287 }
288 #define eglDestroySyncNV YiEGLDestroySyncNV
289 
295 inline EGLint YiEGLDupNativeFenceFDANDROID(EGLDisplay pDpy, EGLSyncKHR pSync)
296 {
297  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglDupNativeFenceFDANDROIDStr);
298  YI_ASSERT(CYIEGL::CurrentAPI.eglDupNativeFenceFDANDROIDProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglDupNativeFenceFDANDROIDStr, CYIEGL::EGL_ANDROID_native_fence_sync_STR);
299  return CYIEGL::CurrentAPI.eglDupNativeFenceFDANDROIDProc(pDpy, pSync);
300 }
301 #define eglDupNativeFenceFDANDROID YiEGLDupNativeFenceFDANDROID
302 
308 inline EGLBoolean YiEGLExportDMABUFImageMESA(EGLDisplay pDpy, EGLImageKHR pImage, int *pFds, EGLint *pnStrides, EGLint *pnOffsets)
309 {
310  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglExportDMABUFImageMESAStr);
311  YI_ASSERT(CYIEGL::CurrentAPI.eglExportDMABUFImageMESAProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglExportDMABUFImageMESAStr, CYIEGL::EGL_MESA_image_dma_buf_export_STR);
312  return CYIEGL::CurrentAPI.eglExportDMABUFImageMESAProc(pDpy, pImage, pFds, pnStrides, pnOffsets);
313 }
314 #define eglExportDMABUFImageMESA YiEGLExportDMABUFImageMESA
315 
321 inline EGLBoolean YiEGLExportDMABUFImageQueryMESA(EGLDisplay pDpy, EGLImageKHR pImage, int *pFourcc, int *pNumPlanes, EGLuint64KHR *puModifiers)
322 {
323  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglExportDMABUFImageQueryMESAStr);
324  YI_ASSERT(CYIEGL::CurrentAPI.eglExportDMABUFImageQueryMESAProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglExportDMABUFImageQueryMESAStr, CYIEGL::EGL_MESA_image_dma_buf_export_STR);
325  return CYIEGL::CurrentAPI.eglExportDMABUFImageQueryMESAProc(pDpy, pImage, pFourcc, pNumPlanes, puModifiers);
326 }
327 #define eglExportDMABUFImageQueryMESA YiEGLExportDMABUFImageQueryMESA
328 
334 inline EGLBoolean YiEGLExportDRMImageMESA(EGLDisplay pDpy, EGLImageKHR pImage, EGLint *pnName, EGLint *pnHandle, EGLint *pnStride)
335 {
336  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglExportDRMImageMESAStr);
337  YI_ASSERT(CYIEGL::CurrentAPI.eglExportDRMImageMESAProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglExportDRMImageMESAStr, CYIEGL::EGL_MESA_drm_image_STR);
338  return CYIEGL::CurrentAPI.eglExportDRMImageMESAProc(pDpy, pImage, pnName, pnHandle, pnStride);
339 }
340 #define eglExportDRMImageMESA YiEGLExportDRMImageMESA
341 
347 inline EGLBoolean YiEGLFenceNV(EGLSyncNV pSync)
348 {
349  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglFenceNVStr);
350  YI_ASSERT(CYIEGL::CurrentAPI.eglFenceNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglFenceNVStr, CYIEGL::EGL_NV_sync_STR);
351  return CYIEGL::CurrentAPI.eglFenceNVProc(pSync);
352 }
353 #define eglFenceNV YiEGLFenceNV
354 
360 inline EGLBoolean YiEGLGetOutputLayersEXT(EGLDisplay pDpy, const EGLAttrib *pnAttribList, EGLOutputLayerEXT *ppLayers, EGLint nMaxLayers, EGLint *pnNumLayers)
361 {
362  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglGetOutputLayersEXTStr);
363  YI_ASSERT(CYIEGL::CurrentAPI.eglGetOutputLayersEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglGetOutputLayersEXTStr, CYIEGL::EGL_EXT_output_base_STR);
364  return CYIEGL::CurrentAPI.eglGetOutputLayersEXTProc(pDpy, pnAttribList, ppLayers, nMaxLayers, pnNumLayers);
365 }
366 #define eglGetOutputLayersEXT YiEGLGetOutputLayersEXT
367 
373 inline EGLBoolean YiEGLGetOutputPortsEXT(EGLDisplay pDpy, const EGLAttrib *pnAttribList, EGLOutputPortEXT *ppPorts, EGLint nMaxPorts, EGLint *pnNumPorts)
374 {
375  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglGetOutputPortsEXTStr);
376  YI_ASSERT(CYIEGL::CurrentAPI.eglGetOutputPortsEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglGetOutputPortsEXTStr, CYIEGL::EGL_EXT_output_base_STR);
377  return CYIEGL::CurrentAPI.eglGetOutputPortsEXTProc(pDpy, pnAttribList, ppPorts, nMaxPorts, pnNumPorts);
378 }
379 #define eglGetOutputPortsEXT YiEGLGetOutputPortsEXT
380 
386 inline EGLDisplay YiEGLGetPlatformDisplayEXT(EGLenum ePlatform, void *pNativeDisplay, const EGLint *pnAttribList)
387 {
388  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglGetPlatformDisplayEXTStr);
389  YI_ASSERT(CYIEGL::CurrentAPI.eglGetPlatformDisplayEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglGetPlatformDisplayEXTStr, CYIEGL::EGL_EXT_platform_base_STR);
390  return CYIEGL::CurrentAPI.eglGetPlatformDisplayEXTProc(ePlatform, pNativeDisplay, pnAttribList);
391 }
392 #define eglGetPlatformDisplayEXT YiEGLGetPlatformDisplayEXT
393 
399 inline EGLNativeFileDescriptorKHR YiEGLGetStreamFileDescriptorKHR(EGLDisplay pDpy, EGLStreamKHR pStream)
400 {
401  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglGetStreamFileDescriptorKHRStr);
402  YI_ASSERT(CYIEGL::CurrentAPI.eglGetStreamFileDescriptorKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglGetStreamFileDescriptorKHRStr, CYIEGL::EGL_KHR_stream_cross_process_fd_STR);
403  return CYIEGL::CurrentAPI.eglGetStreamFileDescriptorKHRProc(pDpy, pStream);
404 }
405 #define eglGetStreamFileDescriptorKHR YiEGLGetStreamFileDescriptorKHR
406 
412 inline EGLBoolean YiEGLGetSyncAttribKHR(EGLDisplay pDpy, EGLSyncKHR pSync, EGLint nAttribute, EGLint *pnValue)
413 {
414  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglGetSyncAttribKHRStr);
415  YI_ASSERT(CYIEGL::CurrentAPI.eglGetSyncAttribKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglGetSyncAttribKHRStr, CYIEGL::EGL_KHR_fence_sync_STR);
416  return CYIEGL::CurrentAPI.eglGetSyncAttribKHRProc(pDpy, pSync, nAttribute, pnValue);
417 }
418 #define eglGetSyncAttribKHR YiEGLGetSyncAttribKHR
419 
425 inline EGLBoolean YiEGLGetSyncAttribNV(EGLSyncNV pSync, EGLint nAttribute, EGLint *pnValue)
426 {
427  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglGetSyncAttribNVStr);
428  YI_ASSERT(CYIEGL::CurrentAPI.eglGetSyncAttribNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglGetSyncAttribNVStr, CYIEGL::EGL_NV_sync_STR);
429  return CYIEGL::CurrentAPI.eglGetSyncAttribNVProc(pSync, nAttribute, pnValue);
430 }
431 #define eglGetSyncAttribNV YiEGLGetSyncAttribNV
432 
438 inline EGLuint64NV YiEGLGetSystemTimeFrequencyNV(void)
439 {
440  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglGetSystemTimeFrequencyNVStr);
441  YI_ASSERT(CYIEGL::CurrentAPI.eglGetSystemTimeFrequencyNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglGetSystemTimeFrequencyNVStr, CYIEGL::EGL_NV_system_time_STR);
442  return CYIEGL::CurrentAPI.eglGetSystemTimeFrequencyNVProc();
443 }
444 #define eglGetSystemTimeFrequencyNV YiEGLGetSystemTimeFrequencyNV
445 
451 inline EGLuint64NV YiEGLGetSystemTimeNV(void)
452 {
453  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglGetSystemTimeNVStr);
454  YI_ASSERT(CYIEGL::CurrentAPI.eglGetSystemTimeNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglGetSystemTimeNVStr, CYIEGL::EGL_NV_system_time_STR);
455  return CYIEGL::CurrentAPI.eglGetSystemTimeNVProc();
456 }
457 #define eglGetSystemTimeNV YiEGLGetSystemTimeNV
458 
464 inline EGLint YiEGLLabelObjectKHR(EGLDisplay pDisplay, EGLenum eObjectType, EGLObjectKHR object, EGLLabelKHR label)
465 {
466  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglLabelObjectKHRStr);
467  YI_ASSERT(CYIEGL::CurrentAPI.eglLabelObjectKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglLabelObjectKHRStr, CYIEGL::EGL_KHR_debug_STR);
468  return CYIEGL::CurrentAPI.eglLabelObjectKHRProc(pDisplay, eObjectType, object, label);
469 }
470 #define eglLabelObjectKHR YiEGLLabelObjectKHR
471 
477 inline EGLBoolean YiEGLLockSurfaceKHR(EGLDisplay pDpy, EGLSurface pSurface, const EGLint *pnAttribList)
478 {
479  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglLockSurfaceKHRStr);
480  YI_ASSERT(CYIEGL::CurrentAPI.eglLockSurfaceKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglLockSurfaceKHRStr, CYIEGL::EGL_KHR_lock_surface_STR);
481  return CYIEGL::CurrentAPI.eglLockSurfaceKHRProc(pDpy, pSurface, pnAttribList);
482 }
483 #define eglLockSurfaceKHR YiEGLLockSurfaceKHR
484 
490 inline EGLBoolean YiEGLOutputLayerAttribEXT(EGLDisplay pDpy, EGLOutputLayerEXT pLayer, EGLint nAttribute, EGLAttrib nValue)
491 {
492  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglOutputLayerAttribEXTStr);
493  YI_ASSERT(CYIEGL::CurrentAPI.eglOutputLayerAttribEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglOutputLayerAttribEXTStr, CYIEGL::EGL_EXT_output_base_STR);
494  return CYIEGL::CurrentAPI.eglOutputLayerAttribEXTProc(pDpy, pLayer, nAttribute, nValue);
495 }
496 #define eglOutputLayerAttribEXT YiEGLOutputLayerAttribEXT
497 
503 inline EGLBoolean YiEGLOutputPortAttribEXT(EGLDisplay pDpy, EGLOutputPortEXT pPort, EGLint nAttribute, EGLAttrib nValue)
504 {
505  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglOutputPortAttribEXTStr);
506  YI_ASSERT(CYIEGL::CurrentAPI.eglOutputPortAttribEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglOutputPortAttribEXTStr, CYIEGL::EGL_EXT_output_base_STR);
507  return CYIEGL::CurrentAPI.eglOutputPortAttribEXTProc(pDpy, pPort, nAttribute, nValue);
508 }
509 #define eglOutputPortAttribEXT YiEGLOutputPortAttribEXT
510 
516 inline EGLBoolean YiEGLPostSubBufferNV(EGLDisplay pDpy, EGLSurface pSurface, EGLint nX, EGLint nY, EGLint nWidth, EGLint nHeight)
517 {
518  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglPostSubBufferNVStr);
519  YI_ASSERT(CYIEGL::CurrentAPI.eglPostSubBufferNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglPostSubBufferNVStr, CYIEGL::EGL_NV_post_sub_buffer_STR);
520  return CYIEGL::CurrentAPI.eglPostSubBufferNVProc(pDpy, pSurface, nX, nY, nWidth, nHeight);
521 }
522 #define eglPostSubBufferNV YiEGLPostSubBufferNV
523 
529 inline EGLBoolean YiEGLPresentationTimeANDROID(EGLDisplay pDpy, EGLSurface pSurface, EGLnsecsANDROID nTime)
530 {
531  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglPresentationTimeANDROIDStr);
532  YI_ASSERT(CYIEGL::CurrentAPI.eglPresentationTimeANDROIDProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglPresentationTimeANDROIDStr, CYIEGL::EGL_ANDROID_presentation_time_STR);
533  return CYIEGL::CurrentAPI.eglPresentationTimeANDROIDProc(pDpy, pSurface, nTime);
534 }
535 #define eglPresentationTimeANDROID YiEGLPresentationTimeANDROID
536 
542 inline EGLBoolean YiEGLQueryDebugKHR(EGLint nAttribute, EGLAttrib *pnValue)
543 {
544  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryDebugKHRStr);
545  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryDebugKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryDebugKHRStr, CYIEGL::EGL_KHR_debug_STR);
546  return CYIEGL::CurrentAPI.eglQueryDebugKHRProc(nAttribute, pnValue);
547 }
548 #define eglQueryDebugKHR YiEGLQueryDebugKHR
549 
555 inline EGLBoolean YiEGLQueryDeviceAttribEXT(EGLDeviceEXT pDevice, EGLint nAttribute, EGLAttrib *pnValue)
556 {
557  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryDeviceAttribEXTStr);
558  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryDeviceAttribEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryDeviceAttribEXTStr, CYIEGL::EGL_EXT_device_base_STR);
559  return CYIEGL::CurrentAPI.eglQueryDeviceAttribEXTProc(pDevice, nAttribute, pnValue);
560 }
561 #define eglQueryDeviceAttribEXT YiEGLQueryDeviceAttribEXT
562 
568 inline const char *YiEGLQueryDeviceStringEXT(EGLDeviceEXT pDevice, EGLint nName)
569 {
570  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryDeviceStringEXTStr);
571  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryDeviceStringEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryDeviceStringEXTStr, CYIEGL::EGL_EXT_device_base_STR);
572  return CYIEGL::CurrentAPI.eglQueryDeviceStringEXTProc(pDevice, nName);
573 }
574 #define eglQueryDeviceStringEXT YiEGLQueryDeviceStringEXT
575 
581 inline EGLBoolean YiEGLQueryDevicesEXT(EGLint nMaxDevices, EGLDeviceEXT *ppDevices, EGLint *pnNumDevices)
582 {
583  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryDevicesEXTStr);
584  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryDevicesEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryDevicesEXTStr, CYIEGL::EGL_EXT_device_base_STR);
585  return CYIEGL::CurrentAPI.eglQueryDevicesEXTProc(nMaxDevices, ppDevices, pnNumDevices);
586 }
587 #define eglQueryDevicesEXT YiEGLQueryDevicesEXT
588 
594 inline EGLBoolean YiEGLQueryDisplayAttribEXT(EGLDisplay pDpy, EGLint nAttribute, EGLAttrib *pnValue)
595 {
596  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryDisplayAttribEXTStr);
597  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryDisplayAttribEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryDisplayAttribEXTStr, CYIEGL::EGL_EXT_device_base_STR);
598  return CYIEGL::CurrentAPI.eglQueryDisplayAttribEXTProc(pDpy, nAttribute, pnValue);
599 }
600 #define eglQueryDisplayAttribEXT YiEGLQueryDisplayAttribEXT
601 
607 inline EGLBoolean YiEGLQueryDisplayAttribNV(EGLDisplay pDpy, EGLint nAttribute, EGLAttrib *pnValue)
608 {
609  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryDisplayAttribNVStr);
610  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryDisplayAttribNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryDisplayAttribNVStr, CYIEGL::EGL_NV_stream_metadata_STR);
611  return CYIEGL::CurrentAPI.eglQueryDisplayAttribNVProc(pDpy, nAttribute, pnValue);
612 }
613 #define eglQueryDisplayAttribNV YiEGLQueryDisplayAttribNV
614 
620 inline EGLBoolean YiEGLQueryNativeDisplayNV(EGLDisplay pDpy, EGLNativeDisplayType *ppDisplayId)
621 {
622  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryNativeDisplayNVStr);
623  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryNativeDisplayNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryNativeDisplayNVStr, CYIEGL::EGL_NV_native_query_STR);
624  return CYIEGL::CurrentAPI.eglQueryNativeDisplayNVProc(pDpy, ppDisplayId);
625 }
626 #define eglQueryNativeDisplayNV YiEGLQueryNativeDisplayNV
627 
633 inline EGLBoolean YiEGLQueryNativePixmapNV(EGLDisplay pDpy, EGLSurface pSurf, EGLNativePixmapType *ppPixmap)
634 {
635  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryNativePixmapNVStr);
636  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryNativePixmapNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryNativePixmapNVStr, CYIEGL::EGL_NV_native_query_STR);
637  return CYIEGL::CurrentAPI.eglQueryNativePixmapNVProc(pDpy, pSurf, ppPixmap);
638 }
639 #define eglQueryNativePixmapNV YiEGLQueryNativePixmapNV
640 
646 inline EGLBoolean YiEGLQueryNativeWindowNV(EGLDisplay pDpy, EGLSurface pSurf, EGLNativeWindowType *ppWindow)
647 {
648  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryNativeWindowNVStr);
649  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryNativeWindowNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryNativeWindowNVStr, CYIEGL::EGL_NV_native_query_STR);
650  return CYIEGL::CurrentAPI.eglQueryNativeWindowNVProc(pDpy, pSurf, ppWindow);
651 }
652 #define eglQueryNativeWindowNV YiEGLQueryNativeWindowNV
653 
659 inline EGLBoolean YiEGLQueryOutputLayerAttribEXT(EGLDisplay pDpy, EGLOutputLayerEXT pLayer, EGLint nAttribute, EGLAttrib *pnValue)
660 {
661  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryOutputLayerAttribEXTStr);
662  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryOutputLayerAttribEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryOutputLayerAttribEXTStr, CYIEGL::EGL_EXT_output_base_STR);
663  return CYIEGL::CurrentAPI.eglQueryOutputLayerAttribEXTProc(pDpy, pLayer, nAttribute, pnValue);
664 }
665 #define eglQueryOutputLayerAttribEXT YiEGLQueryOutputLayerAttribEXT
666 
672 inline const char *YiEGLQueryOutputLayerStringEXT(EGLDisplay pDpy, EGLOutputLayerEXT pLayer, EGLint nName)
673 {
674  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryOutputLayerStringEXTStr);
675  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryOutputLayerStringEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryOutputLayerStringEXTStr, CYIEGL::EGL_EXT_output_base_STR);
676  return CYIEGL::CurrentAPI.eglQueryOutputLayerStringEXTProc(pDpy, pLayer, nName);
677 }
678 #define eglQueryOutputLayerStringEXT YiEGLQueryOutputLayerStringEXT
679 
685 inline EGLBoolean YiEGLQueryOutputPortAttribEXT(EGLDisplay pDpy, EGLOutputPortEXT pPort, EGLint nAttribute, EGLAttrib *pnValue)
686 {
687  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryOutputPortAttribEXTStr);
688  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryOutputPortAttribEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryOutputPortAttribEXTStr, CYIEGL::EGL_EXT_output_base_STR);
689  return CYIEGL::CurrentAPI.eglQueryOutputPortAttribEXTProc(pDpy, pPort, nAttribute, pnValue);
690 }
691 #define eglQueryOutputPortAttribEXT YiEGLQueryOutputPortAttribEXT
692 
698 inline const char *YiEGLQueryOutputPortStringEXT(EGLDisplay pDpy, EGLOutputPortEXT pPort, EGLint nName)
699 {
700  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryOutputPortStringEXTStr);
701  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryOutputPortStringEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryOutputPortStringEXTStr, CYIEGL::EGL_EXT_output_base_STR);
702  return CYIEGL::CurrentAPI.eglQueryOutputPortStringEXTProc(pDpy, pPort, nName);
703 }
704 #define eglQueryOutputPortStringEXT YiEGLQueryOutputPortStringEXT
705 
711 inline EGLBoolean YiEGLQueryStreamAttribKHR(EGLDisplay pDpy, EGLStreamKHR pStream, EGLenum eAttribute, EGLAttrib *pnValue)
712 {
713  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryStreamAttribKHRStr);
714  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryStreamAttribKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryStreamAttribKHRStr, CYIEGL::EGL_KHR_stream_attrib_STR);
715  return CYIEGL::CurrentAPI.eglQueryStreamAttribKHRProc(pDpy, pStream, eAttribute, pnValue);
716 }
717 #define eglQueryStreamAttribKHR YiEGLQueryStreamAttribKHR
718 
724 inline EGLBoolean YiEGLQueryStreamKHR(EGLDisplay pDpy, EGLStreamKHR pStream, EGLenum eAttribute, EGLint *pnValue)
725 {
726  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryStreamKHRStr);
727  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryStreamKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryStreamKHRStr, CYIEGL::EGL_KHR_stream_STR);
728  return CYIEGL::CurrentAPI.eglQueryStreamKHRProc(pDpy, pStream, eAttribute, pnValue);
729 }
730 #define eglQueryStreamKHR YiEGLQueryStreamKHR
731 
737 inline EGLBoolean YiEGLQueryStreamMetadataNV(EGLDisplay pDpy, EGLStreamKHR pStream, EGLenum eName, EGLint nN, EGLint nOffset, EGLint nSize, void *pData)
738 {
739  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryStreamMetadataNVStr);
740  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryStreamMetadataNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryStreamMetadataNVStr, CYIEGL::EGL_NV_stream_metadata_STR);
741  return CYIEGL::CurrentAPI.eglQueryStreamMetadataNVProc(pDpy, pStream, eName, nN, nOffset, nSize, pData);
742 }
743 #define eglQueryStreamMetadataNV YiEGLQueryStreamMetadataNV
744 
750 inline EGLBoolean YiEGLQueryStreamTimeKHR(EGLDisplay pDpy, EGLStreamKHR pStream, EGLenum eAttribute, EGLTimeKHR *puValue)
751 {
752  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryStreamTimeKHRStr);
753  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryStreamTimeKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryStreamTimeKHRStr, CYIEGL::EGL_KHR_stream_fifo_STR);
754  return CYIEGL::CurrentAPI.eglQueryStreamTimeKHRProc(pDpy, pStream, eAttribute, puValue);
755 }
756 #define eglQueryStreamTimeKHR YiEGLQueryStreamTimeKHR
757 
763 inline EGLBoolean YiEGLQueryStreamu64KHR(EGLDisplay pDpy, EGLStreamKHR pStream, EGLenum eAttribute, EGLuint64KHR *puValue)
764 {
765  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQueryStreamu64KHRStr);
766  YI_ASSERT(CYIEGL::CurrentAPI.eglQueryStreamu64KHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQueryStreamu64KHRStr, CYIEGL::EGL_KHR_stream_STR);
767  return CYIEGL::CurrentAPI.eglQueryStreamu64KHRProc(pDpy, pStream, eAttribute, puValue);
768 }
769 #define eglQueryStreamu64KHR YiEGLQueryStreamu64KHR
770 
776 inline EGLBoolean YiEGLQuerySurface64KHR(EGLDisplay pDpy, EGLSurface pSurface, EGLint nAttribute, EGLAttribKHR *pnValue)
777 {
778  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQuerySurface64KHRStr);
779  YI_ASSERT(CYIEGL::CurrentAPI.eglQuerySurface64KHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQuerySurface64KHRStr, CYIEGL::EGL_KHR_lock_surface3_STR);
780  return CYIEGL::CurrentAPI.eglQuerySurface64KHRProc(pDpy, pSurface, nAttribute, pnValue);
781 }
782 #define eglQuerySurface64KHR YiEGLQuerySurface64KHR
783 
789 inline EGLBoolean YiEGLQuerySurfacePointerANGLE(EGLDisplay pDpy, EGLSurface pSurface, EGLint nAttribute, void **ppValue)
790 {
791  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglQuerySurfacePointerANGLEStr);
792  YI_ASSERT(CYIEGL::CurrentAPI.eglQuerySurfacePointerANGLEProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglQuerySurfacePointerANGLEStr, CYIEGL::EGL_ANGLE_query_surface_pointer_STR);
793  return CYIEGL::CurrentAPI.eglQuerySurfacePointerANGLEProc(pDpy, pSurface, nAttribute, ppValue);
794 }
795 #define eglQuerySurfacePointerANGLE YiEGLQuerySurfacePointerANGLE
796 
802 inline void YiEGLSetBlobCacheFuncsANDROID(EGLDisplay pDpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get)
803 {
804  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSetBlobCacheFuncsANDROIDStr);
805  YI_ASSERT(CYIEGL::CurrentAPI.eglSetBlobCacheFuncsANDROIDProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSetBlobCacheFuncsANDROIDStr, CYIEGL::EGL_ANDROID_blob_cache_STR);
806  CYIEGL::CurrentAPI.eglSetBlobCacheFuncsANDROIDProc(pDpy, set, get);
807 }
808 #define eglSetBlobCacheFuncsANDROID YiEGLSetBlobCacheFuncsANDROID
809 
815 inline EGLBoolean YiEGLSetDamageRegionKHR(EGLDisplay pDpy, EGLSurface pSurface, EGLint *pnRects, EGLint nNRects)
816 {
817  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSetDamageRegionKHRStr);
818  YI_ASSERT(CYIEGL::CurrentAPI.eglSetDamageRegionKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSetDamageRegionKHRStr, CYIEGL::EGL_KHR_partial_update_STR);
819  return CYIEGL::CurrentAPI.eglSetDamageRegionKHRProc(pDpy, pSurface, pnRects, nNRects);
820 }
821 #define eglSetDamageRegionKHR YiEGLSetDamageRegionKHR
822 
828 inline EGLBoolean YiEGLSetStreamAttribKHR(EGLDisplay pDpy, EGLStreamKHR pStream, EGLenum eAttribute, EGLAttrib nValue)
829 {
830  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSetStreamAttribKHRStr);
831  YI_ASSERT(CYIEGL::CurrentAPI.eglSetStreamAttribKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSetStreamAttribKHRStr, CYIEGL::EGL_KHR_stream_attrib_STR);
832  return CYIEGL::CurrentAPI.eglSetStreamAttribKHRProc(pDpy, pStream, eAttribute, nValue);
833 }
834 #define eglSetStreamAttribKHR YiEGLSetStreamAttribKHR
835 
841 inline EGLBoolean YiEGLSetStreamMetadataNV(EGLDisplay pDpy, EGLStreamKHR pStream, EGLint nN, EGLint nOffset, EGLint nSize, const void *pData)
842 {
843  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSetStreamMetadataNVStr);
844  YI_ASSERT(CYIEGL::CurrentAPI.eglSetStreamMetadataNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSetStreamMetadataNVStr, CYIEGL::EGL_NV_stream_metadata_STR);
845  return CYIEGL::CurrentAPI.eglSetStreamMetadataNVProc(pDpy, pStream, nN, nOffset, nSize, pData);
846 }
847 #define eglSetStreamMetadataNV YiEGLSetStreamMetadataNV
848 
854 inline EGLBoolean YiEGLSignalSyncKHR(EGLDisplay pDpy, EGLSyncKHR pSync, EGLenum eMode)
855 {
856  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSignalSyncKHRStr);
857  YI_ASSERT(CYIEGL::CurrentAPI.eglSignalSyncKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSignalSyncKHRStr, CYIEGL::EGL_KHR_reusable_sync_STR);
858  return CYIEGL::CurrentAPI.eglSignalSyncKHRProc(pDpy, pSync, eMode);
859 }
860 #define eglSignalSyncKHR YiEGLSignalSyncKHR
861 
867 inline EGLBoolean YiEGLSignalSyncNV(EGLSyncNV pSync, EGLenum eMode)
868 {
869  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSignalSyncNVStr);
870  YI_ASSERT(CYIEGL::CurrentAPI.eglSignalSyncNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSignalSyncNVStr, CYIEGL::EGL_NV_sync_STR);
871  return CYIEGL::CurrentAPI.eglSignalSyncNVProc(pSync, eMode);
872 }
873 #define eglSignalSyncNV YiEGLSignalSyncNV
874 
880 inline EGLBoolean YiEGLStreamAttribKHR(EGLDisplay pDpy, EGLStreamKHR pStream, EGLenum eAttribute, EGLint nValue)
881 {
882  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglStreamAttribKHRStr);
883  YI_ASSERT(CYIEGL::CurrentAPI.eglStreamAttribKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglStreamAttribKHRStr, CYIEGL::EGL_KHR_stream_STR);
884  return CYIEGL::CurrentAPI.eglStreamAttribKHRProc(pDpy, pStream, eAttribute, nValue);
885 }
886 #define eglStreamAttribKHR YiEGLStreamAttribKHR
887 
893 inline EGLBoolean YiEGLStreamConsumerAcquireAttribKHR(EGLDisplay pDpy, EGLStreamKHR pStream, const EGLAttrib *pnAttribList)
894 {
895  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglStreamConsumerAcquireAttribKHRStr);
896  YI_ASSERT(CYIEGL::CurrentAPI.eglStreamConsumerAcquireAttribKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglStreamConsumerAcquireAttribKHRStr, CYIEGL::EGL_KHR_stream_attrib_STR);
897  return CYIEGL::CurrentAPI.eglStreamConsumerAcquireAttribKHRProc(pDpy, pStream, pnAttribList);
898 }
899 #define eglStreamConsumerAcquireAttribKHR YiEGLStreamConsumerAcquireAttribKHR
900 
906 inline EGLBoolean YiEGLStreamConsumerAcquireKHR(EGLDisplay pDpy, EGLStreamKHR pStream)
907 {
908  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglStreamConsumerAcquireKHRStr);
909  YI_ASSERT(CYIEGL::CurrentAPI.eglStreamConsumerAcquireKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglStreamConsumerAcquireKHRStr, CYIEGL::EGL_KHR_stream_consumer_gltexture_STR);
910  return CYIEGL::CurrentAPI.eglStreamConsumerAcquireKHRProc(pDpy, pStream);
911 }
912 #define eglStreamConsumerAcquireKHR YiEGLStreamConsumerAcquireKHR
913 
919 inline EGLBoolean YiEGLStreamConsumerGLTextureExternalAttribsNV(EGLDisplay pDpy, EGLStreamKHR pStream, EGLAttrib *pnAttribList)
920 {
921  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglStreamConsumerGLTextureExternalAttribsNVStr);
922  YI_ASSERT(CYIEGL::CurrentAPI.eglStreamConsumerGLTextureExternalAttribsNVProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglStreamConsumerGLTextureExternalAttribsNVStr, CYIEGL::EGL_NV_stream_consumer_gltexture_yuv_STR);
923  return CYIEGL::CurrentAPI.eglStreamConsumerGLTextureExternalAttribsNVProc(pDpy, pStream, pnAttribList);
924 }
925 #define eglStreamConsumerGLTextureExternalAttribsNV YiEGLStreamConsumerGLTextureExternalAttribsNV
926 
932 inline EGLBoolean YiEGLStreamConsumerGLTextureExternalKHR(EGLDisplay pDpy, EGLStreamKHR pStream)
933 {
934  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglStreamConsumerGLTextureExternalKHRStr);
935  YI_ASSERT(CYIEGL::CurrentAPI.eglStreamConsumerGLTextureExternalKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglStreamConsumerGLTextureExternalKHRStr, CYIEGL::EGL_KHR_stream_consumer_gltexture_STR);
936  return CYIEGL::CurrentAPI.eglStreamConsumerGLTextureExternalKHRProc(pDpy, pStream);
937 }
938 #define eglStreamConsumerGLTextureExternalKHR YiEGLStreamConsumerGLTextureExternalKHR
939 
945 inline EGLBoolean YiEGLStreamConsumerOutputEXT(EGLDisplay pDpy, EGLStreamKHR pStream, EGLOutputLayerEXT pLayer)
946 {
947  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglStreamConsumerOutputEXTStr);
948  YI_ASSERT(CYIEGL::CurrentAPI.eglStreamConsumerOutputEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglStreamConsumerOutputEXTStr, CYIEGL::EGL_EXT_stream_consumer_egloutput_STR);
949  return CYIEGL::CurrentAPI.eglStreamConsumerOutputEXTProc(pDpy, pStream, pLayer);
950 }
951 #define eglStreamConsumerOutputEXT YiEGLStreamConsumerOutputEXT
952 
958 inline EGLBoolean YiEGLStreamConsumerReleaseAttribKHR(EGLDisplay pDpy, EGLStreamKHR pStream, const EGLAttrib *pnAttribList)
959 {
960  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglStreamConsumerReleaseAttribKHRStr);
961  YI_ASSERT(CYIEGL::CurrentAPI.eglStreamConsumerReleaseAttribKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglStreamConsumerReleaseAttribKHRStr, CYIEGL::EGL_KHR_stream_attrib_STR);
962  return CYIEGL::CurrentAPI.eglStreamConsumerReleaseAttribKHRProc(pDpy, pStream, pnAttribList);
963 }
964 #define eglStreamConsumerReleaseAttribKHR YiEGLStreamConsumerReleaseAttribKHR
965 
971 inline EGLBoolean YiEGLStreamConsumerReleaseKHR(EGLDisplay pDpy, EGLStreamKHR pStream)
972 {
973  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglStreamConsumerReleaseKHRStr);
974  YI_ASSERT(CYIEGL::CurrentAPI.eglStreamConsumerReleaseKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglStreamConsumerReleaseKHRStr, CYIEGL::EGL_KHR_stream_consumer_gltexture_STR);
975  return CYIEGL::CurrentAPI.eglStreamConsumerReleaseKHRProc(pDpy, pStream);
976 }
977 #define eglStreamConsumerReleaseKHR YiEGLStreamConsumerReleaseKHR
978 
984 inline EGLBoolean YiEGLSwapBuffersRegion2NOK(EGLDisplay pDpy, EGLSurface pSurface, EGLint nNumRects, const EGLint *pnRects)
985 {
986  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSwapBuffersRegion2NOKStr);
987  YI_ASSERT(CYIEGL::CurrentAPI.eglSwapBuffersRegion2NOKProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSwapBuffersRegion2NOKStr, CYIEGL::EGL_NOK_swap_region2_STR);
988  return CYIEGL::CurrentAPI.eglSwapBuffersRegion2NOKProc(pDpy, pSurface, nNumRects, pnRects);
989 }
990 #define eglSwapBuffersRegion2NOK YiEGLSwapBuffersRegion2NOK
991 
995 inline EGLBoolean YiEGLSwapBuffersRegionNOK(EGLDisplay pDpy, EGLSurface pSurface, EGLint nNumRects, const EGLint *pnRects)
996 {
997  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSwapBuffersRegionNOKStr);
998  YI_ASSERT(CYIEGL::CurrentAPI.eglSwapBuffersRegionNOKProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSwapBuffersRegionNOKStr, CYIEGL::EGL_NOK_swap_region_STR);
999  return CYIEGL::CurrentAPI.eglSwapBuffersRegionNOKProc(pDpy, pSurface, nNumRects, pnRects);
1000 }
1001 #define eglSwapBuffersRegionNOK YiEGLSwapBuffersRegionNOK
1002 
1008 inline EGLBoolean YiEGLSwapBuffersWithDamageEXT(EGLDisplay pDpy, EGLSurface pSurface, EGLint *pnRects, EGLint nNRects)
1009 {
1010  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSwapBuffersWithDamageEXTStr);
1011  YI_ASSERT(CYIEGL::CurrentAPI.eglSwapBuffersWithDamageEXTProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSwapBuffersWithDamageEXTStr, CYIEGL::EGL_EXT_swap_buffers_with_damage_STR);
1012  return CYIEGL::CurrentAPI.eglSwapBuffersWithDamageEXTProc(pDpy, pSurface, pnRects, nNRects);
1013 }
1014 #define eglSwapBuffersWithDamageEXT YiEGLSwapBuffersWithDamageEXT
1015 
1021 inline EGLBoolean YiEGLSwapBuffersWithDamageKHR(EGLDisplay pDpy, EGLSurface pSurface, EGLint *pnRects, EGLint nNRects)
1022 {
1023  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglSwapBuffersWithDamageKHRStr);
1024  YI_ASSERT(CYIEGL::CurrentAPI.eglSwapBuffersWithDamageKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglSwapBuffersWithDamageKHRStr, CYIEGL::EGL_KHR_swap_buffers_with_damage_STR);
1025  return CYIEGL::CurrentAPI.eglSwapBuffersWithDamageKHRProc(pDpy, pSurface, pnRects, nNRects);
1026 }
1027 #define eglSwapBuffersWithDamageKHR YiEGLSwapBuffersWithDamageKHR
1028 
1034 inline EGLBoolean YiEGLUnlockSurfaceKHR(EGLDisplay pDpy, EGLSurface pSurface)
1035 {
1036  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglUnlockSurfaceKHRStr);
1037  YI_ASSERT(CYIEGL::CurrentAPI.eglUnlockSurfaceKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglUnlockSurfaceKHRStr, CYIEGL::EGL_KHR_lock_surface_STR);
1038  return CYIEGL::CurrentAPI.eglUnlockSurfaceKHRProc(pDpy, pSurface);
1039 }
1040 #define eglUnlockSurfaceKHR YiEGLUnlockSurfaceKHR
1041 
1047 inline EGLint YiEGLWaitSyncKHR(EGLDisplay pDpy, EGLSyncKHR pSync, EGLint nFlags)
1048 {
1049  YI_ASSERT(CYIEGL::CurrentAPI.bInitialized, CYIEGL::LOG_TAG, "CYIEGL was not initialized. Did you call CYIEGL::Init() before calling '%s'?", CYIEGL::eglWaitSyncKHRStr);
1050  YI_ASSERT(CYIEGL::CurrentAPI.eglWaitSyncKHRProc, CYIEGL::LOG_TAG, "'%s' procedure for '%s' is null.", CYIEGL::eglWaitSyncKHRStr, CYIEGL::EGL_KHR_wait_sync_STR);
1051  return CYIEGL::CurrentAPI.eglWaitSyncKHRProc(pDpy, pSync, nFlags);
1052 }
1053 #define eglWaitSyncKHR YiEGLWaitSyncKHR
1054 
1055 #endif /* defined(YI_OPENGL_ES2_RENDERING) && !defined(YI_IOS) && !defined(YI_TVOS) && !defined(YI_WEBOS) && !defined(YI_TIZEN_NACL) */
1056 #endif /* _YI_EGL_EXT_GENERATED_H_ */
#define YI_ASSERT(condition, tag, msg,...)
Platform-independent assertion macro.
Definition: YiError.h:37