equal
deleted
inserted
replaced
|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GLXACTIVEDECODER_H_ |
|
20 #define GLXACTIVEDECODER_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknapp.h> |
|
24 #include <imageconversion.h> |
|
25 #include "glxhdmisurfaceupdater.h" |
|
26 |
|
27 class CImageDecoder; |
|
28 // CLASS DECLARATION |
|
29 |
|
30 class CGlxHdmiDecoderAO : public CActive |
|
31 { |
|
32 public: |
|
33 /* |
|
34 * NewL() |
|
35 * @Param1 CGlxHdmiSurfaceUpdater |
|
36 * @param2 framecount |
|
37 */ |
|
38 static CGlxHdmiDecoderAO* NewL(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater, |
|
39 TInt aFrameCount); |
|
40 |
|
41 /* |
|
42 * Destructor |
|
43 */ |
|
44 ~CGlxHdmiDecoderAO(); |
|
45 |
|
46 /* |
|
47 * ConvertImageL() |
|
48 * This calls the asyncronous service request to ICL convert |
|
49 * @param1 - Destination Bitmap |
|
50 * @param2 - Framecount |
|
51 * @param3 - Image decoder |
|
52 */ |
|
53 void ConvertImageL(CFbsBitmap& iBitmap, TInt aFrameNum,CImageDecoder* aDecoder); |
|
54 |
|
55 // void SetActive() { CActive::SetActive();}; |
|
56 |
|
57 protected: |
|
58 // from CActive |
|
59 void RunL(); |
|
60 void DoCancel(); |
|
61 private: |
|
62 /* |
|
63 * Constructor |
|
64 */ |
|
65 CGlxHdmiDecoderAO(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater,TInt aFrameCount); |
|
66 |
|
67 private: |
|
68 CGlxHdmiSurfaceUpdater* iHdmiSurfaceUpdater; // not owned |
|
69 CImageDecoder* iDecoder; |
|
70 TInt iFrameCount; |
|
71 TInt iDecodeCount; |
|
72 }; |
|
73 |
|
74 #endif /* GLXACTIVEDECODER_H_ */ |