Quote:
Originally Posted by Chikuzen
update
download it from the link of first post.
* support alpha channel
If input avs is RGB32, alpha will be stored in "_Alpha" prop.
|
Actually the more proper way to do it to return two clips from the filter. See the avisource code for an example. The basic idea is that you call setvideoinfo(array of two videinfo, 2, core)
And then in the filter's getframe function you call getOutputIndex () to know which of the two clips you should output a frame for. Slightly more complicated to implement but it makes more sense. Or so I think.