o
    Y+i                     @   s   d dl Zdd ZdS )    Nc                    s    fdd}|  |S )z Replaces each frame at time t by the mean of `nframes` equally spaced frames
    taken in the interval [t-d, t+d]. This results in motion blur.c                    sJ   t | | }t jdt j fdd|D dd dd}|dS )	Ng      ?c                    s   g | ]} |qS  r   ).0t_gfr   O/var/www/html/venv/lib/python3.10/site-packages/moviepy/video/fx/supersample.py
<listcomp>
   s    z+supersample.<locals>.fl.<locals>.<listcomp>uint16)dtyper   )axisuint8)nplinspacemeanarrayastype)r   tttavgdnframesr   r   fl   s   *
zsupersample.<locals>.fl)r   )clipr   r   r   r   r   r   supersample   s   
r   )numpyr   r   r   r   r   r   <module>   s    