Advertisement
tophf

eennaa

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