|
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 COMXIL3GPDEMUXERTIMEINPUTPORT_H |
|
25 #define COMXIL3GPDEMUXERTIMEINPUTPORT_H |
|
26 |
|
27 #include <openmax/il/common/omxilotherport.h> |
|
28 |
|
29 class COmxIL3GPDemuxerProcessingFunction; |
|
30 |
|
31 const TInt KMaxTimeBuffers = 4; |
|
32 |
|
33 NONSHARABLE_CLASS(COmxIL3GPDemuxerTimeInputPort) : public COmxILOtherPort |
|
34 { |
|
35 public: |
|
36 static COmxIL3GPDemuxerTimeInputPort* NewL(const TOmxILCommonPortData& aCommonPortData, |
|
37 const RArray<OMX_OTHER_FORMATTYPE>& aSupportedOtherFormats, |
|
38 COmxIL3GPDemuxerProcessingFunction& aProcessingFunction); |
|
39 ~COmxIL3GPDemuxerTimeInputPort(); |
|
40 |
|
41 // from COmxILOtherPort |
|
42 OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const; |
|
43 OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const; |
|
44 OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
45 TAny* apComponentParameterStructure) const; |
|
46 OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
47 const TAny* apComponentParameterStructure, |
|
48 TBool& aUpdateProcessingFunction); |
|
49 |
|
50 protected: |
|
51 // from COmxILOtherPort |
|
52 OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition, |
|
53 TBool& aUpdateProcessingFunction); |
|
54 TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const; |
|
55 |
|
56 private: |
|
57 COmxIL3GPDemuxerTimeInputPort(COmxIL3GPDemuxerProcessingFunction& aProcessingFunction); |
|
58 |
|
59 private: |
|
60 COmxIL3GPDemuxerProcessingFunction* iProcessingFunction; // not owned |
|
61 }; |
|
62 |
|
63 #endif //COMXIL3GPDEMUXERTIMEINPUTPORT_H |