0
|
1 |
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Mda\Common\Video.h
|
|
15 |
// This version forms part of the backwards compatible ImageConversion routines
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
#ifndef __MDA_COMMON_VIDEO_H__
|
|
20 |
#define __MDA_COMMON_VIDEO_H__
|
|
21 |
|
|
22 |
#include <gdi.h>
|
|
23 |
#include <mda/common/resource.h>
|
|
24 |
#include <mda/common/video.hrh>
|
|
25 |
|
|
26 |
// Video data type Uid
|
|
27 |
|
|
28 |
MDA_UID(KUidMdaMediaTypeVideo)
|
|
29 |
MDA_UID(KUidMdaVideoFrameSettings)
|
|
30 |
MDA_UID(KUidMdaVideoCurrentFrame)
|
|
31 |
MDA_UID(KUidMdaDstPortSourceRect)
|
|
32 |
MDA_UID(KUidMdaMbmClipFormat)
|
|
33 |
MDA_UID(KUidMdaMbmCodec)
|
|
34 |
MDA_UID(KUidMdaBmpClipFormat)
|
|
35 |
MDA_UID(KUidMdaBmpCodec)
|
|
36 |
MDA_UID(KUidMda1BppBmpCodec)
|
|
37 |
MDA_UID(KUidMda4BppBmpCodec)
|
|
38 |
MDA_UID(KUidMda8BppBmpCodec)
|
|
39 |
MDA_UID(KUidMda24BppBmpCodec)
|
|
40 |
MDA_UID(KUidMdaFbsBitmapDevice)
|
|
41 |
MDA_UID(KUidMdaFbsBitmapHandle)
|
|
42 |
MDA_UID(KUidMdaFbsBitmapMaskHandle)
|
|
43 |
MDA_UID(KUidMdaJfifClipFormat)
|
|
44 |
MDA_UID(KUidMdaJpgCodec)
|
|
45 |
MDA_UID(KUidMdaJpgQTable)
|
|
46 |
MDA_UID(KUidMdaJpgComment)
|
|
47 |
MDA_UID(KUidMdaWbmpClipFormat)
|
|
48 |
MDA_UID(KUidMdaWbmpCodec)
|
|
49 |
MDA_UID(KUidMdaOtaClipFormat)
|
|
50 |
MDA_UID(KUidMdaOtaCodec)
|
|
51 |
MDA_UID(KUidMdaPngClipFormat)
|
|
52 |
MDA_UID(KUidMdaPngCodec)
|
|
53 |
MDA_UID(KUidMdaWmfClipFormat)
|
|
54 |
MDA_UID(KUidMdaWmfApmClipFormat)
|
|
55 |
MDA_UID(KUidMdaWmfClpClipFormat)
|
|
56 |
MDA_UID(KUidMdaWmfCodec)
|
|
57 |
MDA_UID(KUidMdaTiffLittleEndianClipFormat)
|
|
58 |
MDA_UID(KUidMdaTiffBigEndianClipFormat)
|
|
59 |
MDA_UID(KUidMdaTiffCodec)
|
|
60 |
MDA_UID(KUidMdaIcoClipFormat)
|
|
61 |
MDA_UID(KUidMdaIcoCodec)
|
|
62 |
MDA_UID(KUidMdaGif87aClipFormat)
|
|
63 |
MDA_UID(KUidMdaGif89aClipFormat)
|
|
64 |
MDA_UID(KUidMdaGifCodec)
|
|
65 |
|
|
66 |
|
|
67 |
/**
|
|
68 |
@publishedAll
|
|
69 |
@released
|
|
70 |
|
|
71 |
Video buffer settings. May be combined.
|
|
72 |
*/
|
|
73 |
enum TMdaVideoBufferSettings
|
|
74 |
{
|
|
75 |
/** Can only handle buffers whilst playing
|
|
76 |
*/
|
|
77 |
EMdaVideoBufferAtPlay = 0x0000000,
|
|
78 |
/** Can handle buffers when primed
|
|
79 |
*/
|
|
80 |
EMdaVideoBufferAtPrime = 0x0000001,
|
|
81 |
/** Must have two buffers for uninterrupted play
|
|
82 |
*/
|
|
83 |
EMdaVideoBufferDouble = 0x0000002,
|
|
84 |
/** Will supply buffers for efficiency
|
|
85 |
*/
|
|
86 |
EMdaVideoBufferSupply = 0x0000004
|
|
87 |
};
|
|
88 |
|
|
89 |
|
|
90 |
/**
|
|
91 |
* @publishedAll
|
|
92 |
* @deprecated
|
|
93 |
*
|
|
94 |
* Bmp Clip Format
|
|
95 |
*/
|
|
96 |
class TMdaBmpClipFormat : public TMdaClipFormat
|
|
97 |
{
|
|
98 |
public:
|
|
99 |
inline TMdaBmpClipFormat();
|
|
100 |
};
|
|
101 |
|
|
102 |
|
|
103 |
/**
|
|
104 |
* @publishedAll
|
|
105 |
* @deprecated
|
|
106 |
*
|
|
107 |
* 1 Bpp Bmp Codec
|
|
108 |
*/
|
|
109 |
class TMda1BppBmpCodec : public TMdaPackage
|
|
110 |
{
|
|
111 |
public:
|
|
112 |
inline TMda1BppBmpCodec();
|
|
113 |
};
|
|
114 |
|
|
115 |
|
|
116 |
/**
|
|
117 |
* @publishedAll
|
|
118 |
* @deprecated
|
|
119 |
*
|
|
120 |
* 4 Bpp Bmp Codec
|
|
121 |
*/
|
|
122 |
class TMda4BppBmpCodec : public TMdaPackage
|
|
123 |
{
|
|
124 |
public:
|
|
125 |
inline TMda4BppBmpCodec();
|
|
126 |
};
|
|
127 |
|
|
128 |
|
|
129 |
/**
|
|
130 |
* @publishedAll
|
|
131 |
* @deprecated
|
|
132 |
*
|
|
133 |
* 8 Bpp Bmp Codec
|
|
134 |
*/
|
|
135 |
class TMda8BppBmpCodec : public TMdaPackage
|
|
136 |
{
|
|
137 |
public:
|
|
138 |
inline TMda8BppBmpCodec();
|
|
139 |
};
|
|
140 |
|
|
141 |
|
|
142 |
/**
|
|
143 |
* @publishedAll
|
|
144 |
* @deprecated
|
|
145 |
*
|
|
146 |
* 24 Bpp Bmp Codec
|
|
147 |
*/
|
|
148 |
class TMda24BppBmpCodec : public TMdaPackage
|
|
149 |
{
|
|
150 |
public:
|
|
151 |
inline TMda24BppBmpCodec();
|
|
152 |
};
|
|
153 |
|
|
154 |
|
|
155 |
/**
|
|
156 |
* @publishedAll
|
|
157 |
* @deprecated
|
|
158 |
*
|
|
159 |
* Jpeg settings
|
|
160 |
*/
|
|
161 |
class TMdaJpgSettings
|
|
162 |
{
|
|
163 |
public:
|
|
164 |
inline TMdaJpgSettings(); // Defaults to EColor420 and 50
|
|
165 |
public:
|
|
166 |
enum TColorSampling
|
|
167 |
{
|
|
168 |
EMonochrome,
|
|
169 |
EColor420,
|
|
170 |
EColor422,
|
|
171 |
EColor444
|
|
172 |
};
|
|
173 |
public:
|
|
174 |
TColorSampling iSampleScheme;
|
|
175 |
TInt iQualityFactor; // 0 to 100 inclusive
|
|
176 |
};
|
|
177 |
|
|
178 |
|
|
179 |
/**
|
|
180 |
* @publishedAll
|
|
181 |
* @deprecated
|
|
182 |
*
|
|
183 |
* Jfif Clip Format
|
|
184 |
*/
|
|
185 |
class TMdaJfifClipFormat : public TMdaClipFormat
|
|
186 |
{
|
|
187 |
public:
|
|
188 |
inline TMdaJfifClipFormat();
|
|
189 |
public:
|
|
190 |
TMdaJpgSettings iSettings;
|
|
191 |
};
|
|
192 |
|
|
193 |
|
|
194 |
/** @publishedAll */
|
|
195 |
const TInt KMdaJpgQTableEntries = 64;
|
|
196 |
|
|
197 |
class TMdaJpgQTable : public TMdaPackage
|
|
198 |
/**
|
|
199 |
* @publishedAll
|
|
200 |
* @deprecated
|
|
201 |
*
|
|
202 |
* Jpeg Quantization table - in direct format
|
|
203 |
*/
|
|
204 |
{
|
|
205 |
public:
|
|
206 |
inline TMdaJpgQTable();
|
|
207 |
public:
|
|
208 |
enum TQTableIndex { ELumaTable = 0, EChromaTable = 1 };
|
|
209 |
public:
|
|
210 |
TInt iTableIndex;
|
|
211 |
TBuf8<KMdaJpgQTableEntries> iEntries;
|
|
212 |
};
|
|
213 |
|
|
214 |
|
|
215 |
/** @deprecated */
|
|
216 |
const TInt KJpgCommentBufferSize = 256;
|
|
217 |
/**
|
|
218 |
* @publishedAll
|
|
219 |
* @deprecated
|
|
220 |
*
|
|
221 |
* Jpeg comment
|
|
222 |
*/
|
|
223 |
class TMdaJpgComment : public TMdaPackage
|
|
224 |
{
|
|
225 |
public:
|
|
226 |
inline TMdaJpgComment();
|
|
227 |
public:
|
|
228 |
TInt iCommentIndex; // Comment block to set/query
|
|
229 |
TInt iCommentBufferIndex; // Index of KJpgCommentBufferSize block within comment to set/query
|
|
230 |
TInt iTotalCommentLength; // Total size of comment being queried
|
|
231 |
TBuf8<KJpgCommentBufferSize> iComment; // Comment to set/query
|
|
232 |
};
|
|
233 |
|
|
234 |
|
|
235 |
/**
|
|
236 |
* @publishedAll
|
|
237 |
* @deprecated
|
|
238 |
*
|
|
239 |
* Mbm Clip Format
|
|
240 |
*/
|
|
241 |
class TMdaMbmClipFormat : public TMdaClipFormat
|
|
242 |
{
|
|
243 |
public:
|
|
244 |
inline TMdaMbmClipFormat();
|
|
245 |
public:
|
|
246 |
TDisplayMode iDisplayMode;
|
|
247 |
};
|
|
248 |
|
|
249 |
|
|
250 |
/**
|
|
251 |
* @publishedAll
|
|
252 |
* @deprecated
|
|
253 |
*
|
|
254 |
* Wbmp Clip Format
|
|
255 |
*/
|
|
256 |
class TMdaWbmpClipFormat : public TMdaClipFormat
|
|
257 |
{
|
|
258 |
public:
|
|
259 |
inline TMdaWbmpClipFormat();
|
|
260 |
};
|
|
261 |
|
|
262 |
|
|
263 |
/**
|
|
264 |
* @publishedAll
|
|
265 |
* @deprecated
|
|
266 |
*
|
|
267 |
* Wbmp Codec
|
|
268 |
*/
|
|
269 |
class TMdaWbmpCodec : public TMdaPackage
|
|
270 |
{
|
|
271 |
public:
|
|
272 |
inline TMdaWbmpCodec();
|
|
273 |
};
|
|
274 |
|
|
275 |
|
|
276 |
/**
|
|
277 |
* @publishedAll
|
|
278 |
* @deprecated
|
|
279 |
*
|
|
280 |
* Ota Clip Format
|
|
281 |
*/
|
|
282 |
class TMdaOtaClipFormat : public TMdaClipFormat
|
|
283 |
{
|
|
284 |
public:
|
|
285 |
inline TMdaOtaClipFormat();
|
|
286 |
};
|
|
287 |
|
|
288 |
|
|
289 |
/**
|
|
290 |
* @publishedAll
|
|
291 |
* @deprecated
|
|
292 |
*
|
|
293 |
* Ota Codec
|
|
294 |
*/
|
|
295 |
class TMdaOtaCodec : public TMdaPackage
|
|
296 |
{
|
|
297 |
public:
|
|
298 |
inline TMdaOtaCodec();
|
|
299 |
};
|
|
300 |
|
|
301 |
|
|
302 |
/**
|
|
303 |
* @publishedAll
|
|
304 |
* @deprecated
|
|
305 |
*
|
|
306 |
* Png Clip Format
|
|
307 |
*/
|
|
308 |
class TMdaPngClipFormat : public TMdaClipFormat
|
|
309 |
{
|
|
310 |
public:
|
|
311 |
inline TMdaPngClipFormat();
|
|
312 |
};
|
|
313 |
|
|
314 |
|
|
315 |
/**
|
|
316 |
* @publishedAll
|
|
317 |
* @deprecated
|
|
318 |
*
|
|
319 |
* Png Codec
|
|
320 |
*/
|
|
321 |
class TMdaPngCodec : public TMdaPackage
|
|
322 |
{
|
|
323 |
public:
|
|
324 |
inline TMdaPngCodec();
|
|
325 |
};
|
|
326 |
|
|
327 |
|
|
328 |
/**
|
|
329 |
* @publishedAll
|
|
330 |
* @deprecated
|
|
331 |
*
|
|
332 |
* Wmf Clip Format
|
|
333 |
*/
|
|
334 |
class TMdaWmfClipFormat : public TMdaClipFormat
|
|
335 |
{
|
|
336 |
public:
|
|
337 |
inline TMdaWmfClipFormat();
|
|
338 |
};
|
|
339 |
|
|
340 |
|
|
341 |
/**
|
|
342 |
* @publishedAll
|
|
343 |
* @deprecated
|
|
344 |
*
|
|
345 |
* Wmf Apm Clip Format
|
|
346 |
*/
|
|
347 |
class TMdaWmfApmClipFormat : public TMdaClipFormat
|
|
348 |
{
|
|
349 |
public:
|
|
350 |
inline TMdaWmfApmClipFormat();
|
|
351 |
};
|
|
352 |
|
|
353 |
|
|
354 |
/**
|
|
355 |
* @publishedAll
|
|
356 |
* @deprecated
|
|
357 |
*
|
|
358 |
* Wmf Clp Clip Format
|
|
359 |
*/
|
|
360 |
class TMdaWmfClpClipFormat : public TMdaClipFormat
|
|
361 |
{
|
|
362 |
public:
|
|
363 |
inline TMdaWmfClpClipFormat();
|
|
364 |
};
|
|
365 |
|
|
366 |
|
|
367 |
/**
|
|
368 |
* @publishedAll
|
|
369 |
* @deprecated
|
|
370 |
*
|
|
371 |
* Wmf Codec
|
|
372 |
*/
|
|
373 |
class TMdaWmfCodec : public TMdaPackage
|
|
374 |
{
|
|
375 |
public:
|
|
376 |
inline TMdaWmfCodec();
|
|
377 |
};
|
|
378 |
|
|
379 |
|
|
380 |
/**
|
|
381 |
* @publishedAll
|
|
382 |
* @deprecated
|
|
383 |
*
|
|
384 |
* Gif87a Clip Format
|
|
385 |
*/
|
|
386 |
class TMdaGif87aClipFormat : public TMdaClipFormat
|
|
387 |
{
|
|
388 |
public:
|
|
389 |
inline TMdaGif87aClipFormat();
|
|
390 |
};
|
|
391 |
|
|
392 |
|
|
393 |
/**
|
|
394 |
* @publishedAll
|
|
395 |
* @deprecated
|
|
396 |
*
|
|
397 |
* Gif89a Clip Format (Animated)
|
|
398 |
*/
|
|
399 |
class TMdaGif89aClipFormat : public TMdaClipFormat
|
|
400 |
{
|
|
401 |
public:
|
|
402 |
inline TMdaGif89aClipFormat();
|
|
403 |
};
|
|
404 |
|
|
405 |
|
|
406 |
/**
|
|
407 |
* @publishedAll
|
|
408 |
* @deprecated
|
|
409 |
*
|
|
410 |
* Gif Codec
|
|
411 |
*/
|
|
412 |
class TMdaGifCodec : public TMdaPackage
|
|
413 |
{
|
|
414 |
public:
|
|
415 |
inline TMdaGifCodec();
|
|
416 |
};
|
|
417 |
|
|
418 |
#include <mda/common/video.inl>
|
|
419 |
|
|
420 |
#endif
|
|
421 |
|