Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqnximagecapture_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Research In Motion
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QQnxImageCapture_H
4#define QQnxImageCapture_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <private/qplatformimagecapture_p.h>
18
19#include <QtCore/qfuture.h>
20
22
25
26class QThread;
27
29{
31public:
33
34 bool isReadyForCapture() const override;
35
36 int capture(const QString &fileName) override;
37 int captureToBuffer() override;
38
39 QImageEncoderSettings imageSettings() const override;
41
43
44private:
45 QFuture<QImage> decodeFrame(int id, const QVideoFrame &frame);
46 void saveFrame(int id, const QVideoFrame &frame, const QString &fileName);
47
48 void onCameraChanged();
49 void onCameraActiveChanged(bool active);
50 void updateReadyForCapture();
51
52 QQnxMediaCaptureSession *m_session = nullptr;
53 QQnxPlatformCamera *m_camera = nullptr;
54
55 int m_lastId = 0;
56 QImageEncoderSettings m_settings;
57
58 bool m_lastReadyForCapture = false;
59};
60
62
63#endif
\inmodule QtMultimedia
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
QQnxImageCapture(QImageCapture *parent)
void setImageSettings(const QImageEncoderSettings &settings) override
QImageEncoderSettings imageSettings() const override
void setCaptureSession(QQnxMediaCaptureSession *session)
int captureToBuffer() override
int capture(const QString &fileName) override
bool isReadyForCapture() const override
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QVideoFrame class represents a frame of video data.
Definition qvideoframe.h:27
Combined button and popup list for selecting options.
#define Q_OBJECT
QSettings settings("MySoft", "Star Runner")
[0]
QFrame frame
[0]