Blackberry: Grab viewfinder frames from native window
authorTobias Koenig <tobias.koenig.qnx@kdab.com>
Wed, 13 Feb 2013 10:57:02 +0000 (11:57 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 21 Feb 2013 10:23:38 +0000 (11:23 +0100)
commit31b454b8d6d27dec0fb39987eb315fe93de7eda1
tree9926634052d543299b95eec6991246d940e1add9
parent13ecd7171b4876bcf5027f9b349781b6dd9be790
Blackberry: Grab viewfinder frames from native window

Since the conversion from NV12 to RGB on the CPU does not scale
for larger photo/video resolutions, this patch uses a different
approach. It uses the low-level screen API to grab screenshots
of the native viewfinder window and provides them as QImage to
the QAbstractVideoSurface. Even for large resolutions this
is quite performant.

Change-Id: I59a7cbe6850b3b07575ea10026f3180cfd22e935
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
src/plugins/blackberry/blackberry.pro
src/plugins/blackberry/camera/bbcamerasession.cpp
src/plugins/blackberry/camera/bbcamerasession.h
src/plugins/blackberry/common/common.pri [new file with mode: 0644]
src/plugins/blackberry/common/windowgrabber.cpp [new file with mode: 0644]
src/plugins/blackberry/common/windowgrabber.h [new file with mode: 0644]