williamr@2
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
|
williamr@2
|
17 |
|
williamr@2
|
18 |
/**
|
williamr@2
|
19 |
@file
|
williamr@2
|
20 |
@publishedAll
|
williamr@2
|
21 |
@released
|
williamr@2
|
22 |
*/
|
williamr@2
|
23 |
|
williamr@2
|
24 |
#ifndef IMAGEFRAMECONST_H
|
williamr@2
|
25 |
#define IMAGEFRAMECONST_H
|
williamr@2
|
26 |
|
williamr@2
|
27 |
|
williamr@2
|
28 |
#include <imageframeformats.hrh>
|
williamr@2
|
29 |
#include <imageframeconst.hrh>
|
williamr@2
|
30 |
|
williamr@2
|
31 |
|
williamr@2
|
32 |
/**
|
williamr@2
|
33 |
Constant which defines the maximum number of planes within TFrameLayout.
|
williamr@2
|
34 |
*/
|
williamr@2
|
35 |
const TInt KMaxPlanesInFrame = 4;
|
williamr@2
|
36 |
|
williamr@2
|
37 |
/**
|
williamr@2
|
38 |
Identifier for TFrameFormat type.
|
williamr@2
|
39 |
@see KIclImageFrameFormatUidValue
|
williamr@2
|
40 |
*/
|
williamr@2
|
41 |
static const TUid KUidIclImageFrameFormat = {KIclImageFrameFormatUidValue};
|
williamr@2
|
42 |
|
williamr@2
|
43 |
/**
|
williamr@2
|
44 |
Identifier for TFrameLayout type.
|
williamr@2
|
45 |
@see KIclImageFrameLayoutUidValue
|
williamr@2
|
46 |
*/
|
williamr@2
|
47 |
static const TUid KUidIclImageFrameLayout = {KIclImageFrameLayoutUidValue};
|
williamr@2
|
48 |
|
williamr@2
|
49 |
|
williamr@2
|
50 |
/* Format Uids */
|
williamr@2
|
51 |
|
williamr@2
|
52 |
/**
|
williamr@2
|
53 |
TFrameFormat format code.
|
williamr@2
|
54 |
|
williamr@2
|
55 |
Format Description:
|
williamr@2
|
56 |
YUV Monochrome image format.
|
williamr@2
|
57 |
Planar, 8 bit per pixel.
|
williamr@2
|
58 |
Single Y plane for monochrome images.
|
williamr@2
|
59 |
Pixel order: Y00Y01..
|
williamr@2
|
60 |
@note greyscale values, 0=black, 255=white.
|
williamr@2
|
61 |
|
williamr@2
|
62 |
Equivalent to ECam format code CCamera::EFormatMonochrome.
|
williamr@2
|
63 |
|
williamr@2
|
64 |
Equivalent to Video FourCC code Y800, Y8.
|
williamr@2
|
65 |
|
williamr@2
|
66 |
@see CCamera::TFormat
|
williamr@2
|
67 |
@see KFormatYUVMonochromeUidValue
|
williamr@2
|
68 |
*/
|
williamr@2
|
69 |
const TUid KUidFormatYUVMonochrome = {KFormatYUVMonochromeUidValue};
|
williamr@2
|
70 |
|
williamr@2
|
71 |
/**
|
williamr@2
|
72 |
TFrameFormat format code.
|
williamr@2
|
73 |
|
williamr@2
|
74 |
Format Description:
|
williamr@2
|
75 |
YUV 4:2:2 image format.
|
williamr@2
|
76 |
Interleaved, 16 bits per pixel, 8 bits per sample.
|
williamr@2
|
77 |
Pixel order: UY0VY1.
|
williamr@2
|
78 |
|
williamr@2
|
79 |
Equivalent to ECam format code CCamera::EFormatYUV422.
|
williamr@2
|
80 |
|
williamr@2
|
81 |
Equivalent to Video FourCC code UYVY.
|
williamr@2
|
82 |
|
williamr@2
|
83 |
@see CCamera::TFormat
|
williamr@2
|
84 |
@see KFormatYUV422InterleavedUidValue
|
williamr@2
|
85 |
*/
|
williamr@2
|
86 |
const TUid KUidFormatYUV422Interleaved = {KFormatYUV422InterleavedUidValue};
|
williamr@2
|
87 |
|
williamr@2
|
88 |
/**
|
williamr@2
|
89 |
TFrameFormat format code.
|
williamr@2
|
90 |
|
williamr@2
|
91 |
Format Description:
|
williamr@2
|
92 |
YUV 4:2:0 image format.
|
williamr@2
|
93 |
Planar, 12 bits per pixel.
|
williamr@2
|
94 |
8 bit Y plane followed by 8 bit 2x2 subsampled U and V planes.
|
williamr@2
|
95 |
Pixel order: Y00Y01Y02Y03...U0...V0...
|
williamr@2
|
96 |
|
williamr@2
|
97 |
Equivalent to ECam format code CCamera::EFormatYUV420Planar.
|
williamr@2
|
98 |
|
williamr@2
|
99 |
Equivalent to Video FourCC code I420.
|
williamr@2
|
100 |
|
williamr@2
|
101 |
@see CCamera::TFormat
|
williamr@2
|
102 |
@see KFormatYUV420PlanarUidValue
|
williamr@2
|
103 |
*/
|
williamr@2
|
104 |
const TUid KUidFormatYUV420Planar = {KFormatYUV420PlanarUidValue};
|
williamr@2
|
105 |
|
williamr@2
|
106 |
/**
|
williamr@2
|
107 |
TFrameFormat format code.
|
williamr@2
|
108 |
|
williamr@2
|
109 |
Format Description:
|
williamr@2
|
110 |
YUV 4:2:0 image format.
|
williamr@2
|
111 |
Planar, 12 bits per pixel.
|
williamr@2
|
112 |
8 bit Y plane followed by 8 bit 2x2 subsampled V and U planes.
|
williamr@2
|
113 |
Pixel order: Y00Y01Y02Y03...V0...U0...
|
williamr@2
|
114 |
|
williamr@2
|
115 |
No equivalent ECam format code.
|
williamr@2
|
116 |
|
williamr@2
|
117 |
Equivalent to Video FourCC code YV12.
|
williamr@2
|
118 |
|
williamr@2
|
119 |
@see CCamera::TFormat
|
williamr@2
|
120 |
@see KFormatYUV420InterleavedUidValue
|
williamr@2
|
121 |
*/
|
williamr@2
|
122 |
const TUid KUidFormatYUV420PlanarReversed = {KFormatYUV420PlanarReversedUidValue};
|
williamr@2
|
123 |
|
williamr@2
|
124 |
/**
|
williamr@2
|
125 |
TFrameFormat format code.
|
williamr@2
|
126 |
|
williamr@2
|
127 |
Format Description:
|
williamr@2
|
128 |
RGB Packed image format.
|
williamr@2
|
129 |
Interleaved in triplets, 12 bits per pixel.
|
williamr@2
|
130 |
Pixel order: BGR - 4 bits per pixel with red in the least significant bits
|
williamr@2
|
131 |
and the 4 most significant bits unused.
|
williamr@2
|
132 |
|
williamr@2
|
133 |
Equivalent to ECam format code CCamera::EFormat16bitRGB444.
|
williamr@2
|
134 |
|
williamr@2
|
135 |
No equivalent Video FourCC code.
|
williamr@2
|
136 |
|
williamr@2
|
137 |
@see CCamera::TFormat
|
williamr@2
|
138 |
@see KFormat16bitRGB444InterleavedUidValue
|
williamr@2
|
139 |
*/
|
williamr@2
|
140 |
const TUid KUidFormat16bitRGB444Interleaved = {KFormat16bitRGB444InterleavedUidValue};
|
williamr@2
|
141 |
|
williamr@2
|
142 |
/**
|
williamr@2
|
143 |
TFrameFormat format code.
|
williamr@2
|
144 |
|
williamr@2
|
145 |
Format Description:
|
williamr@2
|
146 |
RGB Packed image format.
|
williamr@2
|
147 |
Interleaved in triplets, 16 bits per pixel.
|
williamr@2
|
148 |
Pixel order: BGR - 5 bits per pixel for red and blue and 6 bits for green,
|
williamr@2
|
149 |
with red in the least significant bits.
|
williamr@2
|
150 |
|
williamr@2
|
151 |
Equivalent to ECam format code CCamera::EFormat16bitRGB565.
|
williamr@2
|
152 |
|
williamr@2
|
153 |
No equivalent Video FourCC code.
|
williamr@2
|
154 |
|
williamr@2
|
155 |
@see CCamera::TFormat
|
williamr@2
|
156 |
@see KFormat16BitRGB565InterleavedUidValue
|
williamr@2
|
157 |
*/
|
williamr@2
|
158 |
const TUid KUidFormat16BitRGB565Interleaved = {KFormat16BitRGB565InterleavedUidValue};
|
williamr@2
|
159 |
|
williamr@2
|
160 |
/**
|
williamr@2
|
161 |
TFrameFormat format code.
|
williamr@2
|
162 |
|
williamr@2
|
163 |
Format Description:
|
williamr@2
|
164 |
RGB Packed image format.
|
williamr@2
|
165 |
Interleaved in triplets, 32 bits per pixel.
|
williamr@2
|
166 |
Pixel order: BGR - 8 bits per pixel with red in the least significant bits
|
williamr@2
|
167 |
and the 8 most significant bits unused.
|
williamr@2
|
168 |
|
williamr@2
|
169 |
Equivalent to ECam format code CCamera::EFormat32BitRGB888.
|
williamr@2
|
170 |
|
williamr@2
|
171 |
No equivalent Video FourCC code.
|
williamr@2
|
172 |
|
williamr@2
|
173 |
@see CCamera::TFormat
|
williamr@2
|
174 |
@see KFormat32BitRGB888InterleavedUidValue
|
williamr@2
|
175 |
*/
|
williamr@2
|
176 |
const TUid KUidFormat32BitRGB888Interleaved = {KFormat32BitRGB888InterleavedUidValue};
|
williamr@2
|
177 |
|
williamr@2
|
178 |
/**
|
williamr@2
|
179 |
TFrameFormat format code.
|
williamr@2
|
180 |
|
williamr@2
|
181 |
Format Description:
|
williamr@2
|
182 |
YUV 4:2:0 image format.
|
williamr@2
|
183 |
Interleaved, 12 bits per pixel.
|
williamr@2
|
184 |
8 bit, 4 Y plane samples followed by 2 8 bit U and V samples.
|
williamr@2
|
185 |
Pixel order: Y00Y01Y10Y11UV.
|
williamr@2
|
186 |
|
williamr@2
|
187 |
Equivalent to ECam format code CCamera::EFormatYUV420Interleaved.
|
williamr@2
|
188 |
|
williamr@2
|
189 |
No equivalent Video FourCC code.
|
williamr@2
|
190 |
|
williamr@2
|
191 |
@see CCamera::TFormat
|
williamr@2
|
192 |
@see KFormatYUV420InterleavedUidValue
|
williamr@2
|
193 |
*/
|
williamr@2
|
194 |
const TUid KUidFormatYUV420Interleaved = {KFormatYUV420InterleavedUidValue};
|
williamr@2
|
195 |
|
williamr@2
|
196 |
/**
|
williamr@2
|
197 |
TFrameFormat format code.
|
williamr@2
|
198 |
|
williamr@2
|
199 |
Format Description:
|
williamr@2
|
200 |
YUV 4:2:2 image format.
|
williamr@2
|
201 |
Interleaved, 16 bits per pixel, 8 bits per sample.
|
williamr@2
|
202 |
Pixel order: Y1VY0U.
|
williamr@2
|
203 |
|
williamr@2
|
204 |
Equivalent to ECam format code CCamera::EFormatYUV422Reversed.
|
williamr@2
|
205 |
|
williamr@2
|
206 |
No equivalent Video FourCC code.
|
williamr@2
|
207 |
|
williamr@2
|
208 |
@see CCamera::TFormat
|
williamr@2
|
209 |
@see KFormatYUV422InterleavedReversedUidValue
|
williamr@2
|
210 |
*/
|
williamr@2
|
211 |
const TUid KUidFormatYUV422InterleavedReversed = {KFormatYUV422InterleavedReversedUidValue};
|
williamr@2
|
212 |
|
williamr@2
|
213 |
/**
|
williamr@2
|
214 |
TFrameFormat format code.
|
williamr@2
|
215 |
|
williamr@2
|
216 |
Format Description:
|
williamr@2
|
217 |
YUV 4:2:2 image format.
|
williamr@2
|
218 |
Interleaved, 16 bits per pixel, 8 bits per sample.
|
williamr@2
|
219 |
Pixel order: Y0Y1UV.
|
williamr@2
|
220 |
|
williamr@2
|
221 |
No equivalent ECam format code.
|
williamr@2
|
222 |
|
williamr@2
|
223 |
No equivalent Video FourCC code.
|
williamr@2
|
224 |
|
williamr@2
|
225 |
@see CCamera::TFormat
|
williamr@2
|
226 |
@see KFormatYYUV422InterleavedUidValue
|
williamr@2
|
227 |
*/
|
williamr@2
|
228 |
const TUid KUidFormatYYUV422Interleaved = {KFormatYYUV422InterleavedUidValue};
|
williamr@2
|
229 |
|
williamr@2
|
230 |
/**
|
williamr@2
|
231 |
TFrameFormat format code.
|
williamr@2
|
232 |
|
williamr@2
|
233 |
Format Description:
|
williamr@2
|
234 |
YUV 4:2:2 image format.
|
williamr@2
|
235 |
Planar, 16 bits per pixel, 8 bits per sample.
|
williamr@2
|
236 |
Pixel order: Y00Y01Y02Y03...U00U02...V00V02...
|
williamr@2
|
237 |
|
williamr@2
|
238 |
No equivalent ECam format code.
|
williamr@2
|
239 |
|
williamr@2
|
240 |
No equivalent Video FourCC code.
|
williamr@2
|
241 |
|
williamr@2
|
242 |
@see CCamera::TFormat
|
williamr@2
|
243 |
@see KFormatYUV422PlanarUidValue
|
williamr@2
|
244 |
*/
|
williamr@2
|
245 |
const TUid KUidFormatYUV422Planar = {KFormatYUV422PlanarUidValue};
|
williamr@2
|
246 |
|
williamr@2
|
247 |
/**
|
williamr@2
|
248 |
TFrameFormat format code.
|
williamr@2
|
249 |
|
williamr@2
|
250 |
Format Description:
|
williamr@2
|
251 |
YUV 4:4:4 image format.
|
williamr@2
|
252 |
Planar, 24 bits per pixel, 8 bits per sample.
|
williamr@2
|
253 |
Pixel order: Y00Y01Y02Y03...U00U01U02U03...V00V01V02V03...
|
williamr@2
|
254 |
|
williamr@2
|
255 |
No equivalent ECam format code.
|
williamr@2
|
256 |
|
williamr@2
|
257 |
No equivalent Video FourCC code.
|
williamr@2
|
258 |
|
williamr@2
|
259 |
@see CCamera::TFormat
|
williamr@2
|
260 |
@see KFormatYUV444PlanarUidValue
|
williamr@2
|
261 |
*/
|
williamr@2
|
262 |
const TUid KUidFormatYUV444Planar = {KFormatYUV444PlanarUidValue};
|
williamr@2
|
263 |
|
williamr@2
|
264 |
/**
|
williamr@2
|
265 |
TFrameFormat format code.
|
williamr@2
|
266 |
|
williamr@2
|
267 |
Format Description:
|
williamr@2
|
268 |
YUV 4:4:4 image format.
|
williamr@2
|
269 |
Interleaved, 24 bit per pixel, 8 bits per sample.
|
williamr@2
|
270 |
Pixel order: Y00U00V00 Y01U01V01...
|
williamr@2
|
271 |
|
williamr@2
|
272 |
Equivalent to ECam format code CCamera::EFormatYUV444.
|
williamr@2
|
273 |
|
williamr@2
|
274 |
No equivalent Video FourCC code.
|
williamr@2
|
275 |
|
williamr@2
|
276 |
@see CCamera::TFormat
|
williamr@2
|
277 |
@see KFormatYUV444InterleavedUidValue
|
williamr@2
|
278 |
*/
|
williamr@2
|
279 |
const TUid KUidFormatYUV444Interleaved = {KFormatYUV444InterleavedUidValue};
|
williamr@2
|
280 |
|
williamr@2
|
281 |
/**
|
williamr@2
|
282 |
TFrameFormat format code.
|
williamr@2
|
283 |
|
williamr@2
|
284 |
Format Description:
|
williamr@2
|
285 |
YUV 4:2:0 image format.
|
williamr@2
|
286 |
Semiplanar, 12 bits per pixel, 8-bit per sample.
|
williamr@2
|
287 |
Y plane followed by an interleaved U/V plane with 2x2 subsampling.
|
williamr@2
|
288 |
Pixel order: Y00Y01Y02Y03...U0V0...
|
williamr@2
|
289 |
|
williamr@2
|
290 |
Equivalent to ECam format code CCamera::EFormatYUV420SemiPlanar.
|
williamr@2
|
291 |
|
williamr@2
|
292 |
Equivalent to Video FourCC code NV12.
|
williamr@2
|
293 |
|
williamr@2
|
294 |
@see CCamera::TFormat
|
williamr@2
|
295 |
@see KFormatYUV420SemiPlanarUidValue
|
williamr@2
|
296 |
*/
|
williamr@2
|
297 |
const TUid KUidFormatYUV420SemiPlanar = {KFormatYUV420SemiPlanarUidValue};
|
williamr@2
|
298 |
|
williamr@2
|
299 |
|
williamr@2
|
300 |
/* Colour spaces */
|
williamr@2
|
301 |
|
williamr@2
|
302 |
/**
|
williamr@2
|
303 |
TFrameFormat image frame color space for YCbCr.
|
williamr@2
|
304 |
@see KColourSpaceYCbCrUidValue
|
williamr@2
|
305 |
*/
|
williamr@2
|
306 |
const TUid KUidColourSpaceYCbCr = {KColourSpaceYCbCrUidValue};
|
williamr@2
|
307 |
|
williamr@2
|
308 |
/**
|
williamr@2
|
309 |
TFrameFormat image frame color space for YUV.
|
williamr@2
|
310 |
@see KColourSpaceYUVUidValue
|
williamr@2
|
311 |
*/
|
williamr@2
|
312 |
const TUid KUidColourSpaceYUV = {KColourSpaceYUVUidValue};
|
williamr@2
|
313 |
|
williamr@2
|
314 |
/**
|
williamr@2
|
315 |
TFrameFormat image frame color space for RGB.
|
williamr@2
|
316 |
@see KColourSpaceRGBUidValue
|
williamr@2
|
317 |
*/
|
williamr@2
|
318 |
const TUid KUidColourSpaceRGB = {KColourSpaceRGBUidValue};
|
williamr@2
|
319 |
|
williamr@2
|
320 |
|
williamr@2
|
321 |
/* Sampling */
|
williamr@2
|
322 |
|
williamr@2
|
323 |
/**
|
williamr@2
|
324 |
TFrameFormat frame sampling for monochrome image data.
|
williamr@2
|
325 |
@see KSamplingMonochromeUidValue
|
williamr@2
|
326 |
*/
|
williamr@2
|
327 |
const TUid KUidSamplingMonochrome = {KSamplingMonochromeUidValue};
|
williamr@2
|
328 |
|
williamr@2
|
329 |
/**
|
williamr@2
|
330 |
TFrameFormat frame sampling for YUV444 image data.
|
williamr@2
|
331 |
@see KSamplingColor444UidValue
|
williamr@2
|
332 |
*/
|
williamr@2
|
333 |
const TUid KUidSamplingColor444 = {KSamplingColor444UidValue};
|
williamr@2
|
334 |
|
williamr@2
|
335 |
/**
|
williamr@2
|
336 |
TFrameFormat frame sampling for YUV422 image data.
|
williamr@2
|
337 |
@see KSamplingColor422UidValue
|
williamr@2
|
338 |
*/
|
williamr@2
|
339 |
const TUid KUidSamplingColor422 = {KSamplingColor422UidValue};
|
williamr@2
|
340 |
|
williamr@2
|
341 |
/**
|
williamr@2
|
342 |
TFrameFormat frame sampling for YUV420 image data.
|
williamr@2
|
343 |
@see KSamplingColor420UidValue
|
williamr@2
|
344 |
*/
|
williamr@2
|
345 |
const TUid KUidSamplingColor420 = {KSamplingColor420UidValue};
|
williamr@2
|
346 |
|
williamr@2
|
347 |
/**
|
williamr@2
|
348 |
TFrameFormat frame sampling for YUV411 image data.
|
williamr@2
|
349 |
@see KSamplingColor411UidValue
|
williamr@2
|
350 |
*/
|
williamr@2
|
351 |
const TUid KUidSamplingColor411 = {KSamplingColor411UidValue};
|
williamr@2
|
352 |
|
williamr@2
|
353 |
|
williamr@2
|
354 |
/**
|
williamr@2
|
355 |
Specific JPEG ImageFrame Decoder/Encoder option for the ConvertFrame API.
|
williamr@2
|
356 |
@see KOptionConvertFrameUidValue
|
williamr@2
|
357 |
*/
|
williamr@2
|
358 |
const TUid KUidOptionConvertFrame = {KOptionConvertFrameUidValue};
|
williamr@2
|
359 |
|
williamr@2
|
360 |
/**
|
williamr@2
|
361 |
Specific JPEG ImageFrame Decoder option for the RecommendBufferSize API.
|
williamr@2
|
362 |
This option allows the client of the decoder to obtain the recommended size for a ImageFrame
|
williamr@2
|
363 |
and allocate memory accordingly.
|
williamr@2
|
364 |
@see KRecommendBufferSizeUidValue
|
williamr@2
|
365 |
*/
|
williamr@2
|
366 |
const TUid KUidOptionRecommendBufferSize = {KOptionRecommendBufferSizeUidValue};
|
williamr@2
|
367 |
|
williamr@2
|
368 |
#endif // IMAGEFRAMECONST_H
|