Ë
    D·j7  ã                  ó�   — 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     ú^/var/www/html/ai-video-generator/backend/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                  «      j                  |j                  «      | _        y )NÚLÚAÚLA)r   Úintermediate_modeÚgetbandsÚconvertÚmoder   ©r   r   s     r   Ú__init__zColor.__init__4   sM   € ØˆŒ
Ø!$ˆÔØ�%—.‘.Ó"Ñ"Ø%)ˆDÔ"àŸ-™-¨×(>Ñ(>Ó?×GÑGÈÏ
É
ÓSˆ�r   N©r   r
   r   ÚNone©r   r   r   Ú__doc__r&   r   r   r   r   r   +   s   „ ñôT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                ó„  — || _         t        t        j                  |j	                  d«      «      j
                  d   dz   «      }t        j                  d|j                  |«      j	                  |j                  «      | _
        d|j                  «       v r+| j                  j                  |j                  d«      «       y y )Nr   r   g      à?r   )r   Úintr   ÚStatr#   Úmeanr   ÚnewÚsizer$   r   r"   ÚputalphaÚ
getchannel)r   r   r0   s      r   r&   zContrast.__init__E   s�   € ØˆŒ
Ü”9—>‘> %§-¡-°Ó"4Ó5×:Ñ:¸1Ñ=ÀÑCÓDˆÜŸ)™) C¨¯©°TÓ:×BÑBÀ5Ç:Á:ÓNˆŒà�%—.‘.Ó"Ñ"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   Nr'   r)   r   r   r   r,   r,   =   s   „ ñô<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__V   sV   € ØˆŒ
ÜŸ)™) E§J¡J°·
±
¸AÓ>ˆŒà�%—.‘.Ó"Ñ"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   Nr'   r)   r   r   r   r6   r6   N   ó   „ ñô<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__f   sP   € ØˆŒ
ØŸ,™,¤{×'9Ñ'9Ó:ˆŒà�%—.‘.Ó"Ñ"Ø�O‰O×$Ñ$ U×%5Ñ%5°cÓ%:Õ;ð #r   Nr'   r)   r   r   r   r:   r:   ^   r8   r   r:   N)Ú
__future__r   Ú r   r   r   r	   r   r,   r6   r:   r   r   r   ú<module>r@      sN   ðõ( #ç +Ñ +÷@ñ @ô$TˆHô Tô$<ˆxô <ô"<�ô <ô <�õ <r   