Download lib/python3.9/site-packages/OpenGL/GL/OML/interlace.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/OML/interlace.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/OML/interlace.py
-
curl -L -o interlace.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/OML/interlace.py
1.42 kB
| '''OpenGL extension OML.interlace | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.OML.interlace to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension provides a way to interlace rows of pixels when | |
| drawing, reading, or copying pixel rectangles or texture images. In | |
| this context, interlacing means skiping over rows of pixels or | |
| texels in the destination. This is useful for dealing with video | |
| data since a single frame of video is typically composed from two | |
| images or fields: one image specifying the data for even rows of the | |
| frame and the other image specifying the data for odd rows of the | |
| frame. | |
| The functionality provided by this extension is a combination | |
| of the older SGIX_interlace and INGR_interlace_read extensions, | |
| with changes applying interlacing to texture image queries. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/OML/interlace.txt | |
| ''' | |
| from OpenGL import platform, constant, arrays | |
| from OpenGL import extensions, wrapper | |
| import ctypes | |
| from OpenGL.raw.GL import _types, _glgets | |
| from OpenGL.raw.GL.OML.interlace import * | |
| from OpenGL.raw.GL.OML.interlace import _EXTENSION_NAME | |
| def glInitInterlaceOML(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |