diff -r 000000000000 -r 0e4a32b9112d omxil_generic/omxilcomplib/src/omxilvideoportimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omxil_generic/omxilcomplib/src/omxilvideoportimpl.h Wed Aug 25 12:40:50 2010 +0300 @@ -0,0 +1,66 @@ +// Copyright (c) 2008-2009 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 + @internalTechnology +*/ + +#ifndef OMXILVIDEOPORTIMPL_H +#define OMXILVIDEOPORTIMPL_H + +#include + +#include +#include +#include + +#include + +class COmxILVideoPortImpl : public CBase + { +public: + static COmxILVideoPortImpl* NewL(const RArray& aSupportedVideoFormats, + const RArray& aSupportedColorFormatsconst, + const TOmxILCommonPortData& aCommonPortData); + ~COmxILVideoPortImpl(); + + OMX_ERRORTYPE GetParameter(OMX_INDEXTYPE aParamIndex, + TAny* apComponentParameterStructure) const; + + OMX_ERRORTYPE SetParameter(OMX_INDEXTYPE aParamIndex, + const TAny* apComponentParameterStructure, + TBool& aUpdateProcessingFunction); + + TBool UpdateColorFormat(OMX_COLOR_FORMATTYPE& aOldColor, OMX_COLOR_FORMATTYPE aNewColor, TBool& aUpdated); + TBool UpdateCodingType(OMX_VIDEO_CODINGTYPE& aOldCodingType, OMX_VIDEO_CODINGTYPE aNewCodingType, TBool& aUpdated); + RArray& GetSupportedVideoFormats(); + RArray& GetSupportedColorFormats(); + OMX_VIDEO_PARAM_PORTFORMATTYPE& GetParamVideoPortFormat(); +private: + COmxILVideoPortImpl(); + void ConstructL(const RArray& aSupportedVideoFormats, + const RArray& aSupportedColorFormats, + const TOmxILCommonPortData& aCommonPortData); + +private: + RArray iSupportedVideoFormats; + RArray iSupportedColorFormats; + RArray iSupportedFrameRates; + OMX_VIDEO_PARAM_PORTFORMATTYPE iParamVideoPortFormat; + }; + +#endif // OMXILVIDEOPORT_H