|
1 // Copyright (c) 2010 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 @internalComponent |
|
20 */ |
|
21 |
|
22 #ifndef OMXILAUDIOPORTIMPL_H |
|
23 #define OMXILAUDIOPORTIMPL_H |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <openmax/il/khronos/v1_x/OMX_Types.h> |
|
27 #include <openmax/il/khronos/v1_x/OMX_Core.h> |
|
28 #include <openmax/il/khronos/v1_x/OMX_Component.h> |
|
29 #include <openmax/il/common/omxilport.h> |
|
30 |
|
31 class COmxILAudioPortImpl : public CBase |
|
32 { |
|
33 public: |
|
34 static COmxILAudioPortImpl* NewL(const RArray<OMX_AUDIO_CODINGTYPE>& aSupportedAudioFormats, |
|
35 const TOmxILCommonPortData& aCommonPortData); |
|
36 ~COmxILAudioPortImpl(); |
|
37 OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
38 TAny* apComponentParameterStructure) const; |
|
39 OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
40 const TAny* apComponentParameterStructure, |
|
41 TBool& aUpdateProcessingFunction); |
|
42 |
|
43 private: |
|
44 COmxILAudioPortImpl(); |
|
45 void ConstructL(const RArray<OMX_AUDIO_CODINGTYPE>& aSupportedAudioFormats, |
|
46 const TOmxILCommonPortData& aCommonPortData); |
|
47 private: |
|
48 RArray<OMX_AUDIO_CODINGTYPE> iSupportedAudioFormats; |
|
49 OMX_AUDIO_PARAM_PORTFORMATTYPE iParamAudioPortFormat; |
|
50 }; |
|
51 |
|
52 #endif // OMXILAUDIOPORTIMPL_H |
|
53 |