Virtual Dub filter programmation
Posted: Thu Dec 01, 2011 10:18 am
Hello.
As i may have a problem, i would like to know the following about the programmation of the VDub filter.
As parameter of temporal is a radius, i assume, if set to 2, you use, if you are in frame N, frame N-2 to N+2.
For doing this, before there was only one way, now there are two :
1 : Use the "old" way, setting a LAG in the filter, and using/handling frames in an internal buffer.
2 : Use the new way, using prefetch2 function (with prefetcher->PrefetchFrame() inside) and getting frames in the run through *fa->mpSourceFrames[]->mpPixmap.
As i encounter unexpected and strange behavior between some of my filters and method 2, i would like to know what method you use, according your answer, i may have or not have some troubles...
As i may have a problem, i would like to know the following about the programmation of the VDub filter.
As parameter of temporal is a radius, i assume, if set to 2, you use, if you are in frame N, frame N-2 to N+2.
For doing this, before there was only one way, now there are two :
1 : Use the "old" way, setting a LAG in the filter, and using/handling frames in an internal buffer.
2 : Use the new way, using prefetch2 function (with prefetcher->PrefetchFrame() inside) and getting frames in the run through *fa->mpSourceFrames[]->mpPixmap.
As i encounter unexpected and strange behavior between some of my filters and method 2, i would like to know what method you use, according your answer, i may have or not have some troubles...