omxil/omxilcomponentcommon/src/common/omxilotherport.h
changeset 0 40261b775718
child 16 eedf2dcd43c6
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     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 OMXILOTHERPORT_H
       
    23 #define OMXILOTHERPORT_H
       
    24 
       
    25 #include "omxilport.h"
       
    26 #include <e32base.h>
       
    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 class COmxILOtherPort : public COmxILPort
       
    32 	{
       
    33 public:
       
    34 	IMPORT_C ~COmxILOtherPort();
       
    35 	
       
    36 	// From COmxILPort
       
    37 	IMPORT_C OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const = 0;
       
    38 
       
    39 	// From COmxILPort
       
    40 	IMPORT_C OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const = 0;
       
    41 
       
    42 	// From COmxILPort
       
    43 	IMPORT_C OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, 
       
    44 										TAny* apComponentParameterStructure) const = 0;
       
    45 	
       
    46 	// From COmxILPort
       
    47 	IMPORT_C OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, 
       
    48 										const TAny* apComponentParameterStructure,
       
    49 										TBool& aUpdateProcessingFunction) = 0;
       
    50 							  
       
    51 protected:
       
    52 	IMPORT_C COmxILOtherPort(const TOmxILCommonPortData& aCommonPortData);
       
    53 
       
    54 	IMPORT_C virtual void ConstructL(const RArray<OMX_OTHER_FORMATTYPE>& aSupportedOtherFormats);
       
    55 
       
    56 	// From COmxILPort
       
    57 	IMPORT_C OMX_ERRORTYPE SetFormatInPortDefinition(
       
    58 							const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition, 
       
    59 							TBool& aUpdateProcessingFunction) = 0;
       
    60 
       
    61 	// From COmxILPort
       
    62 	IMPORT_C TBool IsTunnelledPortCompatible(
       
    63 						const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const = 0;
       
    64 		
       
    65 protected:
       
    66 	// To indicate the supported formats
       
    67 	RArray<OMX_OTHER_FORMATTYPE> iSupportedOtherFormats;
       
    68 	
       
    69 	OMX_OTHER_PARAM_PORTFORMATTYPE iParamOtherPortFormat;
       
    70 	};
       
    71 
       
    72 #endif // OMXILOTHERPORT_H