os/mm/mmdevicefw/mdf/src/openmax/omxoutputportbody.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef OMXOUTPUTPORTBODY_H
sl@0
    17
#define OMXOUTPUTPORTBODY_H
sl@0
    18
sl@0
    19
#include <mdf/mdfoutputport.h>
sl@0
    20
#include <mdf/mdfinputport.h>
sl@0
    21
#include <omxprocessingunit.h>
sl@0
    22
#include <omxoutputport.h>
sl@0
    23
class TPuConfig;
sl@0
    24
class CMMFBuffer;
sl@0
    25
class COmxProcessingUnit;
sl@0
    26
class MMDFInputPort;
sl@0
    27
sl@0
    28
class COmxOutputPort::CBody : public CBase,
sl@0
    29
						public MOmxOutputPortCallbacks,
sl@0
    30
						public MMdfInputPortObserver
sl@0
    31
	{	
sl@0
    32
public:	
sl@0
    33
	// from MMdfOutputPort	
sl@0
    34
	static CBody* NewL(TInt aIndex, COmxProcessingUnit* aComponent, COmxOutputPort* aParent);
sl@0
    35
		
sl@0
    36
	TInt MopConfigure(const TPuConfig&  aConfiguration);
sl@0
    37
	TInt MopGetConfig(TPuConfig& aConfigurationSetup);
sl@0
    38
	void MopInitialize();
sl@0
    39
	void MopSetObserver(const MMdfOutputPortObserver& aOutputPortObserver);
sl@0
    40
	CMMFBuffer* MopCreateBuffer(TInt aBufferSize);
sl@0
    41
	TInt MopUseBuffer(CMMFBuffer& aBuffer);
sl@0
    42
	TInt MopFreeBuffer(CMMFBuffer* aBuffer);
sl@0
    43
	TInt MopTunnelRequest(const MMdfInputPort& aInputPortToBeConnectedTo,
sl@0
    44
		TTunnelFlags& aTunnelFlags, TSupplierType& aSupplierType);
sl@0
    45
	void MopReadData(CMMFBuffer& aBuffer);
sl@0
    46
	void MopDisconnectTunnel();
sl@0
    47
	void MopRestartTunnel();
sl@0
    48
	TBool MopIsTunnelled() const;
sl@0
    49
	TInt MopIndex() const;
sl@0
    50
	TUint32 MopBufferSize() const;
sl@0
    51
	TInt MopCreateCustomInterface(TUid aUid);
sl@0
    52
	TAny* MopCustomInterface(TUid aUid);
sl@0
    53
sl@0
    54
	// from MOmxOutputPortCallbacks
sl@0
    55
	TInt FillBufferDone(OMX_HANDLETYPE hComponent, CMMFBuffer* pBuffer);
sl@0
    56
sl@0
    57
	// From MMdfInputPortObserver
sl@0
    58
	void MipoWriteDataComplete(const MMdfInputPort* aInputPort,
sl@0
    59
		CMMFBuffer* aBuffer, TInt aErrorCode);
sl@0
    60
	void MipoDisconnectTunnelComplete(const MMdfInputPort* aInputPort,
sl@0
    61
		TInt aErrorCode);
sl@0
    62
	void MipoRestartTunnelComplete(const MMdfInputPort* aInputPort,
sl@0
    63
		TInt aErrorCode);
sl@0
    64
sl@0
    65
	MMdfOutputPortObserver* Observer() const;
sl@0
    66
	COmxProcessingUnit* Component() const;
sl@0
    67
sl@0
    68
private:
sl@0
    69
	CBody(TInt aIndex, COmxProcessingUnit* aComponent, COmxOutputPort* aParent);
sl@0
    70
sl@0
    71
	TInt 					iPortIndex;
sl@0
    72
	MMdfInputPort* 			iPortConnectedTo;
sl@0
    73
	COmxProcessingUnit* 	iComponent;
sl@0
    74
	MMdfOutputPortObserver*	iObserver;
sl@0
    75
	TBool 					iStopped;
sl@0
    76
	COmxOutputPort* 		iParent;
sl@0
    77
	};
sl@0
    78
sl@0
    79
#endif // OMXOUTPUTPORTBODY_H