|
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 /** |
|
19 * @file |
|
20 * @internalTechnology |
|
21 */ |
|
22 |
|
23 #ifndef OMXILVIDEOFILESOURCEOPB0PORT_H |
|
24 #define OMXILVIDEOFILESOURCEOPB0PORT_H |
|
25 |
|
26 #include "omxilvideoport.h" |
|
27 #include "omxilfilesourceprocessingfunction.h" |
|
28 #include <openmax/il/khronos/v1_x/OMX_Other.h> |
|
29 |
|
30 class COmxILVideoFileSourceOPB0Port : public COmxILVideoPort |
|
31 { |
|
32 public: |
|
33 static COmxILVideoFileSourceOPB0Port* NewL(const TOmxILCommonPortData& aCommonPortData, |
|
34 const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedCodings, |
|
35 const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColourFormats, |
|
36 const COmxILFileSourceProcessingFunction& aFileSourcePF); |
|
37 |
|
38 ~COmxILVideoFileSourceOPB0Port(); |
|
39 |
|
40 OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const; |
|
41 OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const; |
|
42 |
|
43 OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
44 TAny* apComponentParameterStructure) const; |
|
45 OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
46 const TAny* apComponentParameterStructure, |
|
47 TBool& aUpdateProcessingFunction); |
|
48 |
|
49 private: |
|
50 COmxILVideoFileSourceOPB0Port(const TOmxILCommonPortData& aCommonPortData, |
|
51 const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedCodings, |
|
52 const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColourFormats, |
|
53 const COmxILFileSourceProcessingFunction& aFileSourcePF); |
|
54 void ConstructL(); |
|
55 OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition, |
|
56 TBool& aUpdateProcessingFunction); |
|
57 TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const; |
|
58 |
|
59 private: |
|
60 const COmxILFileSourceProcessingFunction& iFileSourcePF; |
|
61 }; |
|
62 |
|
63 #endif // OMXILVIDEOFILESOURCEOPB0PORT_H |