Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
21
QT_BEGIN_NAMESPACE
22
23
class
QQnxMediaCaptureSession;
24
class
QQnxPlatformCamera
;
25
26
class
QThread;
27
28
class
QQnxImageCapture
:
public
QPlatformImageCapture
29
{
30
Q_OBJECT
31
public
:
32
explicit
QQnxImageCapture
(
QImageCapture
*
parent
);
33
34
bool
isReadyForCapture
()
const
override
;
35
36
int
capture
(
const
QString &fileName)
override
;
37
int
captureToBuffer
()
override
;
38
39
QImageEncoderSettings
imageSettings
()
const
override
;
40
void
setImageSettings
(
const
QImageEncoderSettings &settings)
override
;
41
42
void
setCaptureSession
(
QQnxMediaCaptureSession
*session);
43
44
private
:
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
61
QT_END_NAMESPACE
62
63
#
endif
QQnxImageCapture
Definition
qqnximagecapture_p.h:29
QQnxImageCapture::setImageSettings
void setImageSettings(const QImageEncoderSettings &settings) override
Definition
qqnximagecapture.cpp:198
QQnxImageCapture::imageSettings
QImageEncoderSettings imageSettings() const override
Definition
qqnximagecapture.cpp:193
QQnxImageCapture::setCaptureSession
void setCaptureSession(QQnxMediaCaptureSession *session)
Definition
qqnximagecapture.cpp:203
QQnxImageCapture::captureToBuffer
int captureToBuffer() override
Definition
qqnximagecapture.cpp:103
QQnxImageCapture::capture
int capture(const QString &fileName) override
Definition
qqnximagecapture.cpp:70
QQnxImageCapture::isReadyForCapture
bool isReadyForCapture() const override
Definition
qqnximagecapture.cpp:65
QQnxMediaCaptureSession
Definition
qqnxmediacapturesession_p.h:30
QQnxPlatformCamera
Definition
qqnxplatformcamera_p.h:38
QQnxPlatformCamera::isActive
bool isActive() const override
Definition
qqnxplatformcamera.cpp:80
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
resolveFileName
static QString resolveFileName(const QString &fileName, QImageCapture::FileFormat format)
Definition
qqnximagecapture.cpp:37
formatExtension
static QString formatExtension(QImageCapture::FileFormat format)
Definition
qqnximagecapture.cpp:21
qtmultimedia
src
plugins
multimedia
qnx
camera
qqnximagecapture_p.h
Generated on
for Qt by
1.18.0