VideoOutput: fix autoOrientation with a camera source.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 3 Feb 2014 20:38:56 +0000 (21:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 28 Feb 2014 13:10:14 +0000 (14:10 +0100)
commitf783c48a170c8ec86e4904b786a46dae5f07dfa7
tree36933b75321164c3b0cb8bb8361299cdb4668a36
parentb28ee24628f77fced393cacc45500be6761e4497
VideoOutput: fix autoOrientation with a camera source.

Don't assume the camera frames are always in the same orientation as the
display in its primary orientation. We now take into account the camera
sensor position and orientation to calculate the viewport orientation.

Change-Id: Ib333c87f1804d1010ada42cb757e4fab78d75a04
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/multimedia/qtmultimediaquicktools_headers/qdeclarativevideooutput_p.h
src/multimedia/video/qvideooutputorientationhandler.cpp
src/qtmultimediaquicktools/qdeclarativevideooutput.cpp