Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SootheSS(clip sharp, clip orig, int "sootheT", int "sootheS")
- {
- sootheT = default(sootheT, 25 )
- sootheS = default(sootheS, 0 )
- sootheT = (sootheT > 100) ? 100 : (sootheT < -100) ? -100 : sootheT
- sootheS = (sootheS > 100) ? 100 : (sootheS < 0) ? 0 : sootheS
- ST = string( 100 - abs(sootheT))
- SSPT = string( 100 - abs(sootheS))
- mt_makediff(orig,sharp)
- (sootheS==0) ? last
- \ : mt_lutxy( last, last.removegrain(20,-1,-1),
- \ "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")
- (sootheT==0) ? last
- \ : mt_lutxy( last, last.temporalsoften(1,255,0,32,2),
- \ "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")
- (sootheT > -1) ? last
- \ : mt_lutxy( last, last.temporalsoften(1,255,0,32,2),
- \ "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")
- mt_makediff(orig,last)
- # mergechroma(sharp) # not needed in SeeSaw
- return( last )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement