|
1 // Copyright (c) 2008-2009 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 @file |
|
19 @internalTechnology |
|
20 */ |
|
21 |
|
22 #ifndef OMXILVIDEOPORTIMPL_H |
|
23 #define OMXILVIDEOPORTIMPL_H |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 #include <openmax/il/khronos/v1_x/OMX_Types.h> |
|
28 #include <openmax/il/khronos/v1_x/OMX_Core.h> |
|
29 #include <openmax/il/khronos/v1_x/OMX_Component.h> |
|
30 |
|
31 #include <openmax/il/common/omxilport.h> |
|
32 |
|
33 class COmxILVideoPortImpl : public CBase |
|
34 { |
|
35 public: |
|
36 static COmxILVideoPortImpl* NewL(const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedVideoFormats, |
|
37 const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColorFormatsconst, |
|
38 const TOmxILCommonPortData& aCommonPortData); |
|
39 ~COmxILVideoPortImpl(); |
|
40 |
|
41 OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, |
|
42 TAny* apComponentParameterStructure) const; |
|
43 |
|
44 OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, |
|
45 const TAny* apComponentParameterStructure, |
|
46 TBool& aUpdateProcessingFunction); |
|
47 |
|
48 TBool UpdateColorFormat(OMX_COLOR_FORMATTYPE& aOldColor, OMX_COLOR_FORMATTYPE aNewColor, TBool& aUpdated); |
|
49 TBool UpdateCodingType(OMX_VIDEO_CODINGTYPE& aOldCodingType, OMX_VIDEO_CODINGTYPE aNewCodingType, TBool& aUpdated); |
|
50 RArray<OMX_VIDEO_CODINGTYPE>& GetSupportedVideoFormats(); |
|
51 RArray<OMX_COLOR_FORMATTYPE>& GetSupportedColorFormats(); |
|
52 OMX_VIDEO_PARAM_PORTFORMATTYPE& GetParamVideoPortFormat(); |
|
53 private: |
|
54 COmxILVideoPortImpl(); |
|
55 void ConstructL(const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedVideoFormats, |
|
56 const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColorFormats, |
|
57 const TOmxILCommonPortData& aCommonPortData); |
|
58 |
|
59 private: |
|
60 RArray<OMX_VIDEO_CODINGTYPE> iSupportedVideoFormats; |
|
61 RArray<OMX_COLOR_FORMATTYPE> iSupportedColorFormats; |
|
62 RArray<OMX_U32> iSupportedFrameRates; |
|
63 OMX_VIDEO_PARAM_PORTFORMATTYPE iParamVideoPortFormat; |
|
64 }; |
|
65 |
|
66 #endif // OMXILVIDEOPORT_H |