1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 /** |
|
18 * @file |
|
19 * @internalTechnology |
|
20 */ |
|
21 |
|
22 #ifndef OMXILIMAGEPORT_H |
|
23 #define OMXILIMAGEPORT_H |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 #include <openmax/il/khronos/v1_x/OMX_Types.h> |
|
28 #include <openmax/il/khronos/v1_x/OMX_Core.h> |
|
29 #include <openmax/il/khronos/v1_x/OMX_Component.h> |
|
30 |
|
31 #include "omxilport.h" |
|
32 |
|
33 class COmxILImagePort : public COmxILPort |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 IMPORT_C ~COmxILImagePort(); |
|
39 |
|
40 // From COmxILPort |
|
41 IMPORT_C OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const = 0; |
|
42 |
|
43 // From COmxILPort |
|
44 IMPORT_C OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const = 0; |
|
45 |
|
46 // From COmxILPort |
|
47 IMPORT_C OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
48 TAny* apComponentParameterStructure) const = 0; |
|
49 // From COmxILPort |
|
50 IMPORT_C OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
51 const TAny* apComponentParameterStructure, |
|
52 TBool& aUpdateProcessingFunction) = 0; |
|
53 |
|
54 protected: |
|
55 |
|
56 IMPORT_C COmxILImagePort(const TOmxILCommonPortData& aCommonPortData, |
|
57 const RArray<OMX_IMAGE_CODINGTYPE>& aSupportedImageFormats, |
|
58 const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColorFormats); |
|
59 |
|
60 // From COmxILPort |
|
61 IMPORT_C OMX_ERRORTYPE SetFormatInPortDefinition( |
|
62 const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition, |
|
63 TBool& aUpdateProcessingFunction) = 0; |
|
64 |
|
65 // From COmxILPort |
|
66 IMPORT_C TBool IsTunnelledPortCompatible( |
|
67 const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const = 0; |
|
68 |
|
69 protected: |
|
70 |
|
71 RArray<OMX_IMAGE_CODINGTYPE> iSupportedImageFormats; |
|
72 RArray<OMX_COLOR_FORMATTYPE> iSupportedColorFormats; |
|
73 OMX_IMAGE_PARAM_PORTFORMATTYPE iParamImagePortFormat; |
|
74 }; |
|
75 |
|
76 #endif // OMXILIMAGEPORT_H |
|