Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FixRowBrightnessProtect2(clip c, int row, int adj_val, int "prot_val"){
- prot_val = Default(prot_val, 20)
- c
- ConvertToY8()
- Crop(0,row,0,1)
- mt_lut("x 16 - " + string(100-adj_val) + " / 100 * 16 + x " + string(255-prot_val) + " - -10 / 0 max 1 min * x x " + string(245-prot_val) + " - 10 / 0 max 1 min * + 16 235 clip")
- Overlay(c,last,0,row,mode="luma")
- }
- function FixColumnBrightnessProtect2(clip c, int column, int adj_val, int "prot_val"){
- prot_val = Default(prot_val, 20)
- c
- ConvertToY8()
- Crop(column,0,1,0)
- mt_lut("x 16 - " + string(100-adj_val) + " / 100 * 16 + x " + string(255-prot_val) + " - -10 / 0 max 1 min * x x " + string(245-prot_val) + " - 10 / 0 max 1 min * + 16 235 clip")
- Overlay(c,last,column,0,mode="luma")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement