|
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 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef OMXILGRAPHICSINK_H |
|
24 #define OMXILGRAPHICSINK_H |
|
25 |
|
26 #include "omxilcomponent.h" |
|
27 |
|
28 class COmxILGraphicSinkVPB0Port; |
|
29 class COmxILGraphicSinkProcessingFunction; |
|
30 |
|
31 /** |
|
32 OpenMAX IL based graphics sink component class |
|
33 */ |
|
34 class COmxILGraphicSink : public COmxILComponent |
|
35 { |
|
36 public: |
|
37 /** The major version number of component. */ |
|
38 static const TUint8 iComponentVersionMajor = OMX_VERSION_MAJOR; |
|
39 /** The minor version number of component. */ |
|
40 static const TUint8 iComponentVersionMinor = OMX_VERSION_MINOR; |
|
41 /** The revision version number of component. */ |
|
42 static const TUint8 iComponentVersionRevision = OMX_VERSION_REVISION; |
|
43 /** The step version number of component. */ |
|
44 static const TUint8 iComponentVersionStep = OMX_VERSION_STEP; |
|
45 |
|
46 public: |
|
47 static TInt CreateComponent(OMX_HANDLETYPE aComponent); |
|
48 ~COmxILGraphicSink(); |
|
49 |
|
50 private: |
|
51 COmxILGraphicSink(); |
|
52 void ConstructL(OMX_HANDLETYPE aHandle); |
|
53 |
|
54 COmxILGraphicSinkVPB0Port* ConstructVPB0PortL(); |
|
55 void SetPortToPF(COmxILGraphicSinkVPB0Port* aPort); |
|
56 |
|
57 private: |
|
58 /** A pointer to the VPB0Port. The ownership of the VPB0Port lies with this class. */ |
|
59 COmxILGraphicSinkVPB0Port* ipb0Port; |
|
60 /** A pointer to the processing function. The ownership of the processing function lies with this class. */ |
|
61 COmxILGraphicSinkProcessingFunction* ipGraphicSinkProcessingFunction; |
|
62 }; |
|
63 |
|
64 #endif // OMXILGRAPHICSINK_H |