Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqnxmediaintegration.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
7#include "qqnxformatinfo_p.h"
9#include "qqnxvideosink_p.h"
10#include "qqnxmediaplayer_p.h"
11#include "qqnximagecapture_p.h"
13#include <QtMultimedia/private/qplatformmediaplugin_p.h>
14
16
18{
21
22public:
25 {}
26
28 {
29 if (name == QLatin1String("qnx"))
30 return new QQnxMediaIntegration;
31 return nullptr;
32 }
33};
34
36{
37 m_videoDevices = std::make_unique<QQnxVideoDevices>(this);
38}
39
41{
42 delete m_formatInfo;
43}
44
46{
47 if (!m_formatInfo)
49 return m_formatInfo;
50}
51
53{
54 return new QQnxVideoSink(sink);
55}
56
58{
59 return new QQnxMediaPlayer(parent);
60}
61
63{
64 return new QQnxMediaCaptureSession();
65}
66
68{
69 return new QQnxMediaRecorder(parent);
70}
71
73{
74 return new QQnxPlatformCamera(parent);
75}
76
78{
79 return new QQnxImageCapture(parent);
80}
81
83
84#include "qqnxmediaintegration.moc"
The QCamera class provides interface for system camera devices.
Definition qcamera.h:28
\inmodule QtMultimedia
The QMediaPlayer class allows the playing of a media files.
\inmodule QtMultimedia
std::unique_ptr< QPlatformVideoDevices > m_videoDevices
QMaybe< QPlatformMediaRecorder * > createRecorder(QMediaRecorder *parent) override
QMaybe< QPlatformCamera * > createCamera(QCamera *parent) override
QPlatformMediaFormatInfo * formatInfo() override
QMaybe< QPlatformImageCapture * > createImageCapture(QImageCapture *parent) override
QMaybe< QPlatformVideoSink * > createVideoSink(QVideoSink *sink) override
QMaybe< QPlatformMediaPlayer * > createPlayer(QMediaPlayer *parent) override
QMaybe< QPlatformMediaCaptureSession * > createCaptureSession() override
QPlatformMediaIntegration * create(const QString &name) override
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
Combined button and popup list for selecting options.
GLuint name
GLsizei GLenum GLboolean sink
#define QPlatformMediaPlugin_iid
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent