omxil_generic/omxilcomplib/src/omxilimageportimpl.h
changeset 0 0e4a32b9112d
equal deleted inserted replaced
-1:000000000000 0:0e4a32b9112d
       
     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 OMXILIMAGEPORTIMPL_H
       
    23 #define OMXILIMAGEPORTIMPL_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 COmxILImagePortImpl : public CBase
       
    34 	{
       
    35 public:
       
    36 	static COmxILImagePortImpl* NewL(const TOmxILCommonPortData& aCommonPortData,
       
    37 							const RArray<OMX_IMAGE_CODINGTYPE>& aSupportedImageFormats,
       
    38 							const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColorFormats);
       
    39 	~COmxILImagePortImpl();
       
    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 	const RArray<OMX_IMAGE_CODINGTYPE>& GetSupportedImageFormats() const;
       
    49 	const RArray<OMX_COLOR_FORMATTYPE>& GetSupportedColorFormats() const;
       
    50 	const OMX_IMAGE_PARAM_PORTFORMATTYPE& GetParamImagePortFormat() const;
       
    51 	RArray<OMX_IMAGE_CODINGTYPE>& GetSupportedImageFormats();
       
    52 	RArray<OMX_COLOR_FORMATTYPE>& GetSupportedColorFormats();
       
    53 	OMX_IMAGE_PARAM_PORTFORMATTYPE& GetParamImagePortFormat();
       
    54 	
       
    55 private:
       
    56 	COmxILImagePortImpl();
       
    57 	void ConstructL(const TOmxILCommonPortData& aCommonPortData,
       
    58 					const RArray<OMX_IMAGE_CODINGTYPE>& aSupportedImageFormats,
       
    59 					const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColorFormats);
       
    60 
       
    61 private:
       
    62 	RArray<OMX_IMAGE_CODINGTYPE> iSupportedImageFormats;
       
    63 	RArray<OMX_COLOR_FORMATTYPE> iSupportedColorFormats;
       
    64 	OMX_IMAGE_PARAM_PORTFORMATTYPE iParamImagePortFormat;
       
    65 	};
       
    66 #endif // OMXILIMAGEPORTIMPL_H