Guest User

Untitled

a guest
May 17th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #FixDIJaggies 1.0 by Dansolo
  2. #For fixing jaggies caused by bad deinterlacing in anime
  3. #Particularly Nadesico
  4. function FixDIJaggies(clip inclip) {
  5.   downsized=inclip.ReduceBy2()
  6.   upsized=downsized.Spline16Resize(downsized.Width()+downsized.Width(),downsized.Height()+downsized.Height())
  7.   mask=subtract(inclip,upsized)
  8.   smoothmask=mask.eedi3()
  9.   diff=smoothmask.subtract(mask)
  10.   jaggiesremoved=inclip.subtract(diff.mt_invert(Y=3,U=3,V=3))
  11.   return jaggiesremoved
  12. }
Add Comment
Please, Sign In to add comment