Debian Codegraph @

wayland-egl/wayland-egl-ext.h

raw
1 /*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 */
22
23 #ifndef WAYLAND_EGL_EXT_H
24 #define WAYLAND_EGL_EXT_H
25
26 #ifndef EGL_WL_bind_wayland_display
27 #define EGL_WL_bind_wayland_display 1
28 #define PFNEGLBINDWAYLANDDISPLAYWL PFNEGLBINDWAYLANDDISPLAYWLPROC
29 #define PFNEGLUNBINDWAYLANDDISPLAYWL PFNEGLUNBINDWAYLANDDISPLAYWLPROC
30 #define PFNEGLQUERYWAYLANDBUFFERWL PFNEGLQUERYWAYLANDBUFFERWLPROC
31 struct wl_display;
32 struct wl_resource;
33 #define EGL_WAYLAND_BUFFER_WL 0x31D5
34 #define EGL_WAYLAND_PLANE_WL 0x31D6
35 #define EGL_TEXTURE_Y_U_V_WL 0x31D7
36 #define EGL_TEXTURE_Y_UV_WL 0x31D8
37 #define EGL_TEXTURE_Y_XUXV_WL 0x31D9
38 #define EGL_TEXTURE_EXTERNAL_WL 0x31DA
39 #define EGL_WAYLAND_Y_INVERTED_WL 0x31DB
40 typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
41 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
42 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWLPROC) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
43 #ifdef EGL_EGLEXT_PROTOTYPES
44 EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
45 EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
46 EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
47 #endif
48 #endif /* EGL_WL_bind_wayland_display */
49
50 #ifndef EGL_WL_wayland_eglstream
51 #define EGL_WL_wayland_eglstream 1
52 #define EGL_WAYLAND_EGLSTREAM_WL 0x334B
53 #endif /* EGL_WL_wayland_eglstream */
54
55 #ifndef EGL_NV_stream_fifo_synchronous
56 #define EGL_NV_stream_fifo_synchronous 1
57 #define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336
58 #endif /* EGL_NV_stream_fifo_synchronous */
59
60 #ifndef EGL_NV_stream_flush
61 #define EGL_NV_stream_flush 1
62 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMFLUSHNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
63 #ifdef EGL_EGLEXT_PROTOTYPES
64 EGLAPI EGLBoolean EGLAPIENTRY eglStreamFlushNV (EGLDisplay dpy, EGLStreamKHR stream);
65 #endif
66 #endif /*EGL_NV_stream_flush*/
67
68 /* Deprecated. Use EGL_KHR_stream_attrib */
69 #ifndef EGL_NV_stream_attrib
70 #define EGL_NV_stream_attrib 1
71 #ifdef EGL_EGLEXT_PROTOTYPES
72 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamAttribNV(EGLDisplay dpy, const EGLAttrib *attrib_list);
73 #endif
74 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBNVPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list);
75 #endif /* EGL_NV_stream_attrib */
76
77 #ifndef EGL_KHR_display_reference
78 #define EGL_KHR_display_reference 1
79 #define EGL_TRACK_REFERENCES_KHR 0x3352
80 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBKHRPROC) (EGLDisplay dpy, EGLint name, EGLAttrib *value);
81 #ifdef EGL_EGLEXT_PROTOTYPES
82 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribKHR (EGLDisplay dpy, EGLint name, EGLAttrib *value);
83 #endif
84 #endif /* EGL_KHR_display_reference */
85
86 #ifndef EGL_NV_stream_origin
87 #define EGL_NV_stream_origin 1
88 #define EGL_STREAM_FRAME_ORIGIN_X_NV 0x3366
89 #define EGL_STREAM_FRAME_ORIGIN_Y_NV 0x3367
90 #define EGL_STREAM_FRAME_MAJOR_AXIS_NV 0x3368
91 #define EGL_CONSUMER_AUTO_ORIENTATION_NV 0x3369
92 #define EGL_PRODUCER_AUTO_ORIENTATION_NV 0x336A
93 #define EGL_LEFT_NV 0x336B
94 #define EGL_RIGHT_NV 0x336C
95 #define EGL_TOP_NV 0x336D
96 #define EGL_BOTTOM_NV 0x336E
97 #define EGL_X_AXIS_NV 0x336F
98 #define EGL_Y_AXIS_NV 0x3370
99 #endif /* EGL_NV_stream_origin */
100
101 #endif