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
24QT_BEGIN_NAMESPACE
25
26class QAudioFormat;
27class QGstCaps;
28class QVideoFrame;
29
30namespace QGstUtils {
31QAudioFormat audioFormatForSample(GstSample *sample);
32QAudioFormat audioFormatForCaps(const QGstCaps &caps);
33QGstCaps capsForAudioFormat(const QAudioFormat &format);
34
35void setFrameTimeStampsFromBuffer(QVideoFrame *frame, GstBuffer *buffer);
36
37QLocale::Language codeToLanguage(const gchar *);
38} // namespace QGstUtils
39
40GList *qt_gst_video_sinks();
41
42QT_END_NAMESPACE
43
44#endif
45

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qtmultimedia/src/plugins/multimedia/gstreamer/common/qgstutils_p.h