Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eennaa(clip c, float "factor", bool "debilinear", bool "maa") {
- factor = default(factor,2.0)
- debilinear = default(debilinear,true)
- maa = default(maa,false)
- c
- spline36resize(ceil(float(width)/factor/4)*4,ceil(float(height)/factor/4)*4)
- debilinear ? mt_logic(c.debilineary(width,height),"min",u=2,v=2) : nop
- eedi3(dh=true,sclip=nnedi3(dh=true)).fturnleft
- eedi3(dh=true,sclip=nnedi3(dh=true)).fturnright
- spline36resize(c.width,c.height,-0.5,0.5,width+.001,height+.001)
- maa ? converttoy8.spline36Resize(c.width*2,c.height*2)
- \.fturnleft.sangnom2.fturnright.sangnom2
- \.spline36resize(c.width,c.height).converttoyv12.mergechroma(c)
- \ : last
- c.mt_merge(last,c.mt_edge("sobel",7,7,5,5).mt_inflate(),true)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement