
    i                         d dl ZddlmZ d Zy)    N   )	ImageClipc                     t        t              rj                  t        t        j                        r| j                  fd      S | j                  fd      S )z Returns the logical 'or' (max) 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                 0    t        j                  |       S N)npmaximum)f
other_clips    V/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/video/fx/mask_or.py<lambda>zmask_or.<locals>.<lambda>   s    RZZ:%>     c                 Z    t        j                   | |      j                  |            S r   )r   r	   	get_frame)gftr   s     r   r   zmask_or.<locals>.<lambda>   s%    2::be1;1E1Ea1H$J r   )
isinstancer   imgr   ndarrayfl_imagefl)clipr   s    `r   mask_orr      sO     *i(..Z*bjj)MM>??GG J K Kr   )numpyr   	VideoClipr   r    r   r   <module>r      s     !Kr   