Log in

View Full Version : Smart Smooth for Avisynth?


Cyberia
18th June 2004, 04:57
Is there an equivalent AviSynth plugin that does what the Smart Smooth Vdub filter does?

I thought all Vdub filters would run under Avisynth? Obviously, I am wrong, but where did I get that idea?

anonimitous
18th June 2004, 09:28
For Vdub Filters , Dont know if it works for avisynth 2.5 , havent used vdub filters in a while .
function VD_SmartSmoothHiQ(clip clip, int "diameter", int "threshold", int "amount", string "mode",
\ bool "weighted_difference", int "maintain_diffweight", bool "visualize_blur", bool "grayscale")
{
LoadVirtualdubPlugin("c:\plugins\SmoothHiQ_k7.vdf", "_VD_SmartSmoothHiQ")
mode = default(mode, "weighted")
mode = (mode=="average") ? 0 : (mode=="weighted") ? 1 : -1
Assert(mode>=0, """VD_SmartSmoothHiQ: "mode" parameter must be "average" or "weighted"""")
return clip._VD_SmartSmoothHiQ(default(diameter,5), default(threshold,50), default(visualize_blur,0), default(amount,254),
\ mode, default(grayscale,false)?1:0, default(weighted_difference,true)?1:0, default(maintain_diffweight,0))
}

ConvertToRGB()
VD_SmartSmoothHiQ(5,50,254,"weighted")

function VD_SmartSmoother(clip clip, int "diameter", int "threshold", bool "interlaced")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\smooth.vdf", "_VD_SmartSmoother")
return clip._VD_SmartSmoother(default(diameter,5), default(threshold,25),
\ default(interlaced,false)?1:0)
}


ConvertToRGB()
VD_SmartSmoother(5,25,false)

Check http://www.avisynth.org/warpenterprises/ for
for smartsmooth or smooth HiQ dll filters

Cyberia
18th June 2004, 20:51
LoadVirtualdubPlugin

OK that was dumb of me, sorry. In the words of Hermione Granger "What..an..idiot!"