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
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:
26
28 {
29 if (name == u"qnx")
30 return new QQnxMediaIntegration;
31 return nullptr;
32 }
33};
34
36
41
46
48{
49 return new QQnxVideoSink(sink);
50}
51
52QMaybe<QPlatformMediaPlayer *> QQnxMediaIntegration::createPlayer(QMediaPlayer *parent)
53{
54 return new QQnxMediaPlayer(parent);
55}
56
57QMaybe<QPlatformMediaCaptureSession *> QQnxMediaIntegration::createCaptureSession()
58{
59 return new QQnxMediaCaptureSession();
60}
61
62QMaybe<QPlatformMediaRecorder *> QQnxMediaIntegration::createRecorder(QMediaRecorder *parent)
63{
64 return new QQnxMediaRecorder(parent);
65}
66
67QMaybe<QPlatformCamera *> QQnxMediaIntegration::createCamera(QCamera *parent)
68{
69 return new QQnxPlatformCamera(parent);
70}
71
72QMaybe<QPlatformImageCapture *> QQnxMediaIntegration::createImageCapture(QImageCapture *parent)
73{
74 return new QQnxImageCapture(parent);
75}
76
78
79#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
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
QMaybe< QPlatformMediaRecorder * > createRecorder(QMediaRecorder *parent) override
QMaybe< QPlatformCamera * > createCamera(QCamera *parent) override
QMaybe< QPlatformImageCapture * > createImageCapture(QImageCapture *parent) override
QMaybe< QPlatformVideoSink * > createVideoSink(QVideoSink *sink) override
QPlatformMediaFormatInfo * createFormatInfo() override
QMaybe< QPlatformMediaPlayer * > createPlayer(QMediaPlayer *parent) override
QMaybe< QPlatformMediaCaptureSession * > createCaptureSession() override
QPlatformVideoDevices * createVideoDevices() override
QPlatformMediaIntegration * create(const QString &name) override
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
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
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)