Thank you Robert, this helped me. Mourad
On Sat, Nov 21, 2009 at 4:57 PM, Robert Osfield wrote: > HI Mourad, > > On Fri, Nov 20, 2009 at 5:51 PM, Mourad Boufarguine > wrote: > > When using an ImageStream object (using ffmpeg, gif, quicktime... plugins > > for instance), is there a way to "catch" the image uptade event without > > messing with the plugins source code ? I am willing to apply image > > processing algorithms on video streams and I want to "intercept" new > images > > to do the processing only on new images. > > There is no callback mechanism for catching calls to dirty(); > > Perhaps you could use an update callback that checks on each new frame > whether the modifiedCount has changed since the last frame and then do > your image processing then. > > Or just move the image processing down onto the GPU, the GPU is far > better for doing image processing than the CPU so you'd likely gain in > performance. > > Robert. > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

