|
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 OMXILOTHERPORTIMPL_H |
|
23 #define OMXILOTHERPORTIMPL_H |
|
24 |
|
25 #include <openmax/il/common/omxilport.h> |
|
26 #include <e32base.h> |
|
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 class COmxILOtherPortImpl : public CBase |
|
32 { |
|
33 public: |
|
34 static COmxILOtherPortImpl* NewL(const RArray<OMX_OTHER_FORMATTYPE>& aSupportedOtherFormats, |
|
35 const TOmxILCommonPortData& aCommonPortData); |
|
36 ~COmxILOtherPortImpl(); |
|
37 OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
38 TAny* apComponentParameterStructure) const; |
|
39 |
|
40 OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
41 const TAny* apComponentParameterStructure, |
|
42 TBool& aUpdateProcessingFunction); |
|
43 |
|
44 const RArray<OMX_OTHER_FORMATTYPE>& GetSupportedOtherFormats() const; |
|
45 const OMX_OTHER_PARAM_PORTFORMATTYPE& GetParamOtherPortFormat() const; |
|
46 RArray<OMX_OTHER_FORMATTYPE>& GetSupportedOtherFormats(); |
|
47 OMX_OTHER_PARAM_PORTFORMATTYPE& GetParamOtherPortFormat(); |
|
48 |
|
49 |
|
50 protected: |
|
51 COmxILOtherPortImpl(const TOmxILCommonPortData& aCommonPortData); |
|
52 void ConstructL(const RArray<OMX_OTHER_FORMATTYPE>& aSupportedOtherFormats); |
|
53 |
|
54 private: |
|
55 // To indicate the supported formats |
|
56 RArray<OMX_OTHER_FORMATTYPE> iSupportedOtherFormats; |
|
57 OMX_OTHER_PARAM_PORTFORMATTYPE iParamOtherPortFormat; |
|
58 }; |
|
59 |
|
60 #endif // OMXILOTHERPORTIMPL_H |