omxilvideocomps/omxilclock/src/comxilclockoutputport.h
changeset 0 5d29cba61097
equal deleted inserted replaced
-1:000000000000 0:5d29cba61097
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20 @file
       
    21 @internalComponent
       
    22 */
       
    23 
       
    24 #ifndef COMXILCLOCKOUTPUTPORT_H
       
    25 #define COMXILCLOCKOUTPUTPORT_H
       
    26 
       
    27 #include <openmax/il/common/omxilotherport.h>
       
    28 
       
    29 
       
    30 
       
    31 class COmxILClockProcessingFunction;
       
    32 
       
    33 class COmxILClockOutputPort : public COmxILOtherPort
       
    34 	{
       
    35 public:
       
    36 	static COmxILClockOutputPort* NewL(const TOmxILCommonPortData& aCommonPortData, const RArray<OMX_OTHER_FORMATTYPE>& aSupportedFormats, COmxILClockProcessingFunction& aProcessingFunction);
       
    37 	~COmxILClockOutputPort();
       
    38 
       
    39 	TInt BufferCount() const;
       
    40 
       
    41 	// from COmxILOtherPort
       
    42 	OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const;
       
    43 	OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const;
       
    44 	OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex,
       
    45 	                           TAny* apComponentParameterStructure) const;
       
    46 	OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex,
       
    47 	                           const TAny* apComponentParameterStructure,
       
    48 	                           TBool& aUpdateProcessingFunction);
       
    49 	OMX_ERRORTYPE GetConfig(OMX_INDEXTYPE aConfigIndex,
       
    50                           TAny* apComponentConfigStructure) const;
       
    51 	OMX_ERRORTYPE SetConfig(OMX_INDEXTYPE aConfigIndex,
       
    52                           const TAny* apComponentConfigStructure,
       
    53                           TBool& aUpdateProcessingFunction);
       
    54 
       
    55 protected:
       
    56 	OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition,
       
    57 	                               TBool& aUpdateProcessingFunction);
       
    58 	TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const;
       
    59 	
       
    60 private:
       
    61 	COmxILClockOutputPort(COmxILClockProcessingFunction& aProcessingFunction);
       
    62 	void ConstructL(const TOmxILCommonPortData& aCommonPortData, const RArray<OMX_OTHER_FORMATTYPE>& aSupportedFormats);
       
    63 	
       
    64 private:
       
    65 	COmxILClockProcessingFunction* iProcessingFunction;	// not owned
       
    66 	};
       
    67 
       
    68 #endif //COMXILCLOCKOUTPUTPORT_H