diff options
author | Val Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-07-23 16:09:27 +0200 |
---|---|---|
committer | Val Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-09-10 14:51:16 +0200 |
commit | cdd87907722aff14c393dba02b7e43c924b60d06 (patch) | |
tree | a44b236839973ee090371cdb85cfe66ff967788f /src/plugins/avfoundation/camera/avfcameraservice.h | |
parent | 7ebd95868747b304f1695fe1e7f25df73774b1dc (diff) |
AVF: Introduce QCameraCaptureDestinationControl_iid
Can be used like:
QCameraImageCapture->setCaptureDestination(
QCameraImageCapture::CaptureToBuffer | QCameraImageCapture::CaptureToFile);
Both CaptureToBuffer and CaptureToFile are supported.
If CaptureToBuffer is requested, then it sends imageAvailble signal
If CaptureToFile is requested, it sends imageSaved
imageCaptured is sent only if there is the video frame available.
(e.g. when abstract video surface is used as viewfinder)
Pick-to: 5.15
Fixes: QTBUG-85470
Change-Id: If22281e4d0eacfb0d38f8b1c8b676191817f592e
Reviewed-by: Ihor Dutchak <ihor.youw@gmail.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/avfoundation/camera/avfcameraservice.h')
-rw-r--r-- | src/plugins/avfoundation/camera/avfcameraservice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/avfoundation/camera/avfcameraservice.h b/src/plugins/avfoundation/camera/avfcameraservice.h index ec2884217..1397a7dee 100644 --- a/src/plugins/avfoundation/camera/avfcameraservice.h +++ b/src/plugins/avfoundation/camera/avfcameraservice.h @@ -71,6 +71,7 @@ class AVFAudioEncoderSettingsControl; class AVFVideoEncoderSettingsControl; class AVFMediaContainerControl; class AVFCameraWindowControl; +class AVFCaptureDestinationControl; class AVFCameraService : public QMediaService { @@ -100,6 +101,7 @@ public: AVFAudioEncoderSettingsControl *audioEncoderSettingsControl() const { return m_audioEncoderSettingsControl; } AVFVideoEncoderSettingsControl *videoEncoderSettingsControl() const {return m_videoEncoderSettingsControl; } AVFMediaContainerControl *mediaContainerControl() const { return m_mediaContainerControl; } + AVFCaptureDestinationControl *captureDestinationControl() const { return m_captureDestinationControl; } private: AVFCameraSession *m_session; @@ -122,6 +124,7 @@ private: AVFVideoEncoderSettingsControl *m_videoEncoderSettingsControl; AVFMediaContainerControl *m_mediaContainerControl; AVFCameraWindowControl *m_captureWindowControl; + AVFCaptureDestinationControl *m_captureDestinationControl; }; QT_END_NAMESPACE |