|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Synchronous Image Operations |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __SyncImageOperations_H__ |
|
21 #define __SyncImageOperations_H__ |
|
22 |
|
23 |
|
24 |
|
25 #define __WITHIN_MCI_LIBRARY // Needed because of conflicting typedef |
|
26 #include <mdaimageconverter.h> |
|
27 |
|
28 |
|
29 // ------------------------------------------------------------------------------------------------ |
|
30 // CSyncDither |
|
31 // ------------------------------------------------------------------------------------------------ |
|
32 class CSyncDither : public CBase, public MMdaImageUtilObserver |
|
33 { |
|
34 public: |
|
35 |
|
36 // Other |
|
37 static TInt DitherL( CFbsBitmap& aBitmap, TDisplayMode aDisplayMode ); |
|
38 |
|
39 protected: |
|
40 static CSyncDither* NewL( ); |
|
41 static CSyncDither* NewLC( ); |
|
42 |
|
43 virtual ~CSyncDither(); |
|
44 |
|
45 TInt DoDitherL( CFbsBitmap& aBitmap, TDisplayMode aDisplayMode ); |
|
46 |
|
47 private: |
|
48 CSyncDither(); |
|
49 void ConstructL(); |
|
50 |
|
51 private: // from MMdaImageUtilObserver |
|
52 void MiuoCreateComplete(TInt aError); |
|
53 void MiuoOpenComplete(TInt aError); |
|
54 void MiuoConvertComplete(TInt aError); |
|
55 |
|
56 private: // new |
|
57 void BeginWait(); |
|
58 void EndWait(); |
|
59 |
|
60 private: |
|
61 CMdaImageBitmapToBitmapUtility* iDitherer; |
|
62 CActiveSchedulerWait iScheduler; |
|
63 TInt iError; |
|
64 |
|
65 }; |
|
66 |
|
67 |
|
68 #endif // __SyncImageOperations_H__ |