[Interest] QVideoProbe Woes
scorp1us at yahoo.com
Tue Feb 11 04:15:30 CET 2014
Ok, that will work. Unit tests run on win/lin (mainly lin) and get frames come from USB cameras/Android cameras during development.
One area Qt needs is more conversions of pixel formats between frames and images, but for what I am doing, YUV is easy since grayscale is fine for detection. And Y is right there at the start of the frame. :-)
What isn't currently implemented on android?
5.3.0 huh? When is that due? 8 months?
----- Original Message -----
From: Lopes Yoann <Yoannopes at digia.com>
To: Jason H <scorp1us at yahoo.com>; Thiago Macieira <thiago.macieira at intel.com>; "interest at qt-project.org" <interest at qt-project.org>
Sent: Monday, February 10, 2014 5:17 PM
Subject: RE: [Interest] QVideoProbe Woes
You can use the QAbstractVideoSurface solution, for camera sources you'll always be able to get the pixel data. It's not currently implemented on Android though, but it will be in 5.3.0. You can expect to get data in either RGB32, NV21, or YV12 pixel formats. Make sure your custom QAbstractVideoSurface's supportedPixelFormats() function returns these formats only when the HandleType is NoHandle (you don't want to get an OpenGL texture for example, so don't return anything for that handle).
On iOS and Android there is simply no system API to get frame pixels from video players (for the reasons Thiago mentioned), so you won't be able to run your unit test there. You could however run it on Linux and on Windows.
More information about the Interest