|qmake:||QT += multimedia|
|virtual void||cancelCapture() = 0|
|virtual int||capture(const QString &fileName) = 0|
|virtual QCameraImageCapture::DriveMode||driveMode() const = 0|
|virtual bool||isReadyForCapture() const = 0|
|virtual void||setDriveMode(QCameraImageCapture::DriveMode mode) = 0|
- 34 public functions inherited from QObject
|void||error(int id, int error, const QString &errorString)|
|void||imageAvailable(int requestId, const QVideoFrame &buffer)|
|void||imageCaptured(int requestId, const QImage &preview)|
|void||imageMetadataAvailable(int id, const QString &key, const QVariant &value)|
|void||imageSaved(int requestId, const QString &fileName)|
- 2 signals inherited from QObject
|QCameraImageCaptureControl(QObject *parent = nullptr)|
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 2 protected variables inherited from QObject
The QCameraImageCaptureControl class provides a control interface for image capture services.
See also QMediaService::requestControl().
Member Function Documentation
[protected] QCameraImageCaptureControl::QCameraImageCaptureControl(QObject *parent = nullptr)
Constructs a new image capture control object with the given parent
Destroys an image capture control.
Cancel pending capture requests.
[pure virtual] int QCameraImageCaptureControl::capture(const QString &fileName)
Initiates the capture of an image to fileName. The fileName can be relative or empty, in this case the service should use the system specific place and file naming scheme.
The Camera service should save all the capture parameters like exposure settings or image processing parameters, so changes to camera parameters after capture() is called do not affect previous capture requests.
[pure virtual] QCameraImageCapture::DriveMode QCameraImageCaptureControl::driveMode() const
Returns the current camera drive mode.
See also setDriveMode().
[signal] void QCameraImageCaptureControl::error(int id, int error, const QString &errorString)
Signals the capture request id failed with error code and message errorString.
See also QCameraImageCapture::Error.
[signal] void QCameraImageCaptureControl::imageAvailable(int requestId, const QVideoFrame &buffer)
Signals that a captured buffer with a requestId is available.
[signal] void QCameraImageCaptureControl::imageCaptured(int requestId, const QImage &preview)
Signals that an image with it requestId has been captured and a preview is available.
Signals that an image with it requestId has just been exposed. This signal can be used for the shutter sound or other indicaton.
[signal] void QCameraImageCaptureControl::imageMetadataAvailable(int id, const QString &key, const QVariant &value)
Signals that a metadata for an image with request id is available. Signal also contains the key and value of the metadata.
[signal] void QCameraImageCaptureControl::imageSaved(int requestId, const QString &fileName)
Signals that a captured image with a requestId has been saved to fileName.
Identifies if a capture control is ready to perform a capture immediately (all the resources necessary for image capture are allocated, hardware initialized, flash is charged, etc).
Returns true if the camera is ready for capture; and false if it is not.
It's permissible to call capture() while the camera status is QCamera::ActiveStatus regardless of isReadyForCapture property value. If camera is not ready to capture image immediately, the capture request is queued with all the related camera settings to be executed as soon as possible.
Signals that a capture control's ready state has changed.
[pure virtual] void QCameraImageCaptureControl::setDriveMode(QCameraImageCapture::DriveMode mode)
Sets the current camera drive mode.
See also driveMode().
Defines the interface name of the QCameraImageCaptureControl class.
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.