|
1 /* |
|
2 * Copyright (c) 2008 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 COMXIL3GPMUXERAUDIOINPUTPORT_H |
|
25 #define COMXIL3GPMUXERAUDIOINPUTPORT_H |
|
26 |
|
27 #include <openmax/il/common/omxilaudioport.h> |
|
28 |
|
29 class COmxIL3GPMuxerProcessingFunction; |
|
30 |
|
31 const TInt KMaxAudioBuffers = 20; |
|
32 |
|
33 NONSHARABLE_CLASS(COmxIL3GPMuxerAudioInputPort) : public COmxILAudioPort |
|
34 { |
|
35 public: |
|
36 static COmxIL3GPMuxerAudioInputPort* NewL(const TOmxILCommonPortData& aCommonPortData); |
|
37 |
|
38 ~COmxIL3GPMuxerAudioInputPort(); |
|
39 |
|
40 OMX_U32 GetAudioFrameRate() const; |
|
41 |
|
42 // from COmxILAudioPort |
|
43 OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const; |
|
44 OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const; |
|
45 OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
46 TAny* apComponentParameterStructure) const; |
|
47 OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
48 const TAny* apComponentParameterStructure, |
|
49 TBool& aUpdateProcessingFunction); |
|
50 |
|
51 protected: |
|
52 // from COmxILAudioPort |
|
53 OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition, |
|
54 TBool& aUpdateProcessingFunction); |
|
55 TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const; |
|
56 |
|
57 private: |
|
58 COmxIL3GPMuxerAudioInputPort(); |
|
59 |
|
60 void ConstructL(const TOmxILCommonPortData& aCommonPortData); |
|
61 |
|
62 private: |
|
63 RBuf8 iMimeTypeBuf; |
|
64 }; |
|
65 |
|
66 #endif /*COMXIL3GPMUXERAUDIOINPUTPORT_H*/ |