[osg-users] Image update in ImageStream objects

Mourad Boufarguine mourad.boufarguine at gmail.com
Wed Nov 25 02:01:44 PST 2009


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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20091125/9730a35b/attachment.htm>


More information about the osg-users mailing list