
    W|h                     H    S SK Jr  S SKJr  S SKJr  \ " S S\5      5       rg)    )	dataclass)Clip)Effectc                   6    \ rS rSr% Sr\\S'   S\S\4S jrSr	g)	GammaCorrection   z!Gamma-correction of a video clip.gammaclipreturnc                 2   ^  U 4S jnUR                  U5      $ )zApply the effect to the clip.c                 V   > SSU -  S-  TR                   -  -  nUR                  S5      $ )N   g      ?uint8)r	   astype)im	correctedselfs     Z/home/james-whalen/.local/lib/python3.13/site-packages/moviepy/video/fx/GammaCorrection.pyfilter%GammaCorrection.apply.<locals>.filter   s/    sRx#~$**<<I##G,,    )image_transform)r   r
   r   s   `  r   applyGammaCorrection.apply   s    	- ##F++r    N)
__name__
__module____qualname____firstlineno____doc__float__annotations__r   r   __static_attributes__r   r   r   r   r      s    +L,$ ,4 ,r   r   N)dataclassesr   moviepy.Clipr   moviepy.Effectr   r   r   r   r   <module>r'      s)    !  ! ,f , ,r   