
    i                         ddZ y)    c                 8    fd}| j                  |      S )z* luminosity-contrast correction of a clip c                 ~    d| z  } | z   | t              z
  z  z   }d||dk  <   d||dkD  <   |j                  d      S )Ng      ?r      uint8)floatastype)im	correctedcontrastcontrast_thrlums     [/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/video/fx/lum_contrast.pyfl_imagezlum_contrast.<locals>.fl_image   sV    VHxE,,?)?@@	#$	)a- %(	)c/"((    )r   )clipr   r   r   r   s    ``` r   lum_contrastr      s    ) ==""r   N)r   r      )r    r   r   <module>r      s
   
#r   