Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +1 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLES3/VERSION/__pycache__/__init__.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLES3/__pycache__/__init__.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/AMD/__init__.py +1 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/AMD/__pycache__/__init__.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/AMD/__pycache__/gpu_association.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/AMD/gpu_association.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/__init__.py +1 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/create_context.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/create_context_profile.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/create_context_robustness.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/fbconfig_float.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/framebuffer_sRGB.py +55 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/robustness_application_isolation.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/robustness_share_group_isolation.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/vertex_buffer_object.py +81 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/DFX/__pycache__/__init__.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/DFX/multisample.py +65 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/EXT/__pycache__/framebuffer_sRGB.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/EXT/__pycache__/stereo_tree.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/EXT/__pycache__/swap_control_tear.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/EXT/__pycache__/texture_from_pixmap.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/__init__.py +1 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/agp_offset.py +31 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/copy_sub_buffer.py +30 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/pixmap_colormap.py +35 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/query_renderer.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/set_3dfx_mode.py +29 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/__init__.py +1 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/__pycache__/__init__.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/__pycache__/swap_method.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/__pycache__/sync_control.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/swap_method.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/sync_control.py +23 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/__init__.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/dmbuffer.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/fbconfig.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/hyperpipe.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/pbuffer.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/swap_barrier.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/swap_group.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/video_resize.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/video_source.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/visual_select_group.cpython-310.pyc +0 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/dmbuffer.py +71 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/pbuffer.py +60 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/swap_barrier.py +37 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/swap_group.py +33 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/video_resize.py +37 -0
- vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/video_source.py +33 -0
.gitattributes
CHANGED
|
@@ -974,3 +974,4 @@ videollama2/lib/python3.10/site-packages/pydantic_core/_pydantic_core.cpython-31
|
|
| 974 |
videollama2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/api.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 975 |
parrot/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 976 |
parrot/lib/ossl-modules/legacy.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 974 |
videollama2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/api.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 975 |
parrot/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 976 |
parrot/lib/ossl-modules/legacy.so filter=lfs diff=lfs merge=lfs -text
|
| 977 |
+
vllm/lib/python3.10/site-packages/cupy_backends/cuda/libs/cusparse.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
vllm/lib/python3.10/site-packages/OpenGL/GLES3/VERSION/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (199 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLES3/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (397 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/AMD/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""OpenGL Extensions"""
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/AMD/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (193 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/AMD/__pycache__/gpu_association.cpython-310.pyc
ADDED
|
Binary file (1.01 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/AMD/gpu_association.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension AMD.gpu_association
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.AMD.gpu_association to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/AMD/gpu_association.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.AMD.gpu_association import *
|
| 15 |
+
from OpenGL.raw.GLX.AMD.gpu_association import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitGpuAssociationAMD():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""OpenGL Extensions"""
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/create_context.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension ARB.create_context
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.ARB.create_context to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/ARB/create_context.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.ARB.create_context import *
|
| 15 |
+
from OpenGL.raw.GLX.ARB.create_context import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitCreateContextARB():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/create_context_profile.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension ARB.create_context_profile
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.ARB.create_context_profile to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/ARB/create_context_profile.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.ARB.create_context_profile import *
|
| 15 |
+
from OpenGL.raw.GLX.ARB.create_context_profile import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitCreateContextProfileARB():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/create_context_robustness.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension ARB.create_context_robustness
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.ARB.create_context_robustness to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/ARB/create_context_robustness.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.ARB.create_context_robustness import *
|
| 15 |
+
from OpenGL.raw.GLX.ARB.create_context_robustness import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitCreateContextRobustnessARB():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/fbconfig_float.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension ARB.fbconfig_float
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.ARB.fbconfig_float to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/ARB/fbconfig_float.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.ARB.fbconfig_float import *
|
| 15 |
+
from OpenGL.raw.GLX.ARB.fbconfig_float import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitFbconfigFloatARB():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/framebuffer_sRGB.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension ARB.framebuffer_sRGB
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.ARB.framebuffer_sRGB to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
Conventionally, OpenGL assumes framebuffer color components are stored
|
| 10 |
+
in a linear color space. In particular, framebuffer blending is a
|
| 11 |
+
linear operation.
|
| 12 |
+
|
| 13 |
+
The sRGB color space is based on typical (non-linear) monitor
|
| 14 |
+
characteristics expected in a dimly lit office. It has been
|
| 15 |
+
standardized by the International Electrotechnical Commission (IEC)
|
| 16 |
+
as IEC 61966-2-1. The sRGB color space roughly corresponds to 2.2
|
| 17 |
+
gamma correction.
|
| 18 |
+
|
| 19 |
+
This extension adds a framebuffer capability for sRGB framebuffer
|
| 20 |
+
update and blending. When blending is disabled but the new sRGB
|
| 21 |
+
updated mode is enabled (assume the framebuffer supports the
|
| 22 |
+
capability), high-precision linear color component values for red,
|
| 23 |
+
green, and blue generated by fragment coloring are encoded for sRGB
|
| 24 |
+
prior to being written into the framebuffer. When blending is enabled
|
| 25 |
+
along with the new sRGB update mode, red, green, and blue framebuffer
|
| 26 |
+
color components are treated as sRGB values that are converted to
|
| 27 |
+
linear color values, blended with the high-precision color values
|
| 28 |
+
generated by fragment coloring, and then the blend result is encoded
|
| 29 |
+
for sRGB just prior to being written into the framebuffer.
|
| 30 |
+
|
| 31 |
+
The primary motivation for this extension is that it allows OpenGL
|
| 32 |
+
applications to render into a framebuffer that is scanned to a monitor
|
| 33 |
+
configured to assume framebuffer color values are sRGB encoded.
|
| 34 |
+
This assumption is roughly true of most PC monitors with default
|
| 35 |
+
gamma correction. This allows applications to achieve faithful
|
| 36 |
+
color reproduction for OpenGL rendering without adjusting the
|
| 37 |
+
monitor's gamma correction.
|
| 38 |
+
|
| 39 |
+
The official definition of this extension is available here:
|
| 40 |
+
http://www.opengl.org/registry/specs/ARB/framebuffer_sRGB.txt
|
| 41 |
+
'''
|
| 42 |
+
from OpenGL import platform, constant, arrays
|
| 43 |
+
from OpenGL import extensions, wrapper
|
| 44 |
+
import ctypes
|
| 45 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 46 |
+
from OpenGL.raw.GLX.ARB.framebuffer_sRGB import *
|
| 47 |
+
from OpenGL.raw.GLX.ARB.framebuffer_sRGB import _EXTENSION_NAME
|
| 48 |
+
|
| 49 |
+
def glInitFramebufferSrgbARB():
|
| 50 |
+
'''Return boolean indicating whether this extension is available'''
|
| 51 |
+
from OpenGL import extensions
|
| 52 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/robustness_application_isolation.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension ARB.robustness_application_isolation
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.ARB.robustness_application_isolation to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/ARB/robustness_application_isolation.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.ARB.robustness_application_isolation import *
|
| 15 |
+
from OpenGL.raw.GLX.ARB.robustness_application_isolation import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitRobustnessApplicationIsolationARB():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/robustness_share_group_isolation.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension ARB.robustness_share_group_isolation
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.ARB.robustness_share_group_isolation to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/ARB/robustness_share_group_isolation.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.ARB.robustness_share_group_isolation import *
|
| 15 |
+
from OpenGL.raw.GLX.ARB.robustness_share_group_isolation import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitRobustnessShareGroupIsolationARB():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/ARB/vertex_buffer_object.py
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension ARB.vertex_buffer_object
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.ARB.vertex_buffer_object to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extension defines an interface that allows various types of data
|
| 10 |
+
(especially vertex array data) to be cached in high-performance
|
| 11 |
+
graphics memory on the server, thereby increasing the rate of data
|
| 12 |
+
transfers.
|
| 13 |
+
|
| 14 |
+
Chunks of data are encapsulated within "buffer objects", which
|
| 15 |
+
conceptually are nothing more than arrays of bytes, just like any
|
| 16 |
+
chunk of memory. An API is provided whereby applications can read
|
| 17 |
+
from or write to buffers, either via the GL itself (glBufferData,
|
| 18 |
+
glBufferSubData, glGetBufferSubData) or via a pointer to the memory.
|
| 19 |
+
|
| 20 |
+
The latter technique is known as "mapping" a buffer. When an
|
| 21 |
+
application maps a buffer, it is given a pointer to the memory. When
|
| 22 |
+
the application finishes reading from or writing to the memory, it is
|
| 23 |
+
required to "unmap" the buffer before it is once again permitted to
|
| 24 |
+
use that buffer as a GL data source or sink. Mapping often allows
|
| 25 |
+
applications to eliminate an extra data copy otherwise required to
|
| 26 |
+
access the buffer, thereby enhancing performance. In addition,
|
| 27 |
+
requiring that applications unmap the buffer to use it as a data
|
| 28 |
+
source or sink ensures that certain classes of latent synchronization
|
| 29 |
+
bugs cannot occur.
|
| 30 |
+
|
| 31 |
+
Although this extension only defines hooks for buffer objects to be
|
| 32 |
+
used with OpenGL's vertex array APIs, the API defined in this
|
| 33 |
+
extension permits buffer objects to be used as either data sources or
|
| 34 |
+
sinks for any GL command that takes a pointer as an argument.
|
| 35 |
+
Normally, in the absence of this extension, a pointer passed into the
|
| 36 |
+
GL is simply a pointer to the user's data. This extension defines
|
| 37 |
+
a mechanism whereby this pointer is used not as a pointer to the data
|
| 38 |
+
itself, but as an offset into a currently bound buffer object. The
|
| 39 |
+
buffer object ID zero is reserved, and when buffer object zero is
|
| 40 |
+
bound to a given target, the commands affected by that buffer binding
|
| 41 |
+
behave normally. When a nonzero buffer ID is bound, then the pointer
|
| 42 |
+
represents an offset.
|
| 43 |
+
|
| 44 |
+
In the case of vertex arrays, this extension defines not merely one
|
| 45 |
+
binding for all attributes, but a separate binding for each
|
| 46 |
+
individual attribute. As a result, applications can source their
|
| 47 |
+
attributes from multiple buffers. An application might, for example,
|
| 48 |
+
have a model with constant texture coordinates and variable geometry.
|
| 49 |
+
The texture coordinates might be retrieved from a buffer object with
|
| 50 |
+
the usage mode "STATIC_DRAW", indicating to the GL that the
|
| 51 |
+
application does not expect to update the contents of the buffer
|
| 52 |
+
frequently or even at all, while the vertices might be retrieved from
|
| 53 |
+
a buffer object with the usage mode "STREAM_DRAW", indicating that
|
| 54 |
+
the vertices will be updated on a regular basis.
|
| 55 |
+
|
| 56 |
+
In addition, a binding is defined by which applications can source
|
| 57 |
+
index data (as used by DrawElements, DrawRangeElements, and
|
| 58 |
+
MultiDrawElements) from a buffer object. On some platforms, this
|
| 59 |
+
enables very large models to be rendered with no more than a few
|
| 60 |
+
small commands to the graphics device.
|
| 61 |
+
|
| 62 |
+
It is expected that a future extension will allow sourcing pixel data
|
| 63 |
+
from and writing pixel data to a buffer object.
|
| 64 |
+
|
| 65 |
+
The official definition of this extension is available here:
|
| 66 |
+
http://www.opengl.org/registry/specs/ARB/vertex_buffer_object.txt
|
| 67 |
+
'''
|
| 68 |
+
from OpenGL import platform, constant, arrays
|
| 69 |
+
from OpenGL import extensions, wrapper
|
| 70 |
+
import ctypes
|
| 71 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 72 |
+
from OpenGL.raw.GLX.ARB.vertex_buffer_object import *
|
| 73 |
+
from OpenGL.raw.GLX.ARB.vertex_buffer_object import _EXTENSION_NAME
|
| 74 |
+
|
| 75 |
+
def glInitVertexBufferObjectARB():
|
| 76 |
+
'''Return boolean indicating whether this extension is available'''
|
| 77 |
+
from OpenGL import extensions
|
| 78 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/DFX/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (193 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/DFX/multisample.py
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension DFX.multisample
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.DFX.multisample to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extension provides a mechanism to antialias all GL primitives:
|
| 10 |
+
points, lines, polygons, bitmaps, and images. The technique is to
|
| 11 |
+
sample all primitives multiple times at each pixel. The color sample
|
| 12 |
+
values are resolved to a single, displayable color each time a pixel
|
| 13 |
+
is updated, so the antialiasing appears to be automatic at the
|
| 14 |
+
application level. Because each sample includes depth and stencil
|
| 15 |
+
information, the depth and stencil functions perform equivalently to
|
| 16 |
+
the single-sample mode.
|
| 17 |
+
|
| 18 |
+
An additional buffer, called the multisample buffer, is added to the
|
| 19 |
+
framebuffer. Pixel sample values, including color, depth, and
|
| 20 |
+
stencil values, are stored in this buffer. When the framebuffer
|
| 21 |
+
includes a multisample buffer, it does not also include separate
|
| 22 |
+
depth or stencil buffers, even if the multisample buffer does not
|
| 23 |
+
store depth or stencil values. Color buffers (left/right,
|
| 24 |
+
front/back, and aux) do coexist with the multisample buffer,
|
| 25 |
+
however.
|
| 26 |
+
|
| 27 |
+
Multisample antialiasing is most valuable for rendering polygons,
|
| 28 |
+
because it requires no sorting for hidden surface elimination, and
|
| 29 |
+
it correctly handles adjacent polygons, object silhouettes, and even
|
| 30 |
+
intersecting polygons. If only points or lines are being rendered,
|
| 31 |
+
the "smooth" antialiasing mechanism provided by the base GL may
|
| 32 |
+
result in a higher quality image.
|
| 33 |
+
|
| 34 |
+
This extension is a subset of SGIS_multisample. It differs in these
|
| 35 |
+
key ways:
|
| 36 |
+
|
| 37 |
+
* Fragment alpha values are not affected by the fragment sample mask
|
| 38 |
+
* The sample locations may or may not be fixed. Thus, there is no
|
| 39 |
+
support for rendering the scene multiple times with different
|
| 40 |
+
sample points.
|
| 41 |
+
* Fragment masks are not computed for images or for bitmasks.
|
| 42 |
+
|
| 43 |
+
Because of these differences a new extension was created. However,
|
| 44 |
+
it is not expected that this extension will co-exist with
|
| 45 |
+
SGIS_multisample. Because of this and the fact that there are only
|
| 46 |
+
32 push/pop bits the MULTISAMPLE_BIT_SGIS state value is the same as
|
| 47 |
+
MUTLISAMPLE_BIT_3DFX.
|
| 48 |
+
|
| 49 |
+
The official definition of this extension is available here:
|
| 50 |
+
http://www.opengl.org/registry/specs/DFX/multisample.txt
|
| 51 |
+
'''
|
| 52 |
+
from OpenGL import platform, constant, arrays
|
| 53 |
+
from OpenGL import extensions, wrapper
|
| 54 |
+
import ctypes
|
| 55 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 56 |
+
from OpenGL.raw.GLX.DFX.multisample import *
|
| 57 |
+
from OpenGL.raw.GLX.DFX.multisample import _EXTENSION_NAME
|
| 58 |
+
|
| 59 |
+
def glInitMultisampleDFX():
|
| 60 |
+
'''Return boolean indicating whether this extension is available'''
|
| 61 |
+
from OpenGL import extensions
|
| 62 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/EXT/__pycache__/framebuffer_sRGB.cpython-310.pyc
ADDED
|
Binary file (2.65 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/EXT/__pycache__/stereo_tree.cpython-310.pyc
ADDED
|
Binary file (983 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/EXT/__pycache__/swap_control_tear.cpython-310.pyc
ADDED
|
Binary file (1.02 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/EXT/__pycache__/texture_from_pixmap.cpython-310.pyc
ADDED
|
Binary file (2.26 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""OpenGL Extensions"""
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/agp_offset.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension MESA.agp_offset
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.MESA.agp_offset to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extensions provides a way to convert pointers in an AGP memory
|
| 10 |
+
region into byte offsets into the AGP aperture.
|
| 11 |
+
Note, this extension depends on GLX_NV_vertex_array_range, for which
|
| 12 |
+
no real specification exists. See GL_NV_vertex_array_range for more
|
| 13 |
+
information.
|
| 14 |
+
|
| 15 |
+
The official definition of this extension is available here:
|
| 16 |
+
http://www.opengl.org/registry/specs/MESA/agp_offset.txt
|
| 17 |
+
'''
|
| 18 |
+
from OpenGL import platform, constant, arrays
|
| 19 |
+
from OpenGL import extensions, wrapper
|
| 20 |
+
import ctypes
|
| 21 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 22 |
+
from OpenGL.raw.GLX.MESA.agp_offset import *
|
| 23 |
+
from OpenGL.raw.GLX.MESA.agp_offset import _EXTENSION_NAME
|
| 24 |
+
|
| 25 |
+
def glInitAgpOffsetMESA():
|
| 26 |
+
'''Return boolean indicating whether this extension is available'''
|
| 27 |
+
from OpenGL import extensions
|
| 28 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/copy_sub_buffer.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension MESA.copy_sub_buffer
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.MESA.copy_sub_buffer to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
The glxCopySubBufferMESA() function copies a rectangular region
|
| 10 |
+
of the back color buffer to the front color buffer. This can be
|
| 11 |
+
used to quickly repaint 3D windows in response to expose events
|
| 12 |
+
when the back color buffer cannot be damaged by other windows.
|
| 13 |
+
|
| 14 |
+
The official definition of this extension is available here:
|
| 15 |
+
http://www.opengl.org/registry/specs/MESA/copy_sub_buffer.txt
|
| 16 |
+
'''
|
| 17 |
+
from OpenGL import platform, constant, arrays
|
| 18 |
+
from OpenGL import extensions, wrapper
|
| 19 |
+
import ctypes
|
| 20 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 21 |
+
from OpenGL.raw.GLX.MESA.copy_sub_buffer import *
|
| 22 |
+
from OpenGL.raw.GLX.MESA.copy_sub_buffer import _EXTENSION_NAME
|
| 23 |
+
|
| 24 |
+
def glInitCopySubBufferMESA():
|
| 25 |
+
'''Return boolean indicating whether this extension is available'''
|
| 26 |
+
from OpenGL import extensions
|
| 27 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/pixmap_colormap.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension MESA.pixmap_colormap
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.MESA.pixmap_colormap to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
Since Mesa allows RGB rendering into drawables with PseudoColor,
|
| 10 |
+
StaticColor, GrayScale and StaticGray visuals, Mesa needs a colormap
|
| 11 |
+
in order to compute pixel values during rendering.
|
| 12 |
+
|
| 13 |
+
The colormap associated with a window can be queried with normal
|
| 14 |
+
Xlib functions but there is no colormap associated with pixmaps.
|
| 15 |
+
|
| 16 |
+
The glXCreateGLXPixmapMESA function is an alternative to glXCreateGLXPixmap
|
| 17 |
+
which allows specification of a colormap.
|
| 18 |
+
|
| 19 |
+
The official definition of this extension is available here:
|
| 20 |
+
http://www.opengl.org/registry/specs/MESA/pixmap_colormap.txt
|
| 21 |
+
'''
|
| 22 |
+
from OpenGL import platform, constant, arrays
|
| 23 |
+
from OpenGL import extensions, wrapper
|
| 24 |
+
import ctypes
|
| 25 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 26 |
+
from OpenGL.raw.GLX.MESA.pixmap_colormap import *
|
| 27 |
+
from OpenGL.raw.GLX.MESA.pixmap_colormap import _EXTENSION_NAME
|
| 28 |
+
|
| 29 |
+
def glInitPixmapColormapMESA():
|
| 30 |
+
'''Return boolean indicating whether this extension is available'''
|
| 31 |
+
from OpenGL import extensions
|
| 32 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/query_renderer.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension MESA.query_renderer
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.MESA.query_renderer to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/MESA/query_renderer.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.MESA.query_renderer import *
|
| 15 |
+
from OpenGL.raw.GLX.MESA.query_renderer import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitQueryRendererMESA():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/MESA/set_3dfx_mode.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension MESA.set_3dfx_mode
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.MESA.set_3dfx_mode to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
The Mesa Glide driver allows full-screen rendering or rendering into
|
| 10 |
+
an X window. The glXSet3DfxModeMESA() function allows an application
|
| 11 |
+
to switch between full-screen and windowed rendering.
|
| 12 |
+
|
| 13 |
+
The official definition of this extension is available here:
|
| 14 |
+
http://www.opengl.org/registry/specs/MESA/set_3dfx_mode.txt
|
| 15 |
+
'''
|
| 16 |
+
from OpenGL import platform, constant, arrays
|
| 17 |
+
from OpenGL import extensions, wrapper
|
| 18 |
+
import ctypes
|
| 19 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 20 |
+
from OpenGL.raw.GLX.MESA.set_3dfx_mode import *
|
| 21 |
+
from OpenGL.raw.GLX.MESA.set_3dfx_mode import _EXTENSION_NAME
|
| 22 |
+
|
| 23 |
+
def glInitSet3DfxModeMESA():
|
| 24 |
+
'''Return boolean indicating whether this extension is available'''
|
| 25 |
+
from OpenGL import extensions
|
| 26 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""OpenGL Extensions"""
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (193 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/__pycache__/swap_method.cpython-310.pyc
ADDED
|
Binary file (983 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/__pycache__/sync_control.cpython-310.pyc
ADDED
|
Binary file (989 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/swap_method.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension OML.swap_method
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.OML.swap_method to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/OML/swap_method.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.OML.swap_method import *
|
| 15 |
+
from OpenGL.raw.GLX.OML.swap_method import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitSwapMethodOML():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/OML/sync_control.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension OML.sync_control
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.OML.sync_control to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
The official definition of this extension is available here:
|
| 8 |
+
http://www.opengl.org/registry/specs/OML/sync_control.txt
|
| 9 |
+
'''
|
| 10 |
+
from OpenGL import platform, constant, arrays
|
| 11 |
+
from OpenGL import extensions, wrapper
|
| 12 |
+
import ctypes
|
| 13 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 14 |
+
from OpenGL.raw.GLX.OML.sync_control import *
|
| 15 |
+
from OpenGL.raw.GLX.OML.sync_control import _EXTENSION_NAME
|
| 16 |
+
|
| 17 |
+
def glInitSyncControlOML():
|
| 18 |
+
'''Return boolean indicating whether this extension is available'''
|
| 19 |
+
from OpenGL import extensions
|
| 20 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (194 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/dmbuffer.cpython-310.pyc
ADDED
|
Binary file (3.53 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/fbconfig.cpython-310.pyc
ADDED
|
Binary file (3.41 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/hyperpipe.cpython-310.pyc
ADDED
|
Binary file (978 Bytes). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/pbuffer.cpython-310.pyc
ADDED
|
Binary file (2.75 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/swap_barrier.cpython-310.pyc
ADDED
|
Binary file (1.54 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/swap_group.cpython-310.pyc
ADDED
|
Binary file (1.38 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/video_resize.cpython-310.pyc
ADDED
|
Binary file (1.76 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/video_source.cpython-310.pyc
ADDED
|
Binary file (1.5 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/__pycache__/visual_select_group.cpython-310.pyc
ADDED
|
Binary file (1.66 kB). View file
|
|
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/dmbuffer.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension SGIX.dmbuffer
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.SGIX.dmbuffer to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extension introduces a new type of GLXPbuffer, a DM or Digital
|
| 10 |
+
Media pbuffer. A DM pbuffer is a GLXPbuffer that adopts one or more
|
| 11 |
+
of its buffers from an externally defined and allocated DMbuffer.
|
| 12 |
+
In this way it resembles a GLXPixmap that attaches to an existing
|
| 13 |
+
X pixmap. Like a standard pbuffer it can be used as a non-displayable
|
| 14 |
+
rendering area, or as a read source for pixel data. The externally
|
| 15 |
+
defined buffers of the DM pbuffer can be sequentially associated
|
| 16 |
+
with other DM buffers of the same size and configuration.
|
| 17 |
+
|
| 18 |
+
. The DM pbuffer is described with a new attrib passed to
|
| 19 |
+
glXCreateGLXPbuffer.
|
| 20 |
+
|
| 21 |
+
. A new GLX command allows associating a compatible DMbuffer with
|
| 22 |
+
the DM GLXPbuffer. At associate time the DM buffers described
|
| 23 |
+
by the DMparams are used directly as the corresponding
|
| 24 |
+
buffers of the GLXPbuffer drawable, as described by the FBconfig.
|
| 25 |
+
All other buffers that are part of the config will be created by
|
| 26 |
+
GL without externally referenceable names. A DM pbuffer must be
|
| 27 |
+
associated with a compatible DMbuffer before it can be made current
|
| 28 |
+
to a GLX context.
|
| 29 |
+
|
| 30 |
+
. The externally defined buffers of the DM pbuffer can be changed at
|
| 31 |
+
any time by successfully associating a new DMbuffer with the GLXPbuffer
|
| 32 |
+
through the associate command. It will be the application's
|
| 33 |
+
responsibility to synchronize DMedia, GLX, and GL commands that
|
| 34 |
+
effect the contents of the DM pbuffer.
|
| 35 |
+
|
| 36 |
+
. Any direct GLX rendering context that satisfies config compatibility
|
| 37 |
+
can be used to render to or read from a DM GLXPbuffer.
|
| 38 |
+
A currently associated DMbuffer may simultaneously be in use by
|
| 39 |
+
other clients on the same Display, but will not be destroyed
|
| 40 |
+
while associated with a GLXPbuffer. When the GLXpbuffer is
|
| 41 |
+
destroyed, all buffers that have no remaining clients, including
|
| 42 |
+
the DMbuffer, will be freed.
|
| 43 |
+
|
| 44 |
+
DM GLXPbuffers are proposed as a means for OpenGL to access buffers
|
| 45 |
+
generated by the VL, compression, and other digital media libraries in
|
| 46 |
+
a uniform way. The DMbuffer and DMparams descriptors are left
|
| 47 |
+
intentionally abstract so that the GLX extension can adapt to future
|
| 48 |
+
DM library changes.
|
| 49 |
+
The initial implementation will require that the DMparams descriptor
|
| 50 |
+
supply at least pixel format and packing information, and that the
|
| 51 |
+
DMbuffer provide the size and location of a colorbuffer. GLX will do
|
| 52 |
+
compatibility checking when possible based on the config, params, and
|
| 53 |
+
buffer information at associate time.
|
| 54 |
+
|
| 55 |
+
The official definition of this extension is available here:
|
| 56 |
+
http://www.opengl.org/registry/specs/SGIX/dmbuffer.txt
|
| 57 |
+
'''
|
| 58 |
+
from OpenGL import platform, constant, arrays
|
| 59 |
+
from OpenGL import extensions, wrapper
|
| 60 |
+
import ctypes
|
| 61 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 62 |
+
from OpenGL.raw.GLX.SGIX.dmbuffer import *
|
| 63 |
+
from OpenGL.raw.GLX.SGIX.dmbuffer import _EXTENSION_NAME
|
| 64 |
+
|
| 65 |
+
def glInitDmbufferSGIX():
|
| 66 |
+
'''Return boolean indicating whether this extension is available'''
|
| 67 |
+
from OpenGL import extensions
|
| 68 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/pbuffer.py
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension SGIX.pbuffer
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.SGIX.pbuffer to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extension defines pixel buffers (GLXPbuffers, or pbuffer for
|
| 10 |
+
short). GLXPbuffers are additional non-visible rendering buffers for an
|
| 11 |
+
OpenGL renderer. GLXPbuffers are equivalent to GLXPixmaps with the
|
| 12 |
+
following exceptions:
|
| 13 |
+
|
| 14 |
+
1. There is no associated X pixmap. Also, since a GLXPbuffer is a GLX
|
| 15 |
+
resource, it may not be possible to render to it using X or an
|
| 16 |
+
X extension other than GLX.
|
| 17 |
+
|
| 18 |
+
2. The format of the color buffers and the type and size of any
|
| 19 |
+
associated ancillary buffers for a GLXPbuffer can only be
|
| 20 |
+
described with a GLXFBConfig -- an X Visual cannot be used.
|
| 21 |
+
|
| 22 |
+
3. It is possible to create a GLXPbuffer whose contents may be
|
| 23 |
+
asynchronously lost at any time.
|
| 24 |
+
|
| 25 |
+
4. GLXPbuffers can be rendered to using either direct or indirect
|
| 26 |
+
rendering contexts.
|
| 27 |
+
|
| 28 |
+
5. The allocation of a GLXPbuffer can fail if there are insufficient
|
| 29 |
+
resources (i.e., all the pbuffer memory has been allocated and
|
| 30 |
+
the implementation does not virtualize pbuffer memory.)
|
| 31 |
+
|
| 32 |
+
The intent of the pbuffer semantics is to enable implementations to
|
| 33 |
+
allocate pbuffers in non-visible frame buffer memory. These
|
| 34 |
+
pbuffers are intended to be "static" resources, in that a program
|
| 35 |
+
will typically allocate them only once, rather than as a part of its
|
| 36 |
+
rendering loop. (But they should be deallocated when the program is
|
| 37 |
+
no longer using them -- for example, if the program is iconified.)
|
| 38 |
+
The frame buffer resources that are associated with a pbuffer are
|
| 39 |
+
also static, and are deallocated only when the pbuffer is destroyed,
|
| 40 |
+
or, in the case of a "unpreserved" pbuffer, as a result of X server
|
| 41 |
+
activity that changes its frame buffer requirements.
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
The official definition of this extension is available here:
|
| 45 |
+
http://www.opengl.org/registry/specs/SGIX/pbuffer.txt
|
| 46 |
+
'''
|
| 47 |
+
from OpenGL import platform, constant, arrays
|
| 48 |
+
from OpenGL import extensions, wrapper
|
| 49 |
+
import ctypes
|
| 50 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 51 |
+
from OpenGL.raw.GLX.SGIX.pbuffer import *
|
| 52 |
+
from OpenGL.raw.GLX.SGIX.pbuffer import _EXTENSION_NAME
|
| 53 |
+
|
| 54 |
+
def glInitPbufferSGIX():
|
| 55 |
+
'''Return boolean indicating whether this extension is available'''
|
| 56 |
+
from OpenGL import extensions
|
| 57 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/swap_barrier.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension SGIX.swap_barrier
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.SGIX.swap_barrier to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extension provides the capability to sychronize the buffer
|
| 10 |
+
swaps of different swap groups.
|
| 11 |
+
|
| 12 |
+
A swap group is bound to a _swap_barrier_. The buffer swaps of each
|
| 13 |
+
swap group using that barrier will wait until every swap group using
|
| 14 |
+
that barrier is ready to swap (where readiness is defined below), after
|
| 15 |
+
which time all buffer swaps of all groups using that barrier will
|
| 16 |
+
take place concurrently.
|
| 17 |
+
|
| 18 |
+
This extension extends the set of conditions that must be met before
|
| 19 |
+
a buffer swap can take place.
|
| 20 |
+
|
| 21 |
+
The official definition of this extension is available here:
|
| 22 |
+
http://www.opengl.org/registry/specs/SGIX/swap_barrier.txt
|
| 23 |
+
'''
|
| 24 |
+
from OpenGL import platform, constant, arrays
|
| 25 |
+
from OpenGL import extensions, wrapper
|
| 26 |
+
import ctypes
|
| 27 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 28 |
+
from OpenGL.raw.GLX.SGIX.swap_barrier import *
|
| 29 |
+
from OpenGL.raw.GLX.SGIX.swap_barrier import _EXTENSION_NAME
|
| 30 |
+
|
| 31 |
+
def glInitSwapBarrierSGIX():
|
| 32 |
+
'''Return boolean indicating whether this extension is available'''
|
| 33 |
+
from OpenGL import extensions
|
| 34 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/swap_group.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension SGIX.swap_group
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.SGIX.swap_group to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extension provides the capability to synchronize the buffer swaps
|
| 10 |
+
of a group of GLX drawables. A swap group is created, and drawables are
|
| 11 |
+
added as members to the swap group. Buffer swaps to members of the swap
|
| 12 |
+
group will then take place concurrently.
|
| 13 |
+
|
| 14 |
+
This extension extends the set of conditions that must be met before
|
| 15 |
+
a buffer swap can take place.
|
| 16 |
+
|
| 17 |
+
The official definition of this extension is available here:
|
| 18 |
+
http://www.opengl.org/registry/specs/SGIX/swap_group.txt
|
| 19 |
+
'''
|
| 20 |
+
from OpenGL import platform, constant, arrays
|
| 21 |
+
from OpenGL import extensions, wrapper
|
| 22 |
+
import ctypes
|
| 23 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 24 |
+
from OpenGL.raw.GLX.SGIX.swap_group import *
|
| 25 |
+
from OpenGL.raw.GLX.SGIX.swap_group import _EXTENSION_NAME
|
| 26 |
+
|
| 27 |
+
def glInitSwapGroupSGIX():
|
| 28 |
+
'''Return boolean indicating whether this extension is available'''
|
| 29 |
+
from OpenGL import extensions
|
| 30 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/video_resize.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension SGIX.video_resize
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.SGIX.video_resize to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extension provides a means for doing swap or frame synchronous
|
| 10 |
+
resizing/panning of the area
|
| 11 |
+
that is to be magnified (or passed through) to the output
|
| 12 |
+
video resolution. The purpose of this functionality is to provide a
|
| 13 |
+
means of allowing an application to draw into a smaller viewport to
|
| 14 |
+
reduce the time spent doing pixel fill. This reduced size viewport
|
| 15 |
+
is then magnified up to the video output resolution using the
|
| 16 |
+
SGIX_video_resize extension. This extension differs from SGIX_framezoom
|
| 17 |
+
(number 57) in that it is post framebuffer resizing. Over rendering
|
| 18 |
+
at swap rates and panning at frame rates is possible using frame synchronous
|
| 19 |
+
update instead of swap synchronous update used for the fill reduction case.
|
| 20 |
+
|
| 21 |
+
The official definition of this extension is available here:
|
| 22 |
+
http://www.opengl.org/registry/specs/SGIX/video_resize.txt
|
| 23 |
+
'''
|
| 24 |
+
from OpenGL import platform, constant, arrays
|
| 25 |
+
from OpenGL import extensions, wrapper
|
| 26 |
+
import ctypes
|
| 27 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 28 |
+
from OpenGL.raw.GLX.SGIX.video_resize import *
|
| 29 |
+
from OpenGL.raw.GLX.SGIX.video_resize import _EXTENSION_NAME
|
| 30 |
+
|
| 31 |
+
def glInitVideoResizeSGIX():
|
| 32 |
+
'''Return boolean indicating whether this extension is available'''
|
| 33 |
+
from OpenGL import extensions
|
| 34 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
### END AUTOGENERATED SECTION
|
vllm/lib/python3.10/site-packages/OpenGL/GLX/SGIX/video_source.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''OpenGL extension SGIX.video_source
|
| 2 |
+
|
| 3 |
+
This module customises the behaviour of the
|
| 4 |
+
OpenGL.raw.GLX.SGIX.video_source to provide a more
|
| 5 |
+
Python-friendly API
|
| 6 |
+
|
| 7 |
+
Overview (from the spec)
|
| 8 |
+
|
| 9 |
+
This extension provides the capability to source pixel data from a
|
| 10 |
+
video stream. A new type of GLXDrawable (GLXVideoSourceSGIX) is
|
| 11 |
+
introduced which represents the drain node of a Video Library (VL)
|
| 12 |
+
path. A GLXVideoSourceSGIX may be specified as the <read> parameter
|
| 13 |
+
to glXMakeCurrentReadSGI to indicate that pixel data should be read
|
| 14 |
+
from the specified video source instead of from the framebuffer. A
|
| 15 |
+
GLXVideoSourceSGIX may only be specified as a <read> drawable.
|
| 16 |
+
|
| 17 |
+
The official definition of this extension is available here:
|
| 18 |
+
http://www.opengl.org/registry/specs/SGIX/video_source.txt
|
| 19 |
+
'''
|
| 20 |
+
from OpenGL import platform, constant, arrays
|
| 21 |
+
from OpenGL import extensions, wrapper
|
| 22 |
+
import ctypes
|
| 23 |
+
from OpenGL.raw.GLX import _types, _glgets
|
| 24 |
+
from OpenGL.raw.GLX.SGIX.video_source import *
|
| 25 |
+
from OpenGL.raw.GLX.SGIX.video_source import _EXTENSION_NAME
|
| 26 |
+
|
| 27 |
+
def glInitVideoSourceSGIX():
|
| 28 |
+
'''Return boolean indicating whether this extension is available'''
|
| 29 |
+
from OpenGL import extensions
|
| 30 |
+
return extensions.hasGLExtension( _EXTENSION_NAME )
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
### END AUTOGENERATED SECTION
|