Don't mirror the image from the camera unless it has been flipped
authorAndy Shaw <andy.shaw@digia.com>
Fri, 31 Jan 2014 07:23:47 +0000 (08:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 3 Feb 2014 15:54:28 +0000 (16:54 +0100)
commit9a16423610405c0329fe40235313212946f08b05
tree61e2691a8cdc7e4d34357efaeac67197214f0e0c
parent8fd3a5a198acaf32243617d46e269991284e8e13
Don't mirror the image from the camera unless it has been flipped

The camera itself can have a mode set that causes the image to be flipped
so instead of always mirroring the image that is taken from the camera we
check for the supported modes first and then check the mode and only
mirror if it is set. Otherwise we assume that it does not need
horizontally flipping but that it needs vertically flipping which seems to
be the standard for cameras on Windows.

[ChangeLog][QtMultimedia][Windows] Fixed the incorrect mirroring of the
image from the camera
Task-number: QTBUG-30365

Change-Id: I166b1f354e8d91c9a6c64f64164d782b52df98d8
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/directshow/camera/dscamerasession.cpp
src/plugins/directshow/camera/dscamerasession.h