Advertisement
AzraelNewtype

soothess

Aug 19th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function SootheSS(clip sharp, clip orig, int "sootheT", int "sootheS")
  2. {
  3. sootheT  = default(sootheT, 25 )
  4. sootheS  = default(sootheS,  0 )
  5. sootheT  = (sootheT > 100) ? 100 : (sootheT < -100) ? -100 : sootheT
  6. sootheS  = (sootheS > 100) ? 100 : (sootheS < 0) ? 0 : sootheS
  7. ST    = string( 100 - abs(sootheT))
  8. SSPT  = string( 100 - abs(sootheS))
  9.  
  10. mt_makediff(orig,sharp)
  11.  
  12. (sootheS==0) ? last
  13.  \           : mt_lutxy( last, last.removegrain(20,-1,-1),
  14.  \             "x 128 - y 128 - * 0 < x 128 - 100 / "+SSPT+" * 128 + x 128 - abs y 128 - abs > x "+SSPT+" * y 100 "+SSPT+" - * + 100 / x ? ?", chroma="ignore")
  15.  
  16. (sootheT==0) ? last
  17.  \           : mt_lutxy( last, last.temporalsoften(1,255,0,32,2),
  18.  \           "x 128 - y 128 - * 0 < x 128 - 100 / "+ST+" * 128 + x 128 - abs y 128 - abs > x "+ST+" * y 100 "+ST+" - * + 100 / x ? ?", chroma="ignore")
  19.  
  20. (sootheT > -1) ? last
  21.  \             : mt_lutxy( last, last.temporalsoften(1,255,0,32,2),
  22.  \             "x 128 - y 128 - * 0 < x 128 - 100 / "+ST+" * 128 + x 128 - abs y 128 - abs > x "+ST+" * y 100 "+ST+" - * + 100 / x ? ?",chroma="ignore")
  23.  
  24. mt_makediff(orig,last)
  25. # mergechroma(sharp)  #  not needed in SeeSaw
  26. return( last )
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement