Si
8th March 2003, 11:09
Dear Experts,
101 needed in plugin coding again :o
In my VirtualDub filters, if I want a variable to be carried across several frames, I just declare it as static in the RunProc and it works fine.
I'm having a bit of trouble in porting my progressive frame restorer filter and I'm wondering if this technique if valid or not.
Should I delclare it static as in
class PFR : public GenericVideoFilter {
static int FramesSinceChangetoP;
or should it be just
int FramesSinceChangetoP;
and can I intialise it like:
int FramesSinceChangetoP = 0;
Sorry for stupid questions but I don't think they were quite covered in Ben's Invert example
regards
Simon
101 needed in plugin coding again :o
In my VirtualDub filters, if I want a variable to be carried across several frames, I just declare it as static in the RunProc and it works fine.
I'm having a bit of trouble in porting my progressive frame restorer filter and I'm wondering if this technique if valid or not.
Should I delclare it static as in
class PFR : public GenericVideoFilter {
static int FramesSinceChangetoP;
or should it be just
int FramesSinceChangetoP;
and can I intialise it like:
int FramesSinceChangetoP = 0;
Sorry for stupid questions but I don't think they were quite covered in Ben's Invert example
regards
Simon