MrTibs
24th March 2004, 21:26
Sorry but I have another dumb question...
Will the InternalCache function allow me to store frames in memory that I can use over an over again? (Without having to fetch it from the filter chain every time the filter is called.)
For example, in my NoLogo filter, I fetch a frame to use as my mask. Every time I remove the logo, I need to fetch the same frame. Could I use InternalCache to fetch the frame once (when the filter is created) and simply re-use it from cache for the entire video sequence?
This is important because I will be overwriting the original fetched frame later so I need a cached copy of the mask.
Will the InternalCache function allow me to store frames in memory that I can use over an over again? (Without having to fetch it from the filter chain every time the filter is called.)
For example, in my NoLogo filter, I fetch a frame to use as my mask. Every time I remove the logo, I need to fetch the same frame. Could I use InternalCache to fetch the frame once (when the filter is created) and simply re-use it from cache for the entire video sequence?
This is important because I will be overwriting the original fetched frame later so I need a cached copy of the mask.