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 "qimageencodercontrol.h"
41#include <QtCore/qstringlist.h>
42
43QT_BEGIN_NAMESPACE
44
45/*!
46 \class QImageEncoderControl
47 \obsolete
48
49 \inmodule QtMultimedia
50
51
52 \ingroup multimedia_control
53
54 \brief The QImageEncoderControl class provides access to the settings of a media service that
55 performs image encoding.
56
57 If a QMediaService supports encoding image data it will implement QImageEncoderControl.
58 This control allows to \l {setImageSettings()}{set image encoding settings} and
59 provides functions for quering supported image \l {supportedImageCodecs()}{codecs} and
60 \l {supportedResolutions()}{resolutions}.
61
62 The interface name of QImageEncoderControl is \c org.qt-project.qt.imageencodercontrol/5.0 as
63 defined in QImageEncoderControl_iid.
64
65 \sa QImageEncoderSettings, QMediaService::requestControl()
66*/
67
68/*!
69 \macro QImageEncoderControl_iid
70
71 \c org.qt-project.qt.imageencodercontrol/5.0
72
73 Defines the interface name of the QImageEncoderControl class.
74
75 \relates QImageEncoderControl
76*/
77
78/*!
79 Constructs a new image encoder control object with the given \a parent
80*/
81QImageEncoderControl::QImageEncoderControl(QObject *parent)
82 :QMediaControl(parent)
83{
84}
85
86/*!
87 Destroys the image encoder control.
88*/
89QImageEncoderControl::~QImageEncoderControl()
90{
91}
92
93/*!
94 \fn QImageEncoderControl::supportedResolutions(const QImageEncoderSettings &settings = QImageEncoderSettings(),
95 bool *continuous = 0) const
96
97 Returns a list of supported resolutions.
98
99 If non null image \a settings parameter is passed,
100 the returned list is reduced to resolutions supported with partial settings applied.
101 It can be used to query the list of resolutions, supported by specific image codec.
102
103 If the encoder supports arbitrary resolutions within the supported resolutions range,
104 *\a continuous is set to true, otherwise *\a continuous is set to false.
105*/
106
107/*!
108 \fn QImageEncoderControl::supportedImageCodecs() const
109
110 Returns a list of supported image codecs.
111*/
112
113/*!
114 \fn QImageEncoderControl::imageCodecDescription(const QString &codec) const
115
116 Returns a description of an image \a codec.
117*/
118
119/*!
120 \fn QImageEncoderControl::imageSettings() const
121
122 Returns the currently used image encoder settings.
123
124 The returned value may be different tha passed to QImageEncoderControl::setImageSettings()
125 if the settings contains the default or undefined parameters.
126 In this case if the undefined parameters are already resolved, they should be returned.
127*/
128
129/*!
130 \fn QImageEncoderControl::setImageSettings(const QImageEncoderSettings &settings)
131
132 Sets the selected image encoder \a settings.
133*/
134
135QT_END_NAMESPACE
136
137#include "moc_qimageencodercontrol.cpp"
138

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