os/mm/mmdevicefw/mdf/inc/openmax/omxoutputport.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmdevicefw/mdf/inc/openmax/omxoutputport.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,81 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @publishedPartner
    1.22 + @released
    1.23 +*/
    1.24 +
    1.25 +#ifndef OMXOUTPUTPORT_H
    1.26 +#define OMXOUTPUTPORT_H
    1.27 +
    1.28 +#include <mdf/mdfoutputport.h>
    1.29 +#include <mdf/mdfinputport.h>
    1.30 +#include <omxprocessingunit.h>
    1.31 +class TPuConfig;
    1.32 +class CMMFBuffer;
    1.33 +class COmxProcessingUnit;
    1.34 +class MMDFInputPort;
    1.35 +
    1.36 +/**
    1.37 +Base class for OpenMAX Output Ports.
    1.38 +*/
    1.39 +class COmxOutputPort :  public CBase,
    1.40 +						public MMdfOutputPort,
    1.41 +						public MMdfInputPortObserver
    1.42 +	{	
    1.43 +public:
    1.44 +	class CBody;
    1.45 +public:	
    1.46 +	// from MMdfOutputPort		
    1.47 +	IMPORT_C TInt MopConfigure(const TPuConfig&  aConfiguration);
    1.48 +	IMPORT_C TInt MopGetConfig(TPuConfig& aConfigurationSetup);
    1.49 +	IMPORT_C void MopInitialize();
    1.50 +	IMPORT_C void MopSetObserver(const MMdfOutputPortObserver& aOutputPortObserver);
    1.51 +	IMPORT_C CMMFBuffer* MopCreateBuffer(TInt aBufferSize);
    1.52 +	IMPORT_C TInt MopUseBuffer(CMMFBuffer& aBuffer);
    1.53 +	IMPORT_C TInt MopFreeBuffer(CMMFBuffer* aBuffer);
    1.54 +	IMPORT_C TInt MopTunnelRequest(const MMdfInputPort& aInputPortToBeConnectedTo,
    1.55 +		TTunnelFlags& aTunnelFlags, TSupplierType& aSupplierType);
    1.56 +	IMPORT_C void MopReadData(CMMFBuffer& aBuffer);
    1.57 +	IMPORT_C void MopDisconnectTunnel();
    1.58 +	IMPORT_C void MopRestartTunnel();
    1.59 +	IMPORT_C TBool MopIsTunnelled() const;
    1.60 +	IMPORT_C TInt MopIndex() const;
    1.61 +	IMPORT_C TUint32 MopBufferSize() const;
    1.62 +	IMPORT_C TInt MopCreateCustomInterface(TUid aUid);
    1.63 +	IMPORT_C TAny* MopCustomInterface(TUid aUid);
    1.64 +	
    1.65 +	// From MMdfInputPortObserver
    1.66 +	IMPORT_C void MipoWriteDataComplete(const MMdfInputPort* aInputPort,
    1.67 +		CMMFBuffer* aBuffer, TInt aErrorCode);
    1.68 +	IMPORT_C void MipoDisconnectTunnelComplete(const MMdfInputPort* aInputPort,
    1.69 +		TInt aErrorCode);
    1.70 +	IMPORT_C void MipoRestartTunnelComplete(const MMdfInputPort* aInputPort,
    1.71 +		TInt aErrorCode);
    1.72 +
    1.73 +protected:
    1.74 +	IMPORT_C COmxOutputPort();
    1.75 +	IMPORT_C void ConstructL(TInt aIndex, COmxProcessingUnit* aComponent);
    1.76 +	IMPORT_C ~COmxOutputPort();
    1.77 +	IMPORT_C MMdfOutputPortObserver* Observer() const;
    1.78 +	IMPORT_C COmxProcessingUnit* Component() const;
    1.79 +
    1.80 +private:
    1.81 +	CBody* iBody;
    1.82 +	};
    1.83 +
    1.84 +#endif // OMXOUTPUTPORT_H