os/mm/mmdevicefw/mdf/src/openmax/omxinputportbody.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
// omxinputport.h
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
#ifndef OMXINPUTPORTBODY_H
sl@0
    19
#define OMXINPUTPORTBODY_H
sl@0
    20
sl@0
    21
#include <omxprocessingunit.h>
sl@0
    22
#include <omxinputport.h>
sl@0
    23
sl@0
    24
class MMdfOutputPort;
sl@0
    25
class MMdfOutputPortObserver;
sl@0
    26
class COmxProcessingUnit;
sl@0
    27
class CMMFBuffer;
sl@0
    28
sl@0
    29
/**
sl@0
    30
Base class for OpenMAX Input Ports.
sl@0
    31
*/
sl@0
    32
class COmxInputPort::CBody : public CBase,
sl@0
    33
					public MOmxInputPortCallbacks
sl@0
    34
	{
sl@0
    35
public:
sl@0
    36
	static CBody* NewL(TInt aPortIndex, COmxProcessingUnit* aComponent, COmxInputPort* aParent);
sl@0
    37
	 
sl@0
    38
	// from MMdfInputPort
sl@0
    39
	TInt MipConfigure(const TPuConfig&  aConfiguration);
sl@0
    40
	TInt MipGetConfig(TPuConfig& aConfigurationSetup);
sl@0
    41
	void MipInitialize();
sl@0
    42
	void MipSetObserver(const MMdfInputPortObserver& aInputPortObserver);
sl@0
    43
	CMMFBuffer* MipCreateBuffer(TInt aBufferSize);
sl@0
    44
	TInt MipUseBuffer(CMMFBuffer& aBuffer);
sl@0
    45
	TInt MipFreeBuffer(CMMFBuffer* aBuffer);
sl@0
    46
	TInt MipTunnelRequest(const MMdfOutputPort& aOutputPortToBeConnectedTo,
sl@0
    47
		TTunnelFlags& aTunnelFlags, TSupplierType& aSupplierType);
sl@0
    48
	void MipWriteData(CMMFBuffer& aBuffer);
sl@0
    49
	void MipDisconnectTunnel();
sl@0
    50
	void MipRestartTunnel();
sl@0
    51
	TBool MipIsTunnelled() const;
sl@0
    52
	TInt MipIndex() const;
sl@0
    53
	TUint32 MipBufferSize() const;
sl@0
    54
	TInt MipCreateCustomInterface(TUid aUid);
sl@0
    55
	TAny* MipCustomInterface(TUid aUid);
sl@0
    56
	
sl@0
    57
	// from MOmxInputPortCallbacks
sl@0
    58
	TInt EmptyBufferDone(OMX_HANDLETYPE aComponent, const CMMFBuffer* aBuffer);
sl@0
    59
	
sl@0
    60
	MMdfInputPortObserver* Observer() const;
sl@0
    61
	COmxProcessingUnit* Component() const;
sl@0
    62
private:
sl@0
    63
	CBody(TInt aPortIndex, COmxProcessingUnit* aComponent, COmxInputPort* aParent);
sl@0
    64
sl@0
    65
private:
sl@0
    66
	TInt 					iPortIndex;
sl@0
    67
	TBool 					iConnectedPort;
sl@0
    68
	MMdfOutputPort* 		iPortConnectedTo;
sl@0
    69
	COmxProcessingUnit* 	iComponent;
sl@0
    70
	MMdfInputPortObserver*	iObserver;
sl@0
    71
	COmxInputPort* 			iParent;
sl@0
    72
	};
sl@0
    73
sl@0
    74
#endif // OMXINPUTPORTBODY_H
sl@0
    75