ó
    š3j)  ã                   ó`   • S r SSKJrJrJr  SSKJrJr  SSKrSSKJ	r	J
r
  SSK7  SSKJr  S rg)	aˆ  OpenGL extension SGIX.subsample

This module customises the behaviour of the 
OpenGL.raw.GL.SGIX.subsample to provide a more 
Python-friendly API

Overview (from the spec)
        
                Many video image formats and compression techniques utilize
                various component subsamplings, so it is necessary to provide a
                mechanism to specify the up- and down-sampling of components as
                pixel data is drawn from and read back to the client. Though
                subsampled components are normally associated with the video
                color space, YCrCb, use of subsampling in OpenGL does not imply
                a specific color space.
        
                This extension defines new pixel storage modes that are used in
                the conversion of image data to and from component subsampled
                formats on the client side. The extension defines a new pixel
                storage mode to specify these sampling patterns, there are
                three legal values (PIXEL_SUBSAMPLE_4444_SGIX, 
                PIXEL_SUBSAMPLE_4242_SGIX, and 
                PIXEL_SUBSAMPLE_2424_SGIX).
        
                When pixel data is received from the client and an unpacking
                upsampling mode other than PIXEL_SUBSAMPLE_4444_SGIX is 
                specified, the upsampling is performed via replication, 
                unless otherwise specified by RESAMPLE_SGIX.
        
                Similarly, when pixel data is read back to the client and a
                packing downsampling mode other than 
                PIXEL_SUBSAMPLE_4444_SGIX is specified, downsampling is 
                performed via simple component decimation (point sampling), 
                unless otherwise specified by RESAMPLE_SGIX.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/SGIX/subsample.txt
é    )ÚplatformÚconstantÚarrays)Ú
extensionsÚwrapperN)Ú_typesÚ_glgets)Ú*)Ú_EXTENSION_NAMEc                  ó:   • SSK Jn   U R                  " [        5      $ )z=Return boolean indicating whether this extension is availabler   ©r   )ÚOpenGLr   ÚhasGLExtensionr   r   s    ÚR/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/SGIX/subsample.pyÚglInitSubsampleSGIXr   .   s   € å!Ø×$Ò$¤oÓ7Ð7ó    )Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLr   r	   ÚOpenGL.raw.GL.SGIX.subsampler   r   © r   r   Ú<module>r      s'   ðñ%÷L .Ñ -ß &Û ß )Ü *Ý 8ó8r   