omxilvideocomps/omxilvideoscheduler/src/comxilvideoscheduleroutputport.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 COMXILVIDEOSCHEDULEROUTPUTPORT_H_
       
    25 #define COMXILVIDEOSCHEDULEROUTPUTPORT_H_
       
    26 
       
    27 #include <openmax/il/common/omxilvideoport.h>
       
    28 
       
    29 
       
    30 
       
    31 NONSHARABLE_CLASS(COmxILVideoSchedulerOutputPort) : public COmxILVideoPort
       
    32 	{
       
    33 public:
       
    34 	static COmxILVideoSchedulerOutputPort* NewL(const TOmxILCommonPortData& aCommonPortData);
       
    35 
       
    36 	~COmxILVideoSchedulerOutputPort();
       
    37 
       
    38 	TUint32 BufferCount() const;
       
    39 	
       
    40 	// from COmxILVideoPort	
       
    41 	OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const;
       
    42 	OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const;
       
    43 	OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, TAny* apComponentParameterStructure) const;
       
    44 	OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, const TAny* apComponentParameterStructure,
       
    45 															TBool& aUpdateProcessingFunction);
       
    46 																
       
    47 protected:
       
    48 	OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition,
       
    49 												TBool& aUpdateProcessingFunction);
       
    50 	
       
    51 	TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const;
       
    52 
       
    53 private:
       
    54 	COmxILVideoSchedulerOutputPort();
       
    55 	void ConstructL(const TOmxILCommonPortData& aCommonPortData,
       
    56 	        const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedCodings,
       
    57             const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColourFormats);
       
    58 	
       
    59 private:
       
    60     //Mime Type is not important for uncompressed video but is required for the port definition structure.
       
    61 	RBuf8 iMimeTypeBuf;
       
    62 	};
       
    63 
       
    64 #endif /*COMXILVIDEOSCHEDULEROUTPUTPORT_H_*/