|
1 /* |
|
2 * Copyright (c) 2008-2009 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: Gif Decoder Active Object |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GLXDRMGIFACTIVEDECODER_H_ |
|
20 #define GLXDRMGIFACTIVEDECODER_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <imageconversion.h> |
|
24 #include "glxdrmgiftexturecreator.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 class CImageDecoder; |
|
28 |
|
29 class CGlxDRMgifDecoderAO : public CActive |
|
30 { |
|
31 public: |
|
32 /* |
|
33 * NewL() |
|
34 * @Param1 CGlxDrmGifTextureCreator |
|
35 */ |
|
36 static CGlxDRMgifDecoderAO* NewL(CGlxDrmGifTextureCreator* aDrmGifTextureCreator); |
|
37 |
|
38 /* |
|
39 * Destructor |
|
40 */ |
|
41 ~CGlxDRMgifDecoderAO(); |
|
42 |
|
43 /* |
|
44 * ConvertImageL() |
|
45 * This calls the asyncronous service request to ICL convert |
|
46 * @param1 - Destination Bitmap |
|
47 * @param2 - Destination Bitmap Mask |
|
48 * @param3 - Frame number to be decoded |
|
49 * @param4 - Image decoder |
|
50 */ |
|
51 void ConvertImageL(CFbsBitmap* aBitmap, CFbsBitmap* aBitmapMask, TInt aFrameNum, |
|
52 CImageDecoder* aDecoder); |
|
53 protected: |
|
54 // from CActive |
|
55 void RunL(); |
|
56 void DoCancel(); |
|
57 private: |
|
58 /* |
|
59 * Constructor |
|
60 */ |
|
61 CGlxDRMgifDecoderAO(CGlxDrmGifTextureCreator* aDrmGifTextureCreator); |
|
62 |
|
63 private: |
|
64 CGlxDrmGifTextureCreator* iDrmGifTextureCreator; // not owned |
|
65 CImageDecoder* iDecoder; // not owned |
|
66 }; |
|
67 |
|
68 #endif /* GLXDRMGIFACTIVEDECODER_H_ */ |