22 // INCLUDES |
22 // INCLUDES |
23 #include <aknapp.h> |
23 #include <aknapp.h> |
24 #include <imageconversion.h> |
24 #include <imageconversion.h> |
25 #include "glxhdmisurfaceupdater.h" |
25 #include "glxhdmisurfaceupdater.h" |
26 |
26 |
|
27 // Fwd decleration |
27 class CImageDecoder; |
28 class CImageDecoder; |
28 // CLASS DECLARATION |
29 |
|
30 /** |
|
31 * Class Description |
|
32 * This is the decoder class used to decode Images to HDMI quality. |
|
33 * |
|
34 * Clients should create an instance of this class from CGlxHdmiSurfaceUpdater , with an |
|
35 * instance of it and call ConvertImageL() with approprriate parameters |
|
36 */ |
29 |
37 |
30 class CGlxHdmiDecoderAO : public CActive |
38 class CGlxHdmiDecoderAO : public CActive |
31 { |
39 { |
32 public: |
40 public: |
33 /* |
41 |
|
42 /** |
34 * NewL() |
43 * NewL() |
35 * @Param1 CGlxHdmiSurfaceUpdater |
44 * @param CGlxHdmiSurfaceUpdater |
|
45 * @return CGlxHdmiDecoderAO object |
36 */ |
46 */ |
37 static CGlxHdmiDecoderAO* NewL(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater); |
47 static CGlxHdmiDecoderAO* NewL(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater); |
38 |
48 |
39 /* |
49 /** |
40 * Destructor |
50 * Destructor |
41 */ |
51 */ |
42 ~CGlxHdmiDecoderAO(); |
52 ~CGlxHdmiDecoderAO(); |
43 |
53 |
44 /* |
54 /** |
45 * ConvertImageL() |
55 * ConvertImageL() |
46 * This calls the asyncronous service request to ICL convert |
56 * This calls the asyncronous service request to ICL convert |
47 * @param1 - Destination Bitmap |
57 * @param - Destination Bitmap |
48 * @param2 - Image decoder |
58 * @param - Image decoder |
49 */ |
59 */ |
50 void ConvertImageL(CFbsBitmap& iBitmap,CImageDecoder* aDecoder); |
60 void ConvertImageL(CFbsBitmap& iBitmap,CImageDecoder* aDecoder); |
51 |
61 |
52 protected: |
62 protected:/// from CActive |
53 // from CActive |
|
54 void RunL(); |
63 void RunL(); |
55 void DoCancel(); |
64 void DoCancel(); |
56 |
65 |
57 private: |
66 private: |
58 /* |
67 /** |
59 * Constructor |
68 * Constructor |
60 */ |
69 */ |
61 CGlxHdmiDecoderAO(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater); |
70 CGlxHdmiDecoderAO(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater); |
62 |
71 |
63 private: |
72 private: |
64 CGlxHdmiSurfaceUpdater* iHdmiSurfaceUpdater; // not owned |
73 /// not owned |
|
74 CGlxHdmiSurfaceUpdater* iHdmiSurfaceUpdater; |
|
75 /// Image decoder instance |
65 CImageDecoder* iDecoder; |
76 CImageDecoder* iDecoder; |
66 }; |
77 }; |
67 |
78 |
68 #endif /* GLXACTIVEDECODER_H_ */ |
79 #endif /* GLXACTIVEDECODER_H_ */ |