| 1 | // Copyright (C) 2024 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 | #ifndef GSTREAMER_PLATFORMSPECIFICINTERFACE_P_H | 
|---|
| 4 | #define GSTREAMER_PLATFORMSPECIFICINTERFACE_P_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 <QtMultimedia/private/qplatformmediaintegration_p.h> | 
|---|
| 18 |  | 
|---|
| 19 | typedef struct _GstPipeline GstPipeline; // NOLINT (bugprone-reserved-identifier) | 
|---|
| 20 | typedef struct _GstElement GstElement; // NOLINT (bugprone-reserved-identifier) | 
|---|
| 21 |  | 
|---|
| 22 | QT_BEGIN_NAMESPACE | 
|---|
| 23 |  | 
|---|
| 24 | class QAudioDevice; | 
|---|
| 25 |  | 
|---|
| 26 | class Q_MULTIMEDIA_EXPORT QGStreamerPlatformSpecificInterface | 
|---|
| 27 | : public QAbstractPlatformSpecificInterface | 
|---|
| 28 | { | 
|---|
| 29 | public: | 
|---|
| 30 | ~QGStreamerPlatformSpecificInterface() override; | 
|---|
| 31 |  | 
|---|
| 32 | static QGStreamerPlatformSpecificInterface *instance(); | 
|---|
| 33 |  | 
|---|
| 34 | virtual QAudioDevice makeCustomGStreamerAudioInput(const QByteArray &gstreamerPipeline) = 0; | 
|---|
| 35 | virtual QAudioDevice makeCustomGStreamerAudioOutput(const QByteArray &gstreamerPipeline) = 0; | 
|---|
| 36 | virtual QCamera *makeCustomGStreamerCamera(const QByteArray &gstreamerPipeline, | 
|---|
| 37 | QObject *parent) = 0; | 
|---|
| 38 |  | 
|---|
| 39 | // Note: ownership of GstElement is not transferred | 
|---|
| 40 | virtual QCamera *makeCustomGStreamerCamera(GstElement *, QObject *parent) = 0; | 
|---|
| 41 |  | 
|---|
| 42 | virtual GstPipeline *gstPipeline(QMediaPlayer *) = 0; | 
|---|
| 43 | virtual GstPipeline *gstPipeline(QMediaCaptureSession *) = 0; | 
|---|
| 44 | }; | 
|---|
| 45 |  | 
|---|
| 46 | QT_END_NAMESPACE | 
|---|
| 47 |  | 
|---|
| 48 | #endif // GSTREAMER_PLATFORMSPECIFICINTERFACE_P_H | 
|---|
| 49 |  | 
|---|