
    W|h                     P    S SK Jr  S SKrS SKJr  S SKJr  \ " S S\5      5       rg)    )	dataclassN)Clip)Effectc                   @    \ rS rSr% Sr\\S'   \\S'   S\S\4S jr	Sr
g	)
SuperSample	   zReplaces each frame at time t by the mean of `n_frames` equally spaced frames
taken in the interval [t-d, t+d]. This results in motion blur.
dn_framesclipreturnc                 2   ^  U 4S jnUR                  U5      $ )zApply the effect to the clip.c                 *  > [         R                  " UTR                  -
  UTR                  -   TR                  5      n[         R                  " S[         R
                  " U Vs/ s H
  o0" U5      PM     snSS9-  SS9nUR                  S5      $ s  snf )Ng      ?uint16)dtyper   )axisuint8)nplinspacer	   r
   meanarrayastype)	get_framettimingst_frame_averageselfs        V/home/james-whalen/.local/lib/python3.13/site-packages/moviepy/video/fx/SuperSample.pyfilter!SuperSample.apply.<locals>.filter   sy    kk!dff*a$&&j$--HGGGbhh@"	"@QQM !''00  As   #B)	transform)r   r   r   s   `  r   applySuperSample.apply   s    	1 ~~f%%     N)__name__
__module____qualname____firstlineno____doc__float__annotations__intr   r"   __static_attributes__r%   r$   r   r   r   	   s&     HM&$ &4 &r$   r   )	dataclassesr   numpyr   moviepy.Clipr   moviepy.Effectr   r   r%   r$   r   <module>r3      s,    !   ! && & &r$   