Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FixRowBrightnessProtect(clip c, int row, int input_low, int input_high, int output_low, int output_high, int protect_value){
- c
- ExtractY()
- mt_invert()
- SmoothLevels(255-input_low,1,255-input_high,255-output_low,255-output_high,protect=protect_value,chroma=0,useMT=2)
- mt_invert()
- Overlay(c.ExtractY(),Crop(0,row,0,1),0,row,mode="luma")
- CombinePlanes(last, c, planes="YUV", pixel_type="YV12")
- }
- function FixColumnBrightnessProtect(clip c, int column, int input_low, int input_high, int output_low, int output_high, int protect_value){
- c
- ExtractY()
- mt_invert()
- SmoothLevels(255-input_low,1,255-input_high,255-output_low,255-output_high,protect=protect_value,chroma=0,useMT=2)
- mt_invert()
- Overlay(c.ExtractY(),Crop(column,0,1,0),column,0,mode="luma")
- CombinePlanes(last, c, planes="YUV", pixel_type="YV12")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement