|
1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2010 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 <qvideosurfaceformat.h> |
|
43 |
|
44 #include "s60videosurface.h" |
|
45 |
|
46 S60VideoSurface::S60VideoSurface(QObject *parent) |
|
47 : QAbstractVideoSurface(parent) |
|
48 , m_winId(0) |
|
49 { |
|
50 } |
|
51 |
|
52 S60VideoSurface::~S60VideoSurface() |
|
53 { |
|
54 |
|
55 } |
|
56 |
|
57 WId S60VideoSurface::winId() const |
|
58 { |
|
59 return m_winId; |
|
60 } |
|
61 |
|
62 void S60VideoSurface::setWinId(WId id) |
|
63 { |
|
64 Q_UNUSED(id); |
|
65 } |
|
66 |
|
67 QRect S60VideoSurface::displayRect() const |
|
68 { |
|
69 return m_displayRect; |
|
70 } |
|
71 |
|
72 void S60VideoSurface::setDisplayRect(const QRect &rect) |
|
73 { |
|
74 m_displayRect = rect; |
|
75 } |
|
76 |
|
77 int S60VideoSurface::brightness() const |
|
78 { |
|
79 return 0; |
|
80 } |
|
81 |
|
82 void S60VideoSurface::setBrightness(int brightness) |
|
83 { |
|
84 Q_UNUSED(brightness); |
|
85 } |
|
86 |
|
87 int S60VideoSurface::contrast() const |
|
88 { |
|
89 return 0; |
|
90 } |
|
91 |
|
92 void S60VideoSurface::setContrast(int contrast) |
|
93 { |
|
94 Q_UNUSED(contrast); |
|
95 } |
|
96 |
|
97 int S60VideoSurface::hue() const |
|
98 { |
|
99 return 0; |
|
100 } |
|
101 |
|
102 void S60VideoSurface::setHue(int hue) |
|
103 { |
|
104 Q_UNUSED(hue); |
|
105 } |
|
106 |
|
107 int S60VideoSurface::saturation() const |
|
108 { |
|
109 return 0; |
|
110 } |
|
111 |
|
112 void S60VideoSurface::setSaturation(int saturation) |
|
113 { |
|
114 Q_UNUSED(saturation); |
|
115 } |
|
116 |
|
117 int S60VideoSurface::getAttribute(const char *attribute, int minimum, int maximum) const |
|
118 { |
|
119 Q_UNUSED(attribute); |
|
120 Q_UNUSED(minimum); |
|
121 Q_UNUSED(maximum); |
|
122 return 0; |
|
123 } |
|
124 |
|
125 void S60VideoSurface::setAttribute(const char *attribute, int value, int minimum, int maximum) |
|
126 { |
|
127 Q_UNUSED(attribute); |
|
128 Q_UNUSED(value); |
|
129 Q_UNUSED(minimum); |
|
130 Q_UNUSED(maximum); |
|
131 |
|
132 } |
|
133 |
|
134 int S60VideoSurface::redistribute( |
|
135 int value, int fromLower, int fromUpper, int toLower, int toUpper) |
|
136 { |
|
137 Q_UNUSED(value); |
|
138 Q_UNUSED(fromLower); |
|
139 Q_UNUSED(fromUpper); |
|
140 Q_UNUSED(toLower); |
|
141 Q_UNUSED(toUpper); |
|
142 return 0; |
|
143 } |
|
144 |
|
145 QList<QVideoFrame::PixelFormat> S60VideoSurface::supportedPixelFormats( |
|
146 QAbstractVideoBuffer::HandleType handleType) const |
|
147 { |
|
148 Q_UNUSED(handleType); |
|
149 QList<QVideoFrame::PixelFormat> list; |
|
150 return list; |
|
151 } |
|
152 |
|
153 bool S60VideoSurface::start(const QVideoSurfaceFormat &format) |
|
154 { |
|
155 Q_UNUSED(format); |
|
156 return false; |
|
157 } |
|
158 |
|
159 void S60VideoSurface::stop() |
|
160 { |
|
161 } |
|
162 |
|
163 bool S60VideoSurface::present(const QVideoFrame &frame) |
|
164 { |
|
165 Q_UNUSED(frame); |
|
166 return false; |
|
167 } |
|
168 |
|
169 bool S60VideoSurface::findPort() |
|
170 { |
|
171 return false; |
|
172 } |
|
173 |
|
174 void S60VideoSurface::querySupportedFormats() |
|
175 { |
|
176 } |
|
177 |
|
178 bool S60VideoSurface::isFormatSupported(const QVideoSurfaceFormat &format) const |
|
179 { |
|
180 Q_UNUSED(format); |
|
181 return false; |
|
182 } |