a
    i‚jD  ã                   @   s`   d Z ddlmZmZmZ ddlmZmZ ddlZddlm	Z	m
Z
 ddlT ddlmZ dd	„ ZdS )
ag  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                  C   s   ddl m}  |  t¡S )z=Return boolean indicating whether this extension is availabler   ©r   )ÚOpenGLr   ZhasGLExtensionr
   r   © r   úY/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES2/EXT/YUV_target.pyÚglInitYuvTargetEXT#   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES2r   r   ZOpenGL.raw.GLES2.EXT.YUV_targetr
   r   r   r   r   r   Ú<module>   s   