1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Contact: https://www.qt.io/licensing/
5**
6** This file is part of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see https://www.qt.io/terms-conditions. For further
15** information use the contact form at https://www.qt.io/contact-us.
16**
17** GNU Lesser General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU Lesser
19** General Public License version 3 as published by the Free Software
20** Foundation and appearing in the file LICENSE.LGPL3 included in the
21** packaging of this file. Please review the following information to
22** ensure the GNU Lesser General Public License version 3 requirements
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
24**
25** GNU General Public License Usage
26** Alternatively, this file may be used under the terms of the GNU
27** General Public License version 2.0 or (at your option) the GNU General
28** Public license version 3 or any later version approved by the KDE Free
29** Qt Foundation. The licenses are as published by the Free Software
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
31** included in the packaging of this file. Please review the following
32** information to ensure the GNU General Public License requirements will
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34** https://www.gnu.org/licenses/gpl-3.0.html.
35**
36** $QT_END_LICENSE$
37**
38****************************************************************************/
39
40#include "qvideoencodersettingscontrol.h"
41#include <QtCore/qstringlist.h>
42#include <QtCore/qvariant.h>
43
44QT_BEGIN_NAMESPACE
45
46/*!
47 \class QVideoEncoderSettingsControl
48 \obsolete
49
50 \inmodule QtMultimedia
51
52
53 \ingroup multimedia_control
54
55 \brief The QVideoEncoderSettingsControl class provides access to the settings
56 of a media service that performs video encoding.
57
58 If a QMediaService supports encoding video data it will implement
59 QVideoEncoderSettingsControl. This control provides information about the limits
60 of restricted video encoder options and allows the selection of a set of
61 video encoder settings as specified in a QVideoEncoderSettings object.
62
63 The functionality provided by this control is exposed to application code
64 through the QMediaRecorder class.
65
66 The interface name of QVideoEncoderSettingsControl is \c org.qt-project.qt.videoencodersettingscontrol/5.0 as
67 defined in QVideoEncoderSettingsControl_iid.
68
69 \sa QMediaRecorder, QVideoEncoderSettings, QMediaService::requestControl()
70*/
71
72/*!
73 \macro QVideoEncoderSettingsControl_iid
74
75 \c org.qt-project.qt.videoencodersettingscontrol/5.0
76
77 Defines the interface name of the QVideoEncoderSettingsControl class.
78
79 \relates QVideoEncoderSettingsControl
80*/
81
82/*!
83 Create a new video encoder settings control object with the given \a parent.
84*/
85QVideoEncoderSettingsControl::QVideoEncoderSettingsControl(QObject *parent)
86 :QMediaControl(parent)
87{
88}
89
90/*!
91 Destroys a video encoder settings control.
92*/
93QVideoEncoderSettingsControl::~QVideoEncoderSettingsControl()
94{
95}
96
97/*!
98 \fn QVideoEncoderSettingsControl::supportedVideoCodecs() const
99
100 Returns the list of supported video codecs.
101*/
102
103/*!
104 \fn QVideoEncoderSettingsControl::videoCodecDescription(const QString &codec) const
105
106 Returns a description of a video \a codec.
107*/
108
109/*!
110 \fn QVideoEncoderSettingsControl::supportedResolutions(const QVideoEncoderSettings &settings = QVideoEncoderSettings(),
111 bool *continuous = 0) const
112
113 Returns a list of supported resolutions.
114
115 If non null video \a settings parameter is passed,
116 the returned list is reduced to resolution supported with partial settings like
117 \l {QVideoEncoderSettings::setCodec()}{video codec} or
118 \l {QVideoEncoderSettings::setFrameRate()}{frame rate} applied.
119
120 If the encoder supports arbitrary resolutions within the supported resolutions range,
121 *\a continuous is set to true, otherwise *\a continuous is set to false.
122
123 \sa QVideoEncoderSettings::resolution()
124*/
125
126/*!
127 \fn QVideoEncoderSettingsControl::supportedFrameRates(const QVideoEncoderSettings &settings = QVideoEncoderSettings(),
128 bool *continuous = 0) const
129
130 Returns a list of supported frame rates.
131
132 If non null video \a settings parameter is passed,
133 the returned list is reduced to frame rates supported with partial settings like
134 \l {QVideoEncoderSettings::setCodec()}{video codec} or
135 \l {QVideoEncoderSettings::setResolution()}{video resolution} applied.
136
137 If the encoder supports arbitrary frame rates within the supported range,
138 *\a continuous is set to true, otherwise *\a continuous is set to false.
139
140 \sa QVideoEncoderSettings::frameRate()
141*/
142
143/*!
144 \fn QVideoEncoderSettingsControl::videoSettings() const
145
146 Returns the video encoder settings.
147
148 The returned value may be different tha passed to QVideoEncoderSettingsControl::setVideoSettings()
149 if the settings contains the default or undefined parameters.
150 In this case if the undefined parameters are already resolved, they should be returned.
151*/
152
153/*!
154 \fn QVideoEncoderSettingsControl::setVideoSettings(const QVideoEncoderSettings &settings)
155
156 Sets the selected video encoder \a settings.
157*/
158
159QT_END_NAMESPACE
160
161#include "moc_qvideoencodersettingscontrol.cpp"
162

source code of qtmultimedia/src/multimedia/controls/qvideoencodersettingscontrol.cpp