|
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 COMXIL3GPDEMUXERCONFIGMANAGER_H |
|
25 #define COMXIL3GPDEMUXERCONFIGMANAGER_H |
|
26 |
|
27 #include <openmax/il/common/omxilconfigmanager.h> |
|
28 |
|
29 // Forward declarations |
|
30 class C3GPDemuxer; |
|
31 |
|
32 |
|
33 NONSHARABLE_CLASS(COmxIL3GPDemuxerConfigManager) : public COmxILConfigManager |
|
34 { |
|
35 public: |
|
36 static COmxIL3GPDemuxerConfigManager* NewL( |
|
37 const TDesC8& aComponentName, |
|
38 const OMX_VERSIONTYPE& aComponentVersion, |
|
39 const RPointerArray<TDesC8>& aComponentRoles, |
|
40 COmxIL3GPDemuxerProcessingFunction& aPf); |
|
41 |
|
42 ~COmxIL3GPDemuxerConfigManager(); |
|
43 |
|
44 // from COmxILConfigManager |
|
45 OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
46 TAny* aComponentParameterStructure) const; |
|
47 OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
48 const TAny* aComponentParameterStructure, |
|
49 OMX_BOOL aInitTime = OMX_TRUE); |
|
50 OMX_ERRORTYPE GetConfig(OMX_INDEXTYPE aConfigIndex, |
|
51 TAny* apComponentConfigStructure) const; |
|
52 OMX_ERRORTYPE SetConfig(OMX_INDEXTYPE aConfigIndex, |
|
53 const TAny* apComponentConfigStructure); |
|
54 |
|
55 /** can return NULL if parameter has not been set. */ |
|
56 const HBufC* Filename() const; |
|
57 void SetDemuxer(C3GPDemuxer& aDemuxer); |
|
58 |
|
59 private: |
|
60 COmxIL3GPDemuxerConfigManager(COmxIL3GPDemuxerProcessingFunction& aPf); |
|
61 |
|
62 void ConstructL(const TDesC8& aComponentName, |
|
63 const OMX_VERSIONTYPE& aComponentVersion, |
|
64 const RPointerArray<TDesC8>& aComponentRoles); |
|
65 |
|
66 private: |
|
67 HBufC8* iUri; |
|
68 HBufC* iFilename; |
|
69 C3GPDemuxer* iDemuxer; // Not owned |
|
70 OMX_TIME_SEEKMODETYPE iSeekMode; |
|
71 COmxIL3GPDemuxerProcessingFunction& iPf; |
|
72 }; |
|
73 |
|
74 #endif //COMXIL3GPDEMUXERCONFIGMANAGER_H |