|
1 // Copyright (c) 1999-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 // |
|
15 |
|
16 #ifndef __TMDATEST_H__ |
|
17 #define __TMDATEST_H__ |
|
18 |
|
19 #ifndef __MDA_CLIENT_TEST_H__ |
|
20 #include "Mda/Client/Test.h" |
|
21 #endif |
|
22 #ifndef __MDA_CLIENT_RESOURCE_H__ |
|
23 #include <mda/client/resource.h> |
|
24 #endif |
|
25 #ifndef __MDA_CLIENT_VIDEO_H__ |
|
26 #include <mda/client/video.h> |
|
27 #endif |
|
28 #ifndef __TMDACORE_H__ |
|
29 #include "TMDACORE.H" |
|
30 #endif |
|
31 #ifndef __MDAIMAGECONVERTER_H__ |
|
32 #include <mdaimageconverter.h> |
|
33 #endif |
|
34 |
|
35 class CMdaVideo5Test : public CMdaCoreTest, public MMdaImageUtilObserver |
|
36 { |
|
37 private: |
|
38 virtual void DoTestL(); |
|
39 virtual void MiuoCreateComplete(TInt aError); |
|
40 virtual void MiuoOpenComplete(TInt aError); |
|
41 virtual void MiuoConvertComplete(TInt aError); |
|
42 void TestUtilitiesL(); |
|
43 void FileL(CFbsBitmap& aBitmap,CMdaServer* aServer); |
|
44 void FileCancelL(CFbsBitmap& aBitmap,CMdaServer* aServer); |
|
45 void FileBmpL(CFbsBitmap& aBitmap,CMdaServer* aServer); |
|
46 void FileClippedL(CFbsBitmap& aBitmap,CMdaServer* aServer); |
|
47 void FileCacheL(CFbsBitmap& aBitmap,CMdaServer* aServer); |
|
48 void FileBmpCacheL(CFbsBitmap& aBitmap,CMdaServer* aServer); |
|
49 void DescL(CFbsBitmap& aBitmap,CMdaServer* aServer); |
|
50 void DescCacheL(CFbsBitmap& aBitmap,CMdaServer* aServer); |
|
51 void BitmapL(CFbsBitmap& aBitmap); |
|
52 void BitmapStackL(CFbsBitmap& aBitmap); |
|
53 void AnonymousFileL(CMdaServer* aServer); |
|
54 void TransparentL(CMdaServer* aServer); |
|
55 void TestRotationL(); |
|
56 void TestScalingL(); |
|
57 void WaitL(); |
|
58 void WaitAndCheckL(); |
|
59 void Signal(TInt aError,const TDesC& aMsg); |
|
60 void CheckBitmapL(CFbsBitmap& aBitmap); |
|
61 private: |
|
62 TInt iError; |
|
63 TInt iScaledIndex; |
|
64 TMdaOtaClipFormat iOtaClip; |
|
65 TMdaWbmpClipFormat iWbmpClip; |
|
66 CFbsBitmap* iReferenceScaledBitmap; |
|
67 }; |
|
68 |
|
69 _LIT(KVideoTestSourceFileName,"tmdavid.mbm"); |
|
70 _LIT(KVideoTestSourceScaledFileName,"ref\\scaled"); |
|
71 |
|
72 _LIT(KVideoTestRefDir,"ref\\"); |
|
73 _LIT(KVideoTestRefExt,".mbm"); |
|
74 _LIT(KVideoTestTempFileName,"c:\\tmdavidtemp.mbm"); |
|
75 _LIT(KVideoTestTempBmpFileName,"c:\\tmdavidtemp.bmp"); |
|
76 |
|
77 _LIT(KVideoTestOtaSourceFileName,"anon\\otabitmap.mbm"); |
|
78 _LIT(KVideoTestOtaFileName,"anon\\otabitmap"); |
|
79 _LIT(KVideoTestWbmpSourceFileName,"anon\\wirelessbitmap.mbm"); |
|
80 _LIT(KVideoTestWbmpFileName,"anon\\wirelessbitmap"); |
|
81 _LIT(KVideoTestMaskFileName,"trans.gif"); |
|
82 |
|
83 _LIT(KVideoTest1BppMonoMbm,"mbm1bpp.mbm"); |
|
84 _LIT(KVideoTest2BppMonoMbm,"mbm2bpp.mbm"); |
|
85 _LIT(KVideoTest4BppMonoMbm,"mbm4bppm.mbm"); |
|
86 _LIT(KVideoTest8BppMonoMbm,"mbm8bppm.mbm"); |
|
87 _LIT(KVideoTest4BppColorMbm,"mbm4bppc.mbm"); |
|
88 _LIT(KVideoTest8BppColorMbm,"mbm8bppc.mbm"); |
|
89 _LIT(KVideoTest12BppColorMbm,"mbm12bpp.mbm"); |
|
90 _LIT(KVideoTest16BppColorMbm,"mbm16bpp.mbm"); |
|
91 _LIT(KVideoTest24BppColorMbm,"mbm24bpp.mbm"); |
|
92 |
|
93 _LIT(KVideoTestJfifMono,"jfifMono.jpg"); |
|
94 _LIT(KVideoTestJfif420,"jfif420.jpg"); |
|
95 _LIT(KVideoTestJfif422,"jfif422.jpg"); |
|
96 _LIT(KVideoTestJfif444,"jfif444.jpg"); |
|
97 _LIT(KVideoTestJfif10,"jfif10.jpg"); |
|
98 _LIT(KVideoTestJfif30,"jfif30.jpg"); |
|
99 _LIT(KVideoTestJfif60,"jfif60.jpg"); |
|
100 _LIT(KVideoTestJfif100,"jfif100.jpg"); |
|
101 |
|
102 _LIT(KVideoTest1BppBmp,"bmp1bpp.bmp"); |
|
103 _LIT(KVideoTest4BppBmp,"bmp4bpp.bmp"); |
|
104 _LIT(KVideoTest8BppBmp,"bmp8bpp.bmp"); |
|
105 _LIT(KVideoTest24BppBmp,"bmp24bpp.bmp"); |
|
106 |
|
107 class CMdaServer; |
|
108 |
|
109 #endif |
|
110 |