wonkey_monkey
1st January 2010, 18:01
I'm writing a few plugins and using applyrange to only apply them to certain sections of video. This all works fine until I try to use a filter that needs to know how far into the section it is being applied (such as when applying a moving mask from another file).
PVideoFrame __stdcall selectivecolour::GetFrame(int n, IScriptEnvironment* env) {
My problem is that the variable n gives the frame number of the video, not of the section selected with ApplyRange. Is there a way of getting that information within the filter, or will I have to pass it in some other way?
I've previously made wrapper functions in AVS to actually split the video, but is there an easier way?
David
PVideoFrame __stdcall selectivecolour::GetFrame(int n, IScriptEnvironment* env) {
My problem is that the variable n gives the frame number of the video, not of the section selected with ApplyRange. Is there a way of getting that information within the filter, or will I have to pass it in some other way?
I've previously made wrapper functions in AVS to actually split the video, but is there an easier way?
David