i think it was done for haibane ranmei, lossy episodes i think, can someone please explain what exactly it does? what are all these last's for? and what does return do? and what is the meaning of "." in the last line? please someone, i want to understand it better...
Code: Select all
function HeavyGradient(clip clip)
{
last=clip
Repair(AA(), clip, mode=3)
fluxsmoothst(0, 7)
grainoptimizer(last, gradfun2db().ttempsmooth(), tdist=10)
prescale = last
LimitedSharpenFaster(dest_x=856, Lmode=3)
Repair(last, prescale.Spline36Resize(856,472), mode=1)
vmToon(sharpen=false, thinning=15)
awarpsharp(8,cm=1)
return last
}
function OrdinaryHR(clip clip)
{
last=clip
Repair(AA(), last, mode=3)
Overlay(last, Invert().YLevelsS(gamma=1.5, output_high=240).Invert(), mode="Darken")
prescale = last
LimitedSharpenFaster(dest_x=856, Lmode=3, strength=110, undershoot=1)
Repair(last, prescale.Spline36Resize(856,472), mode=1)
vmToon(sharpen=false, thinning=15, strength=48, threshold=4)
ttempsmooth(maxr=5)
fluxsmoothst(4, 7)
awarpsharp(5,3,cm=0)
return last
}
function PreviewFile()
{
DirectShowSource("d:\hr_previews.avi", fps=29.97, convertfps=true)
Trim(0, 448)
#AA(edge=true)
AAA()
#Overlay(last, Invert().YLevelsS(gamma=1.5, output_high=240).Invert(), mode="Darken")
Crop(0, 4, 0, -4)
Spline36Resize(856, 472)
return last
}
Trim(0,2370).HeavyGradient() ++ Trim(2371, last.framecount).OrdinaryHR() ++ PreviewFile()