Quote:
Originally Posted by Gavino
In your constructor, just env->Invoke("ConvertToRGB32") on the input clip, and similarly to convert back.
|
No, noticed how no other filter does implicit colorspace conversions? Same thing applies here. Also converting back implicitly is even worse because then you just lose even more precision instead of letting the filter after implicitly convert to its own preferred format. Just say NO.
If you for some reason want to implement it anyway do something like this in AvisynthPluginInit2:
Code:
return new MyFilter(Env->Invoke("ConvertToRGB32", Args[0]), all other filter args go here));
I meant the create function, do never trust coding advice on internet forums