o
    Y+i–  ã                   @   s    d dl ZddlmZ dd„ ZdS )é    Né   )Ú	ImageClipc                    s@   t ˆ tƒrˆ j‰ t ˆ tjƒr|  ‡ fdd„¡S |  ‡ fdd„¡S )zµ Returns the logical 'and' (min) between two masks.
        other_clip can be a mask clip or a picture (np.array).
        The result has the duration of 'clip' (if it has any)
    c                    s   t  | ˆ ¡S ©N)ÚnpÚminimum)Úf©Ú
other_clip© úL/var/www/html/venv/lib/python3.10/site-packages/moviepy/video/fx/mask_and.pyÚ<lambda>   s    zmask_and.<locals>.<lambda>c                    s   t  | |ƒˆ  |¡¡S r   )r   r   Ú	get_frame)ÚgfÚtr   r
   r   r      s   
 ÿ)Ú
isinstancer   Úimgr   ÚndarrayÚfl_imageÚfl)Úclipr	   r
   r   r   Úmask_and   s
   
r   )Únumpyr   Ú	VideoClipr   r   r
   r
   r
   r   Ú<module>   s    