1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 ** All rights reserved. |
|
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
|
6 ** |
|
7 ** This file is part of the Qt Mobility Components. |
|
8 ** |
|
9 ** $QT_BEGIN_LICENSE:LGPL$ |
|
10 ** No Commercial Usage |
|
11 ** This file contains pre-release code and may not be distributed. |
|
12 ** You may use this file in accordance with the terms and conditions |
|
13 ** contained in the Technology Preview License Agreement accompanying |
|
14 ** this package. |
|
15 ** |
|
16 ** GNU Lesser General Public License Usage |
|
17 ** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 ** General Public License version 2.1 as published by the Free Software |
|
19 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 ** packaging of this file. Please review the following information to |
|
21 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 ** |
|
24 ** In addition, as a special exception, Nokia gives you certain additional |
|
25 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 ** |
|
28 ** If you have questions regarding the use of this file, please contact |
|
29 ** Nokia at qt-info@nokia.com. |
|
30 ** |
|
31 ** |
|
32 ** |
|
33 ** |
|
34 ** |
|
35 ** |
|
36 ** |
|
37 ** |
|
38 ** $QT_END_LICENSE$ |
|
39 ** |
|
40 ****************************************************************************/ |
|
41 |
|
42 #include <experimental/qimageprocessingcontrol.h> |
|
43 #include "qmediacontrol_p.h" |
|
44 |
|
45 QTM_BEGIN_NAMESPACE |
|
46 |
|
47 /*! |
|
48 \class QImageProcessingControl |
|
49 \ingroup multimedia-serv |
|
50 |
|
51 \preliminary |
|
52 \brief The QImageProcessingControl class provides an abstract class |
|
53 for controling image processing parameters, like white balance, |
|
54 contrast, saturation, sharpening and denoising. |
|
55 |
|
56 The interface name of QImageProcessingControl is \c com.nokia.Qt.QImageProcessingControl/1.0 as |
|
57 defined in QImageProcessingControl_iid. |
|
58 |
|
59 |
|
60 The Camera API of Qt Mobility is still in \bold Technology Preview. It has not undergone |
|
61 the same level of review and testing as the rest of the APIs. |
|
62 |
|
63 The API exposed by the classes in this component are not stable, and will |
|
64 undergo modification or removal prior to the final release of Qt Mobility. |
|
65 |
|
66 |
|
67 \sa QMediaService::control(), QCamera |
|
68 */ |
|
69 |
|
70 /*! |
|
71 \macro QImageProcessingControl_iid |
|
72 |
|
73 \c com.nokia.Qt.QImageProcessingControl/1.0 |
|
74 |
|
75 Defines the interface name of the QImageProcessingControl class. |
|
76 |
|
77 \relates QImageProcessingControl |
|
78 */ |
|
79 |
|
80 /*! |
|
81 Constructs an image processing control object with \a parent. |
|
82 */ |
|
83 |
|
84 QImageProcessingControl::QImageProcessingControl(QObject *parent): |
|
85 QMediaControl(*new QMediaControlPrivate, parent) |
|
86 { |
|
87 } |
|
88 |
|
89 /*! |
|
90 Destruct the image processing control object. |
|
91 */ |
|
92 |
|
93 QImageProcessingControl::~QImageProcessingControl() |
|
94 { |
|
95 } |
|
96 |
|
97 |
|
98 /*! |
|
99 \fn QImageProcessingControl::whiteBalanceMode() const |
|
100 Return the white balance mode being used. |
|
101 */ |
|
102 |
|
103 /*! |
|
104 \fn QImageProcessingControl::setWhiteBalanceMode(QCamera::WhiteBalanceMode mode) |
|
105 Set the white balance mode to \a mode |
|
106 */ |
|
107 |
|
108 /*! |
|
109 \fn QImageProcessingControl::supportedWhiteBalanceModes() const |
|
110 Return the list of supported white balance modes. |
|
111 */ |
|
112 |
|
113 /*! |
|
114 \fn QImageProcessingControl::manualWhiteBalance() const |
|
115 Return the manual white balance, in K. |
|
116 */ |
|
117 |
|
118 /*! |
|
119 \fn QImageProcessingControl::setManualWhiteBalance(int colorTemperature) |
|
120 Set the white balance to \a colorTemperature |
|
121 */ |
|
122 |
|
123 /*! |
|
124 \fn QImageProcessingControl::contrast() const |
|
125 Return the contrast. |
|
126 */ |
|
127 |
|
128 /*! |
|
129 \fn QImageProcessingControl::setContrast(qreal value) |
|
130 Set the contrast to \a value. |
|
131 */ |
|
132 |
|
133 /*! |
|
134 \fn QImageProcessingControl::isDenoisingSupported() const |
|
135 Returns true if denoising is supported. |
|
136 */ |
|
137 |
|
138 /*! |
|
139 \fn QImageProcessingControl::saturation() const |
|
140 Returns the saturation value. |
|
141 */ |
|
142 |
|
143 /*! |
|
144 \fn QImageProcessingControl::setSaturation(qreal value) |
|
145 Sets the saturation value to \a value. |
|
146 */ |
|
147 |
|
148 /*! |
|
149 \fn QImageProcessingControl::denoisingLevel() const |
|
150 Returns the denoising level. |
|
151 */ |
|
152 |
|
153 /*! |
|
154 \fn QImageProcessingControl::setDenoisingLevel(qreal level) |
|
155 |
|
156 Sets the denoising \a level. |
|
157 */ |
|
158 |
|
159 /*! |
|
160 \fn QImageProcessingControl::isSharpeningSupported() const |
|
161 |
|
162 Identifies if sharpening is supported. |
|
163 |
|
164 Returns true if sharpening is supported; and false if it is not. |
|
165 */ |
|
166 |
|
167 /*! |
|
168 \fn QImageProcessingControl::setSharpeningLevel(qreal level) |
|
169 Sets the sharpening \a level. |
|
170 */ |
|
171 |
|
172 /*! |
|
173 \fn QImageProcessingControl::sharpeningLevel() const |
|
174 Returns the sharpening level. |
|
175 */ |
|
176 |
|
177 #include "moc_qimageprocessingcontrol.cpp" |
|
178 QTM_END_NAMESPACE |
|
179 |
|