Mini-Me
23rd July 2012, 23:41
I'm writing a C++ Avisynth plugin, and I haven't been able to find any references to optional parameters in the Filter SDK. What mechanism does Avisynth provide for checking whether the user actually passed in a value for an optional named parameter?
I know that you can pass a default value into AsInt(), AsString(), etc., but what about AsClip()? I suppose you can use the PClip() constructor to create a default clip, but what's the best way to differentiate that empty clip from a real one that was actually passed in? Would [clip].vi.HasVideo() work?
I know that you can pass a default value into AsInt(), AsString(), etc., but what about AsClip()? I suppose you can use the PClip() constructor to create a default clip, but what's the best way to differentiate that empty clip from a real one that was actually passed in? Would [clip].vi.HasVideo() work?