Buckets:
firestryker/ubuntu / LTX2.3-Studio /env /lib /python3.12 /site-packages /OpenGL /GL /OML /resample.py
| '''OpenGL extension OML.resample | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.OML.resample to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension enhances the resampling capabilities of the | |
| OML_subsample extension. It is loosely based on the SGIX_resample | |
| extension. | |
| When converting data from subsampled to uniform sampling, upsampling | |
| may be performed by one of three methods: component replication, | |
| zero fill, or adjacent neighbor averaging. | |
| When converting data from uniform sampling to subsampled form, | |
| downsampling may be performed only by component decimation (point | |
| sampling) or averaging. | |
| Upsampling and downsampling filters other than those defined by this | |
| extension may be performed by appropriate use of convolution and | |
| other pixel transfer operations. The zero fill unpacking mode is | |
| included to assist applications wanting to define their own filters. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/OML/resample.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.resample import * | |
| from OpenGL.raw.GL.OML.resample import _EXTENSION_NAME | |
| def glInitResampleOML(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |
Xet Storage Details
- Size:
- 1.5 kB
- Xet hash:
- 255cb5a3d5bc2185515b4cfdbbce1cbbc8a23ad01d4a3dccab5f2f0fa5c6f6b1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.