Thank you for your suggestion. I will look at your code and perhaps I can use it. Zen
From: Josiah Bryan [mailto:josiahbr...@gmail.com] Sent: Thursday, April 05, 2012 5:34 PM To: Szalata, Zenon M.; interest@qt-project.org Subject: Re: [Interest] Video Player Example On Thu, Apr 5, 2012 at 7:58 PM, Szalata, Zenon M. <z...@slac.stanford.edu<mailto:z...@slac.stanford.edu>> wrote: Given the nature of the data is the approach following the video player example the right way to go? and How do I inform the "video" classes that the QByteArray represents a 2D image of fixed dimensions? I must confess, I don't know how to do it with the "standard" Qt classes. However, I've developed my own set of capture and video display classes. A complete application that just captures video and draws it on screen in real time: http://code.google.com/p/livepro/source/browse/trunk/devel/app-template/MainWindow.cpp#28 (That app demos both using OpenGL directly and using a QWidget to render video.) The low level capture under Linux is done with V4L: http://code.google.com/p/livepro/source/browse/trunk/gfxengine/SimpleV4L2.cpp Which is handled by the CameraThread (which uses libav on windows to capture): http://code.google.com/p/livepro/source/browse/trunk/gfxengine/CameraThread.cpp And the video is rendered using a GLVideoDrawable: http://code.google.com/p/livepro/source/browse/trunk/gfxengine/GLVideoDrawable.cpp (For actually using that googlecode project, see http://code.google.com/p/livepro/wiki/QuickStartGuide) Regards, Josiah Any help and suggestion are greatly appreciated, Zen _______________________________________________ Interest mailing list Interest@qt-project.org<mailto:Interest@qt-project.org> http://lists.qt-project.org/mailman/listinfo/interest -- Josiah Bryan 765-215-0511 josiahbr...@gmail.com<mailto:josiahbr...@gmail.com>
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest