Skip to content

Commit

Permalink
Add havsfunc import
Browse files Browse the repository at this point in the history
  • Loading branch information
theChaosCoder committed Oct 4, 2018
1 parent c9dc714 commit 0a68168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lostfunc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from vapoursynth import core, YUV, GRAY
import vapoursynth as vs
import adjust
import adjust, havsfunc as haf
import math


Expand Down Expand Up @@ -59,8 +59,8 @@ def Stab(clp, range=1, dxmax=4, dymax=4, mirror=0):
if not isinstance(clp, vs.VideoNode):
raise TypeError('Stab: This is not a clip')

temp = AverageFrames(clp, weights=[1] * 15, scenechange=25 / 255)
inter = core.std.Interleave([core.rgvs.Repair(temp, AverageFrames(clp, weights=[1] * 3, scenechange=25 / 255), 1), clp])
temp = haf.AverageFrames(clp, weights=[1] * 15, scenechange=25 / 255)
inter = core.std.Interleave([core.rgvs.Repair(temp, haf.AverageFrames(clp, weights=[1] * 3, scenechange=25 / 255), 1), clp])
mdata = core.depan.DePanEstimate(inter, range=range, trust=0, dxmax=dxmax, dymax=dymax)
last = core.depan.DePan(inter, data=mdata, offset=-1, mirror=mirror)
return last[::2]
Expand Down

0 comments on commit 0a68168

Please sign in to comment.