Blackberry: Ensure that camera viewfinder texture is upright
Make sure that the texture is upright when the device is upright. When rotating the device, it's the applications responsibility to rotate the texture of the viewfinder (e.g. through the QDeclarativeVideoOutput::orientation property). Change-Id: I6e453ce9bdde5197104533f844b1079b3c3db908 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
This commit is contained in:
committed by
The Qt Project
parent
36655ccdfb
commit
b19ec14a62
@@ -785,7 +785,7 @@ void BbCameraSession::handlePhotoViewFinderData(camera_buffer_t *buffer)
|
|||||||
{
|
{
|
||||||
QTransform transform;
|
QTransform transform;
|
||||||
|
|
||||||
transform.rotate(360 - m_nativeCameraOrientation);
|
transform.rotate(m_nativeCameraOrientation);
|
||||||
|
|
||||||
const QImage frame = convertFrameToImage(buffer).transformed(transform);
|
const QImage frame = convertFrameToImage(buffer).transformed(transform);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user