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 <private/qtmultimediaglobal_p.h>
19#include <QtCore/qlist.h>
20#include <QtCore/qmap.h>
21#include <QtCore/qset.h>
22#include <qgst_p.h>
23#include <gst/video/video.h>
24#include <qaudioformat.h>
25#include <qcamera.h>
26#include <qvideoframe.h>
27#include <QDebug>
28
29QT_BEGIN_NAMESPACE
30
31class QSize;
32class QVariant;
33class QByteArray;
34class QImage;
35class QVideoFrameFormat;
36
37namespace QGstUtils {
38 Q_MULTIMEDIA_EXPORT QAudioFormat audioFormatForSample(GstSample *sample);
39 QAudioFormat audioFormatForCaps(const QGstCaps &caps);
40 Q_MULTIMEDIA_EXPORT QGstCaps capsForAudioFormat(const QAudioFormat &format);
41
42 void setFrameTimeStamps(QVideoFrame *frame, GstBuffer *buffer);
43}
44
45Q_MULTIMEDIA_EXPORT GList *qt_gst_video_sinks();
46
47QT_END_NAMESPACE
48
49#endif
50

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