Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgstreamer_platformspecificinterface_p.h
Go to the documentation of this file.
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
19typedef struct _GstPipeline GstPipeline; // NOLINT (bugprone-reserved-identifier)
20typedef struct _GstElement GstElement; // NOLINT (bugprone-reserved-identifier)
21typedef struct _GstBuffer GstBuffer; // NOLINT (bugprone-reserved-identifier)
22
23QT_BEGIN_NAMESPACE
24
25class QAudioDevice;
26
27class Q_MULTIMEDIA_EXPORT QGStreamerPlatformSpecificInterface
28 : public QAbstractPlatformSpecificInterface
29{
30public:
31 ~QGStreamerPlatformSpecificInterface() override;
32
33 static QGStreamerPlatformSpecificInterface *instance();
34
35 virtual QAudioDevice makeCustomGStreamerAudioInput(const QByteArray &gstreamerPipeline) = 0;
36 virtual QAudioDevice makeCustomGStreamerAudioOutput(const QByteArray &gstreamerPipeline) = 0;
37 virtual QCamera *makeCustomGStreamerCamera(const QByteArray &gstreamerPipeline,
38 QObject *parent) = 0;
39
40 // Note: ownership of GstElement is not transferred
41 virtual QCamera *makeCustomGStreamerCamera(GstElement *, QObject *parent) = 0;
42
43 virtual GstPipeline *gstPipeline(QMediaPlayer *) = 0;
44 virtual GstPipeline *gstPipeline(QMediaCaptureSession *) = 0;
45
46 virtual GstBuffer *getRawGstBuffer(QVideoFrame &) = 0; // does not transfer ownership
47};
48
49QT_END_NAMESPACE
50
51#endif // GSTREAMER_PLATFORMSPECIFICINTERFACE_P_H
struct _GstPipeline GstPipeline
struct _GstElement GstElement
struct _GstBuffer GstBuffer