kassandro
11th February 2004, 10:06
In a forthcoming filter I have severe problems with the AsClip() function. Firstly one cannot specify a default value AsClip(defaultclip), where defaultclip is a PClip lvalue.
Secondly AsClip() does not work with named variables, i.e. I would like to use it as follows: myfilter(clip1, secondclip=clip2). If secondclip is not specified, then the filter should take clip1 as default value. There is no way to implement this kind functionality. I simply cannot understand, why AsClip() is designed so differently from AsBool, AsInt, AsString etc.. This deficiency simply forces me to disable an important feature of my filter.
Secondly AsClip() does not work with named variables, i.e. I would like to use it as follows: myfilter(clip1, secondclip=clip2). If secondclip is not specified, then the filter should take clip1 as default value. There is no way to implement this kind functionality. I simply cannot understand, why AsClip() is designed so differently from AsBool, AsInt, AsString etc.. This deficiency simply forces me to disable an important feature of my filter.