function Lanczosplus(clip c){ c thresh = 0 thresh2 = ((thresh+1)*(thresh+1))*64/(thresh+1) Strength = 3 s = c s fd1 = lanczosresize(c, c.width*2, c.height*2, taps=3) fre1 = fd1.lanczosresize( c.width, c.height, taps=3) fre2 = fre1.lanczosresize( c.width/2, c.height/2, taps=3).lanczosresize( c.width, c.height, taps=3) m1 = yv12lutxy(fre1, s, "x y - abs "+string(thresh)+" - "+string(thresh2)+" *", u=3, v=3) s1 = yv12lutxy(fre1, s, "y x - "+string(strength)+" * y +", u=3, v=3) d = maskedmerge(c, fre2, m1) d2 = d.lanczosresize(c.width*2, c.height*2, taps=32) e = maskedmerge(d, c, m1).lanczosresize(c.width*2, c.height*2, taps=16).awarpsharp(depth=6, cm=0, blurlevel=1).awarpsharp(depth=6, cm=0, blurlevel=1).awarpsharp(depth=6, cm=0, blurlevel=1).awarpsharp(depth=6, cm=0, blurlevel=1) e2= lanczosresize(lanczosresize(e, ((c.width)-width/2), ((c.height)-height/2), taps=16), e.width, e.height, taps=16).awarpsharp(depth=6, cm=0, blurlevel=1).awarpsharp(depth=6, cm=0, blurlevel=1).awarpsharp(depth=6, cm=0, blurlevel=1)#yv12lutxy(e, e2 , "x y - 0.75 * x +" , u=3, v=3) e3 = yv12lutxy(e, e2 , "x y - 0.66 * x +" , u=3, v=3).awarpsharp(depth=6, cm=0, blurlevel=1).awarpsharp(depth=6, cm=0, blurlevel=1).awarpsharp(depth=6, cm=0, blurlevel=1).awarpsharp(depth=6, cm=0, blurlevel=1) maskedmerge(d2, e3, lanczosresize(degrainmedian(lanczosresize(m1, c.width/2, c.height/2, taps=24), mode=3), e.width, e.height, taps=32)) return(last)}