Ë
    ¦üàg+  ã                  ó�   — d dl mZ ddlmZmZmZ  G d„ d«      Z G d„ de«      Z G d„ d	e«      Z G d
„ de«      Z	 G d„ de«      Z
y)é    )Úannotationsé   )ÚImageÚImageFilterÚ	ImageStatc                  ó*   — e Zd ZU ded<   ded<   dd„Zy)Ú_EnhanceúImage.ImageÚimageÚ
degeneratec                óX   — t        j                  | j                  | j                  |«      S )aµ  
        Returns an enhanced image.

        :param factor: A floating point value controlling the enhancement.
                       Factor 1.0 always returns a copy of the original image,
                       lower factors mean less color (brightness, contrast,
                       etc), and higher values more. There are no restrictions
                       on this value.
        :rtype: :py:class:`~PIL.Image.Image`
        )r   Úblendr   r   )ÚselfÚfactors     úN/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/PIL/ImageEnhance.pyÚenhancez_Enhance.enhance   s   € ô �{‰{˜4Ÿ?™?¨D¯J©J¸Ó?Ð?ó    N)r   ÚfloatÚreturnr
   )Ú__name__Ú
__module__Ú__qualname__Ú__annotations__r   © r   r   r	   r	      s   … ØÓØÓô@r   r	   c                  ó   — e Zd ZdZdd„Zy)ÚColora  Adjust image color balance.

    This class can be used to adjust the colour balance of an image, in
    a manner similar to the controls on a colour TV set. An enhancement
    factor of 0.0 gives a black and white image. A factor of 1.0 gives
    the original image.
    c                óú   — || _         d| _        d|j                  «       v rd| _        | j                  |j                  k7  r4|j	                  | j                  «      j	                  |j                  «      }|| _        y )NÚLÚAÚLA)r   Úintermediate_modeÚgetbandsÚmodeÚconvertr   ©r   r   s     r   Ú__init__zColor.__init__4   sd   € ØˆŒ
Ø!$ˆÔØ�%—.‘.Ó"Ñ"Ø%)ˆDÔ"à×!Ñ! U§Z¡ZÒ/Ø—M‘M $×"8Ñ"8Ó9×AÑAÀ%Ç*Á*ÓMˆEØˆ�r   N©r   r
   r   ÚNone©r   r   r   Ú__doc__r&   r   r   r   r   r   +   s   „ ñô r   r   c                  ó   — e Zd ZdZdd„Zy)ÚContrastzòAdjust image contrast.

    This class can be used to control the contrast of an image, similar
    to the contrast control on a TV set. An enhancement factor of 0.0
    gives a solid gray image. A factor of 1.0 gives the original image.
    c                ó^  — || _         |j                  dk7  r|j                  d«      }t        t	        j
                  |«      j                  d   dz   «      }t        j                  d|j                  |«      | _
        | j                  j                  | j                   j                  k7  r4| j                  j                  | j                   j                  «      | _
        d| j                   j                  «       v r5| j                  j                  | j                   j                  d«      «       y y )Nr   r   g      à?r   )r   r#   r$   Úintr   ÚStatÚmeanr   ÚnewÚsizer   r"   ÚputalphaÚ
getchannel)r   r   r0   s      r   r&   zContrast.__init__G   sÑ   € ØˆŒ
Ø�:‰:˜ÒØ—M‘M #Ó&ˆEÜ”9—>‘> %Ó(×-Ñ-¨aÑ0°3Ñ6Ó7ˆÜŸ)™) C¨¯©°TÓ:ˆŒØ�?‰?×Ñ 4§:¡:§?¡?Ò2Ø"Ÿo™o×5Ñ5°d·j±j·o±oÓFˆDŒOà�$—*‘*×%Ñ%Ó'Ñ'Ø�O‰O×$Ñ$ T§Z¡Z×%:Ñ%:¸3Ó%?Õ@ð (r   Nr'   r)   r   r   r   r,   r,   ?   s   „ ñô
Ar   r,   c                  ó   — e Zd ZdZdd„Zy)Ú
BrightnesszÅAdjust image brightness.

    This class can be used to control the brightness of an image.  An
    enhancement factor of 0.0 gives a black image. A factor of 1.0 gives the
    original image.
    c                óì   — || _         t        j                  |j                  |j                  d«      | _        d|j                  «       v r+| j
                  j                  |j                  d«      «       y y )Nr   r   )	r   r   r1   r#   r2   r   r"   r3   r4   r%   s     r   r&   zBrightness.__init__\   sV   € ØˆŒ
ÜŸ)™) E§J¡J°·
±
¸AÓ>ˆŒà�%—.‘.Ó"Ñ"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   Nr'   r)   r   r   r   r6   r6   T   ó   „ ñô<r   r6   c                  ó   — e Zd ZdZdd„Zy)Ú	SharpnesszðAdjust image sharpness.

    This class can be used to adjust the sharpness of an image. An
    enhancement factor of 0.0 gives a blurred image, a factor of 1.0 gives the
    original image, and a factor of 2.0 gives a sharpened image.
    c                óÔ   — || _         |j                  t        j                  «      | _        d|j                  «       v r+| j                  j                  |j                  d«      «       y y )Nr   )r   Úfilterr   ÚSMOOTHr   r"   r3   r4   r%   s     r   r&   zSharpness.__init__l   sP   € ØˆŒ
ØŸ,™,¤{×'9Ñ'9Ó:ˆŒà�%—.‘.Ó"Ñ"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   Nr'   r)   r   r   r   r:   r:   d   r8   r   r:   N)Ú
__future__r   Ú r   r   r   r	   r   r,   r6   r:   r   r   r   ú<module>r@      sN   ðõ( #ç +Ñ +÷@ñ @ô$ ˆHô  ô(Aˆxô Aô*<�ô <ô <�õ <r   