§
    7?Äj"  ã                   ób   — d dl mZ d dlmZ d dlmZ d dlmZ e G d„ de¦  «        ¦   «         ZdS )é    )Ú	dataclass)ÚClip)ÚEffect)Úconcatenate_videoclipsc                   ój   — e Zd ZU dZdZeed<   dZeed<   dZeed<   dZ	eed<   dZ
eed	<   d
edefd„ZdS )ÚFreezeaL  Momentarily freeze the clip at time t.

    Set `t='end'` to freeze the clip at the end (actually it will freeze on the
    frame at time clip.duration - padding_end seconds - 1 / clip_fps).
    With ``duration`` you can specify the duration of the freeze.
    With ``total_duration`` you can specify the total duration of
    the clip and the freeze (i.e. the duration of the freeze is
    automatically computed). One of them must be provided.

    With ``update_start_end`` you can define if the effect must preserve
    and/or update start and end properties of the original clip
    r   ÚtNÚfreeze_durationÚtotal_durationÚpadding_endTÚupdate_start_endÚclipÚreturnc                 ó˜  — |j         €t          d¦  «        ‚| j        dk    r|j         | j        z
  d|j        z  z
  | _        | j        €*| j        €t          d¦  «        ‚| j        |j         z
  | _        | j        dk    r|d| j        …         gng }|                     | j        ¦  «                             | j        ¦  «        g}| j        |j         k    r|| j        d…         gng }t          ||z   |z   ¦  «        }| j
        rJ|j        �|                     |j        ¦  «        }|j        �"|                     |j        | j        z   ¦  «        }|S )zApply the effect to the clip.NzAttribute 'duration' not setÚendé   z=You must provide either 'freeze_duration' or 'total_duration'r   )ÚdurationÚ
ValueErrorr	   r   Úfpsr
   r   Úto_ImageClipÚwith_durationr   r   ÚstartÚ
with_startr   Úwith_end)Úselfr   ÚbeforeÚfreezeÚafterÚnew_clips         úHC:\Projects\Historical\venv\Lib\site-packages\moviepy/video/fx/Freeze.pyÚapplyzFreeze.apply   sS  € àŒ=Ð ÝÐ;Ñ<Ô<Ð<àŒ6�UŠ?ˆ?Ø”] TÔ%5Ñ5¸¸D¼H¹ÑDˆDŒFàÔÐ'ØÔ"Ð*Ý ØSñô ð ð $(Ô#6¸¼Ñ#FˆDÔ à&*¤f°¢k k�$�x˜œ�x”.Ð!Ð!¸ˆØ×#Ò# D¤FÑ+Ô+×9Ò9¸$Ô:NÑOÔOÐPˆØ%)¤V¨t¬}Ò%<Ð%<��d”f�h�h”Ð Ð À2ˆå)¨&°6©/¸EÑ*AÑBÔBˆØÔ ð 	NØŒzÐ%Ø#×.Ò.¨t¬zÑ:Ô:�ØŒxÐ#Ø#×,Ò,¨T¬X¸Ô8LÑ-LÑMÔM�àˆó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   ÚfloatÚ__annotations__r
   r   r   r   Úboolr   r!   © r"   r    r   r      s’   € € € € € € ðð ð €A€u€L€L�LØ!€O�UÐ!Ð!Ñ!Ø €N�EÐ Ð Ñ Ø€K�ÐÐÑØ!Ð�dÐ!Ð!Ñ!ð˜$ð  4ð ð ð ð ð ð r"   r   N)	Údataclassesr   Úmoviepy.Clipr   Úmoviepy.Effectr   Ú,moviepy.video.compositing.CompositeVideoClipr   r   r*   r"   r    ú<module>r/      s�   ðØ !Ð !Ð !Ð !Ð !Ð !à Ð Ð Ð Ð Ð Ø !Ð !Ð !Ð !Ð !Ð !Ø OÐ OÐ OÐ OÐ OÐ Oð ð.ð .ð .ð .ð .ˆVñ .ô .ñ „ð.ð .ð .r"   