omxilvideocomps/omxilvideoscheduler/src/comxilvideoschedulerinputport.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 COMXILVIDEOSCHEDULERINPUTPORT_H_
       
    25 #define COMXILVIDEOSCHEDULERINPUTPORT_H_
       
    26 
       
    27 #include <openmax/il/common/omxilvideoport.h>
       
    28 #include <openmax/il/extensions/omxildroppedframeeventextension.h>
       
    29 
       
    30 NONSHARABLE_CLASS(COmxILVideoSchedulerInputPort) : public COmxILVideoPort
       
    31 	{
       
    32 public:
       
    33 	static COmxILVideoSchedulerInputPort* NewL(const TOmxILCommonPortData& aCommonPortData);
       
    34 
       
    35 	~COmxILVideoSchedulerInputPort();
       
    36 
       
    37 	TUint32 BufferCount() const;
       
    38 	
       
    39 	// from COmxILVideoPort	
       
    40 	OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray<TUint>& aIndexArray) const;
       
    41 	OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray<TUint>& aIndexArray) const;
       
    42 	OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, TAny* apComponentParameterStructure) const;
       
    43 	OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, const TAny* apComponentParameterStructure,
       
    44 															TBool& aUpdateProcessingFunction);
       
    45 	OMX_ERRORTYPE GetExtensionIndex(OMX_STRING aParameterName, OMX_INDEXTYPE* apIndexType) const;
       
    46 protected:
       
    47 	OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition,
       
    48 												TBool& aUpdateProcessingFunction);
       
    49 	
       
    50 	TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const;
       
    51 	
       
    52 private:
       
    53     COmxILVideoSchedulerInputPort();
       
    54 
       
    55 	void ConstructL(const TOmxILCommonPortData& aCommonPortData,
       
    56 	        const RArray<OMX_VIDEO_CODINGTYPE>& aSupportedCodings,
       
    57             const RArray<OMX_COLOR_FORMATTYPE>& aSupportedColourFormats);
       
    58 		
       
    59 private:
       
    60 	RBuf8 iMimeTypeBuf;
       
    61 	// Extension to provide a structure for generating the video scheduler dropping frame error
       
    62 	OMX_NOKIA_PARAM_DROPPEDFRAMEEVENT iParamVideoScheDropFrame;
       
    63 	};
       
    64 
       
    65 #endif /*COMXILVIDEOSCHEDULERINPUTPORT_H_*/