omxilcomp/omxilgeneric/filesource/inc/omxilotherfilesourceopb0port.h
changeset 0 58be5850fb6c
equal deleted inserted replaced
-1:000000000000 0:58be5850fb6c
       
     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 /**
       
    19  * @file
       
    20  * @internalTechnology
       
    21  */
       
    22 
       
    23 #ifndef OMXILFILESOURCEOPB0PORT_H
       
    24 #define OMXILFILESOURCEOPB0PORT_H
       
    25 
       
    26 #include <openmax/il/common/omxilotherport.h>
       
    27 #include "omxilfilesourceprocessingfunction.h"
       
    28 #include <openmax/il/khronos/v1_x/OMX_Other.h>
       
    29 
       
    30 class COmxILOtherFileSourceOPB0Port : public COmxILOtherPort
       
    31 	{
       
    32 public:
       
    33 	static COmxILOtherFileSourceOPB0Port* NewL(const TOmxILCommonPortData& aCommonPortData, 
       
    34 										const RArray<OMX_OTHER_FORMATTYPE>& aSupportedOtherFormats, 
       
    35 										const COmxILFileSourceProcessingFunction& aFileSourcePF);
       
    36 	~COmxILOtherFileSourceOPB0Port();
       
    37 	
       
    38 	OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const;
       
    39 	OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const;
       
    40 
       
    41 	OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, 
       
    42 								TAny* apComponentParameterStructure) const;
       
    43 	OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, 
       
    44 								const TAny* apComponentParameterStructure, 
       
    45 								TBool& aUpdateProcessingFunction);
       
    46 
       
    47 	
       
    48 private:
       
    49 	COmxILOtherFileSourceOPB0Port(const COmxILFileSourceProcessingFunction& aFileSourcePF);
       
    50 	void ConstructL(const TOmxILCommonPortData& aCommonPortData, const RArray<OMX_OTHER_FORMATTYPE>& aSupportedOtherFormats);
       
    51 	OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition, 
       
    52 											TBool& aUpdateProcessingFunction);
       
    53 	TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const;
       
    54 
       
    55 private:
       
    56 	const COmxILFileSourceProcessingFunction& iFileSourcePF;
       
    57 	};
       
    58 
       
    59 #endif // OMXILFILESOURCEOPB0PORT_H