4#ifndef QCAMERAIMAGECAPTURE_H
5#define QCAMERAIMAGECAPTURE_H
7#include <QtCore/qobject.h>
8#include <QtMultimedia/qvideoframe.h>
10#include <QtMultimedia/qmediaenumdebug.h>
28 Q_PROPERTY(
bool readyForCapture READ isReadyForCapture NOTIFY readyForCaptureChanged)
69 bool isAvailable()
const;
76 bool isReadyForCapture()
const;
79 void setFileFormat(FileFormat
format);
81 static QList<FileFormat> supportedFormats();
82 static QString fileFormatName(FileFormat
c);
83 static QString fileFormatDescription(FileFormat
c);
85 QSize resolution()
const;
86 void setResolution(
const QSize &);
89 Quality quality()
const;
90 void setQuality(Quality quality);
The QCamera class provides interface for system camera devices.
Error
\value NoError No Errors.
@ NotSupportedFeatureError
FileFormat
Choose one of the following image formats:
void imageSaved(int id, const QString &fileName)
Signal emitted when QImageCapture::CaptureToFile is set and the frame with request id was saved to fi...
void imageAvailable(int id, const QVideoFrame &frame)
Signal emitted when the frame with request id is available.
void imageExposed(int id)
Signal emitted when the frame with request id was exposed.
void imageMetadataAvailable(int id, const QMediaMetaData &metaData)
Signals that an image identified by id has metaData.
void resolutionChanged()
Signals when the image resolution changes.
void imageCaptured(int id, const QImage &preview)
Signal emitted when the frame with request id was captured, but not processed and saved yet.
Quality
Enumerates quality encoding levels.
void errorOccurred(int id, QImageCapture::Error error, const QString &errorString)
Signals that the capture request id has failed with an error and errorString description.
void readyForCaptureChanged(bool ready)
Signals that a camera's ready for capture state has changed.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QVideoFrame class represents a frame of video data.
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLint GLsizei GLsizei height
GLint GLsizei GLsizei GLenum format