On Fri, 17 Dec 2010 11:00:29 am ext Dmytro Poplavskiy wrote:
> On Thu, 16 Dec 2010 10:13:53 pm ext [email protected] wrote:
> > I have a problem for which I cannot find a solution. I’m using QCamera 
> > class 
> > (Qt Mobility 1.1) and I need to get access to the video frames(e.g. 
> > QVideoFrame) provided by the camera in N900. I need to do some image 
> > processing 
> > to the frames before they are shown in for example QVideoWidget. How can I 
> > do 
> > that?
> > 
> > I have tried the method illustrated in 
> > http://developer.qt.nokia.com/forums/viewthread/370
> > with no luck.
> > If i don’t define “camera->setViewfinder(viewfinder);”, all I get 
> > is some Gstreamer Camerabin “internal data flow error” after a while.
> 
> Camera pipeline on N900 doesn't use the colorspace transformation element 
> due to (already fixed) gstreamer bug, so you have to accept the native 
> QVideoFrame::Format_UYVY
> frames format. I attached a simple video surface which works with QCamera on 
> N900.
> 
> You can use the code from qgraphicsvideoitem_maemo5.cpp for fast UYVY->RGB16 
> transformation.

Just a quick note, you have to ensure the license of this code is compatible 
with your project.

Regards
  Dmytro.
_______________________________________________
Qt-mobility-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback

Reply via email to