summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/camera/avfmediaassetwriter.h
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@theqtcompany.com>2016-02-09 23:44:33 +0100
committerYoann Lopes <yoann.lopes@qt.io>2016-06-13 13:20:42 +0000
commitc6a8c2c846e8f4305aca05be662172e55d5fb674 (patch)
treed5e0aaed09c6efc6b2e8b2f852675aa0a13c9cba /src/plugins/avfoundation/camera/avfmediaassetwriter.h
parentf5de14107094080f15fad3beffb64ad95ff6c5e4 (diff)
AVFoundation: fix orientation of recorded videos.
Make sure the video is recorded in the same orientation as the device. That means the top of the video matches the physical side of the device which is on top when starting recording. This patch makes sure the behavior is the same as on Android. In a future version, we should have an API to pick the desired orientation of the recorded video. Change-Id: Ia8bbfe621a0e54de3cb6bfe0a520f37e8a932539 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/avfoundation/camera/avfmediaassetwriter.h')
-rw-r--r--src/plugins/avfoundation/camera/avfmediaassetwriter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/avfoundation/camera/avfmediaassetwriter.h b/src/plugins/avfoundation/camera/avfmediaassetwriter.h
index ff24ad49a..9b2479909 100644
--- a/src/plugins/avfoundation/camera/avfmediaassetwriter.h
+++ b/src/plugins/avfoundation/camera/avfmediaassetwriter.h
@@ -98,7 +98,8 @@ QT_END_NAMESPACE
- (bool)setupWithFileURL:(NSURL *)fileURL
cameraService:(QT_PREPEND_NAMESPACE(AVFCameraService) *)service
audioSettings:(NSDictionary *)audioSettings
- videoSettings:(NSDictionary *)videoSettings;
+ videoSettings:(NSDictionary *)videoSettings
+ transform:(CGAffineTransform)transform;
- (void)start;
- (void)stop;