|
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 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #ifndef OMXILPCMRENDERERAPB0PORT_H |
|
25 #define OMXILPCMRENDERERAPB0PORT_H |
|
26 |
|
27 #include <openmax/il/common/omxilaudioport.h> |
|
28 #include <openmax/il/extensions/omxilsymbianaudiopcmextensions.h> |
|
29 |
|
30 class COmxILPcmRendererAPB0Port : public COmxILAudioPort |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 static COmxILPcmRendererAPB0Port* NewL( |
|
36 const TOmxILCommonPortData& aCommonPortData, |
|
37 const RArray<OMX_AUDIO_CODINGTYPE>& aSupportedAudioFormats, |
|
38 const OMX_AUDIO_PARAM_PCMMODETYPE& aParamAudioPcm, |
|
39 const OMX_AUDIO_CONFIG_VOLUMETYPE& aConfigAudioVolume, |
|
40 const OMX_AUDIO_CONFIG_MUTETYPE& aConfigAudioMute); |
|
41 |
|
42 |
|
43 ~COmxILPcmRendererAPB0Port(); |
|
44 |
|
45 OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const; |
|
46 |
|
47 OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const; |
|
48 |
|
49 OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
50 TAny* apComponentParameterStructure) const; |
|
51 |
|
52 OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
53 const TAny* apComponentParameterStructure, |
|
54 TBool& aUpdateProcessingFunction); |
|
55 |
|
56 OMX_ERRORTYPE GetConfig(OMX_INDEXTYPE aConfigIndex, |
|
57 TAny* apComponentConfigStructure) const; |
|
58 |
|
59 OMX_ERRORTYPE SetConfig(OMX_INDEXTYPE aConfigIndex, |
|
60 const TAny* apComponentConfigStructure, |
|
61 TBool& aUpdateProcessingFunction); |
|
62 |
|
63 OMX_ERRORTYPE GetExtensionIndex(OMX_STRING aParameterName, |
|
64 OMX_INDEXTYPE* apIndexType) const; |
|
65 |
|
66 protected: |
|
67 |
|
68 COmxILPcmRendererAPB0Port( |
|
69 const OMX_AUDIO_PARAM_PCMMODETYPE& aParamAudioPcm, |
|
70 const OMX_AUDIO_CONFIG_VOLUMETYPE& aConfigAudioVolume, |
|
71 const OMX_AUDIO_CONFIG_MUTETYPE& aConfigAudioMute); |
|
72 |
|
73 void ConstructL(const TOmxILCommonPortData& aCommonPortData, const RArray<OMX_AUDIO_CODINGTYPE>& aSupportedAudioFormats); |
|
74 |
|
75 OMX_ERRORTYPE SetFormatInPortDefinition( |
|
76 const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition, |
|
77 TBool& aUpdateProcessingFunction); |
|
78 |
|
79 TBool IsTunnelledPortCompatible( |
|
80 const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const; |
|
81 |
|
82 protected: |
|
83 |
|
84 OMX_AUDIO_PARAM_PCMMODETYPE iParamAudioPcm; |
|
85 OMX_SYMBIAN_AUDIO_CONFIG_PCM_VOLUMERAMP iConfigVolumeRamp; |
|
86 OMX_AUDIO_CONFIG_VOLUMETYPE iConfigAudioVolume; |
|
87 OMX_AUDIO_CONFIG_MUTETYPE iConfigAudioMute; |
|
88 RBuf8 iMimeTypeBuf; |
|
89 |
|
90 }; |
|
91 |
|
92 #endif // OMXILPCMRENDERERAPB0PORT_H |