Leak
14th August 2004, 19:08
Is it just me, or shouldn't there be a second version of Subframe in IScriptEnvironment that wraps the other version of it in VideoFrame?
i.e.
virtual PVideoFrame __stdcall Subframe(
PVideoFrame src,
int rel_offset,
int new_pitch,
int new_row_size,
int new_height,
int rel_offsetU,
int rel_offsetV,
int pitchUV) = 0;
I'm currently rewriting/optimizing KernelDeint and one thing I'd like to change about the deinterlacing function is that you should be able (at least in the plugin itself, not neccessarily in scripts) to pass it fields instead of frames, i.e. VideoFrames with half height, a doubled pitch and possibly an offset - which is what Subframe is there for after all, but the version IScriptEnvironment exports can't cope with planar formats... :(
(I'm mainly doing this so I can easily implement a KernelBob that doesn't have to copy data around a la SeparateFields().Trim(1,0).Weave() but I'd rather not write my own Subframe function...)
What should I do? I assume adding a function to IScriptEnvironment is out of the question due to all the breakage that would produce...
np: Kit Clayton - Surba (Nek Sanalet)
i.e.
virtual PVideoFrame __stdcall Subframe(
PVideoFrame src,
int rel_offset,
int new_pitch,
int new_row_size,
int new_height,
int rel_offsetU,
int rel_offsetV,
int pitchUV) = 0;
I'm currently rewriting/optimizing KernelDeint and one thing I'd like to change about the deinterlacing function is that you should be able (at least in the plugin itself, not neccessarily in scripts) to pass it fields instead of frames, i.e. VideoFrames with half height, a doubled pitch and possibly an offset - which is what Subframe is there for after all, but the version IScriptEnvironment exports can't cope with planar formats... :(
(I'm mainly doing this so I can easily implement a KernelBob that doesn't have to copy data around a la SeparateFields().Trim(1,0).Weave() but I'd rather not write my own Subframe function...)
What should I do? I assume adding a function to IScriptEnvironment is out of the question due to all the breakage that would produce...
np: Kit Clayton - Surba (Nek Sanalet)