SHARE
TWEET

Untitled

a guest Feb 5th, 2018 33 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function FixRowBrightnessProtect(clip c, int row, int input_low, int input_high, int output_low, int output_high, int protect_value){
  2.     input_low=Default(input_low,16)
  3.     input_high=Default(input_high,255)
  4.     output_low=Default(output_low,16)
  5.     output_high=Default(output_high,255)
  6.     protect_value=Default(protect_value,20)
  7.     c
  8.     mt_invert()
  9.     SmoothLevels(255-input_low,1,255-input_high,255-output_low,255-output_high,protect=protect_value)
  10.     mt_invert()
  11.     ConvertToY8().Crop(0,row,0,1)
  12.     Overlay(c,last,0,row,mode="luma")
  13. }
  14.  
  15. function FixColumnBrightnessProtect(clip c, int column, int input_low, int input_high, int output_low, int output_high, int protect_value){
  16.     input_low=Default(input_low,16)
  17.     input_high=Default(input_high,255)
  18.     output_low=Default(output_low,16)
  19.     output_high=Default(output_high,255)
  20.     protect_value=Default(protect_value,20)
  21.     c
  22.     mt_invert()
  23.     SmoothLevels(255-input_low,1,255-input_high,255-output_low,255-output_high,protect=protect_value)
  24.     mt_invert()
  25.     ConvertToY8().Crop(column,0,1,0)
  26.     Overlay(c,last,column,0,mode="luma")
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top