39 if (writer.write(
image)) {
47 emit error(m_lastId, err, writer.errorString());
68QImage QWasmImageCapture::takePicture()
71 if (!thisFrame.isValid())
93 return m_isReadyForCapture;
108 if (m_isReadyForCapture != isReady) {
109 m_isReadyForCapture = isReady;
118 if (m_captureSession == captureSession)
121 m_isReadyForCapture = captureSession;
122 if (captureSession) {
124 m_captureSession = captureSession;
127 m_captureSession = captureSession;
Error
\value NoError No Errors.
The QImageWriter class provides a format independent interface for writing images to files or other d...
constexpr bool isValid() const noexcept
Returns true if both the width and height is equal to or greater than 0; otherwise returns false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QVideoFrame class represents a frame of video data.
QVideoFrame videoFrame() const
Returns the current video frame.
int capture(const QString &fileName) override
void setReadyForCapture(bool isReady)
bool isReadyForCapture() const override
void setImageSettings(const QImageEncoderSettings &settings) override
void setCaptureSession(QPlatformMediaCaptureSession *session)
QImageEncoderSettings imageSettings() const override
int captureToBuffer() override
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
#define QStringLiteral(str)
QSettings settings("MySoft", "Star Runner")
[0]