SHARE
TWEET

Untitled

a guest Mar 26th, 2018 24 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.     c
  3.     ExtractY()
  4.     mt_invert()
  5.     SmoothLevels(255-input_low,1,255-input_high,255-output_low,255-output_high,protect=protect_value,chroma=0,useMT=2)
  6.     mt_invert()
  7.     Overlay(c.ExtractY(),Crop(0,row,0,1),0,row,mode="luma")
  8.     CombinePlanes(last, c, planes="YUV", pixel_type="YV12")
  9. }
  10.  
  11. function FixColumnBrightnessProtect(clip c, int column, int input_low, int input_high, int output_low, int output_high, int protect_value){
  12.     c
  13.     ExtractY()
  14.     mt_invert()
  15.     SmoothLevels(255-input_low,1,255-input_high,255-output_low,255-output_high,protect=protect_value,chroma=0,useMT=2)
  16.     mt_invert()
  17.     Overlay(c.ExtractY(),Crop(column,0,1,0),column,0,mode="luma")
  18.     CombinePlanes(last, c, planes="YUV", pixel_type="YV12")
  19. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top