YAHRmod source

From Avisynth wiki
Revision as of 22:08, 12 October 2017 by AmjadSONY (Talk | contribs)

Jump to: navigation, search

source: http://pastebin.com/raw/pLQbYPU5

# Y'et A'nother H'alo R'educing script
# YAHR A.SONY mod 1.37 , original YAHR was by Didée
# good deHalo for modern DVD and other cases

function YAHR2(clip clp, int "depth", int "blur", bool "useawarp4")
{

depth         = Default(depth, 8)
useawarp4     = Default(useawarp4, false)

b1    = clp.minblur(2).removegrain(11,-1)
b1D   = mt_makediff(clp,b1)
w1    = useawarp4 ? clp.aWarpSharp4xx(depth=depth,blur=blur,chroma=1,useawarp4=true) : clp.aWarpSharp2(depth=depth,blur=blur,chroma=1)
w1b1  = w1.minblur(2,1).removegrain(11,-1)
w1b1D = mt_makediff(w1,w1b1)
DD    = b1D.repair(w1b1D,13) 
DD2   = mt_makediff(b1D,DD)
clp.mt_makediff(DD2,U=2,V=2)
}
Personal tools