[EMAIL PROTECTED] wrote:
The video stream will be in Bayer format and will need to be converted
to RGB before being displayed on the screen.

I will also need to zoom the image and pan the image back and forth.
There will be other filters that I'll need to apply but I think they
will just end up being shaders.
... I was contemplating dumping the raw data into a texture and doing all
the decoding on the graphics card within a series of shaders. Is this a
viable approach?

Use of a shader for the debayer process is definitively the way to go if you want to be realtime. For any kind of reasonable result the debayer algorithms will be too slow when done on the CPU.

Hopefully you'll have a grayscale image (and not something more convoluted like YCbCr) so just upload that to a texture and knock yourself out with a debayer shader! ;-)

Zoom/pan can also be done in the shader by modifying the texture coordinates.

Just out of curiosity, what kind of image data are you using?  RED? ARRI?

Cheers,
/ulrich

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to