Blackberry: Fix resolution selection for video recording
authorTobias Koenig <tobias.koenig.qnx@kdab.com>
Tue, 12 Feb 2013 09:26:55 +0000 (10:26 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 19 Feb 2013 13:41:47 +0000 (14:41 +0100)
commitdbe69f38d0cbc7e6e92183735ca47b6bbb49c593
treead501d83d8d797de847f3e3dbe7b09f9b3f74ab9
parentdf2c324364ac08255a1fe2c8d3b94a822551ac5a
Blackberry: Fix resolution selection for video recording

Fix the selection of the video viewfinder resolution depending
on the features provided by the camera. If the viewfinder is responsible
for encoding the video frames, the resolution of the viewfinder
and the video output must match. Otherwise only the ratio must match
and we can use a lower resolution for the viewfinder to improve
the performance of the NV12->RGB frame conversion.

Change-Id: I66ace84841a69be84f83bf9c5240cd23d96fbb76
Reviewed-by: Bernd Weimer <bweimer@rim.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
src/plugins/blackberry/camera/bbcameramediarecordercontrol.cpp
src/plugins/blackberry/camera/bbcamerasession.cpp
src/plugins/blackberry/camera/bbcamerasession.h