Update contrib.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 #ifndef OMXINPUTPORT_H
23 #define OMXINPUTPORT_H
25 #include <omxprocessingunit.h>
26 #include <mdf/mdfinputport.h>
29 class MMdfOutputPortObserver;
34 Base class for OpenMAX Input Ports.
36 class COmxInputPort : public CBase,
43 IMPORT_C TInt MipConfigure(const TPuConfig& aConfiguration);
44 IMPORT_C TInt MipGetConfig(TPuConfig& aConfigurationSetup);
45 IMPORT_C void MipInitialize();
46 IMPORT_C void MipSetObserver(const MMdfInputPortObserver& aInputPortObserver);
47 IMPORT_C CMMFBuffer* MipCreateBuffer(TInt aBufferSize);
48 IMPORT_C TInt MipUseBuffer(CMMFBuffer& aBuffer);
49 IMPORT_C TInt MipFreeBuffer(CMMFBuffer* aBuffer);
50 IMPORT_C TInt MipTunnelRequest(const MMdfOutputPort& aOutputPortToBeConnectedTo,
51 TTunnelFlags& aTunnelFlags, TSupplierType& aSupplierType);
52 IMPORT_C void MipWriteData(CMMFBuffer& aBuffer);
53 IMPORT_C void MipDisconnectTunnel();
54 IMPORT_C void MipRestartTunnel();
55 IMPORT_C TBool MipIsTunnelled() const;
56 IMPORT_C TInt MipIndex() const;
57 IMPORT_C TUint32 MipBufferSize() const;
58 IMPORT_C TInt MipCreateCustomInterface(TUid aUid);
59 IMPORT_C TAny* MipCustomInterface(TUid aUid);
62 IMPORT_C COmxInputPort();
63 IMPORT_C ~COmxInputPort();
64 IMPORT_C void ConstructL(TInt aIndex, COmxProcessingUnit* aComponent);
65 IMPORT_C MMdfInputPortObserver* Observer() const;
66 IMPORT_C COmxProcessingUnit* Component() const;
71 #endif // OMXINPUTPORT_H