diff -r 000000000000 -r 5d29cba61097 omxilvideocomps/omxil3gpdemuxer/src/comxil3gpdemuxertimeinputport.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omxilvideocomps/omxil3gpdemuxer/src/comxil3gpdemuxertimeinputport.h Fri Oct 08 22:09:17 2010 +0100 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +/** +@file +@internalComponent +*/ + +#ifndef COMXIL3GPDEMUXERTIMEINPUTPORT_H +#define COMXIL3GPDEMUXERTIMEINPUTPORT_H + +#include + +class COmxIL3GPDemuxerProcessingFunction; + +const TInt KMaxTimeBuffers = 4; + +NONSHARABLE_CLASS(COmxIL3GPDemuxerTimeInputPort) : public COmxILOtherPort + { +public: + static COmxIL3GPDemuxerTimeInputPort* NewL(const TOmxILCommonPortData& aCommonPortData, + const RArray& aSupportedOtherFormats, + COmxIL3GPDemuxerProcessingFunction& aProcessingFunction); + ~COmxIL3GPDemuxerTimeInputPort(); + + // from COmxILOtherPort + OMX_ERRORTYPE GetLocalOmxParamIndexes(RArray& aIndexArray) const; + OMX_ERRORTYPE GetLocalOmxConfigIndexes(RArray& aIndexArray) const; + OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, + TAny* apComponentParameterStructure) const; + OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, + const TAny* apComponentParameterStructure, + TBool& aUpdateProcessingFunction); + +protected: + // from COmxILOtherPort + OMX_ERRORTYPE SetFormatInPortDefinition(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition, + TBool& aUpdateProcessingFunction); + TBool IsTunnelledPortCompatible(const OMX_PARAM_PORTDEFINITIONTYPE& aPortDefinition) const; + +private: + COmxIL3GPDemuxerTimeInputPort(COmxIL3GPDemuxerProcessingFunction& aProcessingFunction); + +private: + COmxIL3GPDemuxerProcessingFunction* iProcessingFunction; // not owned + }; + +#endif //COMXIL3GPDEMUXERTIMEINPUTPORT_H