Advertisement
nangua0302

FixRowBrightnessProtect2~D-Z0N3

Apr 10th, 2018
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function FixRowBrightnessProtect2(clip c, int row, int adj_val, int "prot_val"){
  2. prot_val = Default(prot_val, 20)
  3. c
  4. ConvertToY8()
  5. Crop(0,row,0,1)
  6. 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")
  7. Overlay(c,last,0,row,mode="luma")
  8. }
  9.  
  10. function FixColumnBrightnessProtect2(clip c, int column, int adj_val, int "prot_val"){
  11. prot_val = Default(prot_val, 20)
  12. c
  13. ConvertToY8()
  14. Crop(column,0,1,0)
  15. 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")
  16. Overlay(c,last,column,0,mode="luma")
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement