ó
    š3jD  ã                   ó`   • 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 EXT.YUV_target

This module customises the behaviour of the 
OpenGL.raw.GLES2.EXT.YUV_target to provide a more 
Python-friendly API

Overview (from the spec)
        
        This extension adds support for three new YUV related items: first
        rendering to YUV images, second sampling from YUV images while keeping the
        data in YUV space, third it defines a new built in function that does
        conversion from RGB to YUV with controls to choose ITU-R BT.601-7,
        ITU-R BT.601-7 Full range (JFIF images), or ITU-R BT.709-5 standard.
        
        This new functionality is layered on top of the OES_EGL_image_external
        extension.
        
        To perform the YUV rendering capability in this extension an application
        will attach a texture to the framebuffer object as the color attachment.
        If the texture has a target type of TEXTURE_EXTERNAL_OES with YUV color
        format then the GL driver can use this framebuffer object as the render
        target, TEXTURE_EXTERNAL_OES target with RGB color format are not allowed
        with this extension.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/YUV_target.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    ÚU/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GLES2/EXT/YUV_target.pyÚglInitYuvTargetEXTr   #   s   € å!Ø×$Ò$¤oÓ7Ð7ó    )Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLES2r   r	   ÚOpenGL.raw.GLES2.EXT.YUV_targetr   r   © r   r   Ú<module>r      s&   ðñ÷6 .Ñ -ß &Û ß ,Ü -Ý ;ó8r   