1 | // Copyright (C) 2016 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 | |
4 | #ifndef QGSTUTILS_P_H |
5 | #define QGSTUTILS_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <gst/gstsample.h> |
19 | #include <gst/gstbuffer.h> |
20 | |
21 | #include <QtCore/qglobal.h> |
22 | #include <QtCore/qlocale.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class QAudioFormat; |
27 | class QGstCaps; |
28 | class QVideoFrame; |
29 | |
30 | namespace QGstUtils { |
31 | QAudioFormat audioFormatForSample(GstSample *sample); |
32 | QAudioFormat audioFormatForCaps(const QGstCaps &caps); |
33 | QGstCaps capsForAudioFormat(const QAudioFormat &format); |
34 | |
35 | void setFrameTimeStampsFromBuffer(QVideoFrame *frame, GstBuffer *buffer); |
36 | |
37 | QLocale::Language codeToLanguage(const gchar *); |
38 | } // namespace QGstUtils |
39 | |
40 | GList *qt_gst_video_sinks(); |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif |
45 |