sl@0
|
1 |
// Copyright (c) 2008-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 |
/**
|
sl@0
|
17 |
@file
|
sl@0
|
18 |
@publishedPartner
|
sl@0
|
19 |
@released
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
#ifndef OMXOUTPUTPORT_H
|
sl@0
|
23 |
#define OMXOUTPUTPORT_H
|
sl@0
|
24 |
|
sl@0
|
25 |
#include <mdf/mdfoutputport.h>
|
sl@0
|
26 |
#include <mdf/mdfinputport.h>
|
sl@0
|
27 |
#include <omxprocessingunit.h>
|
sl@0
|
28 |
class TPuConfig;
|
sl@0
|
29 |
class CMMFBuffer;
|
sl@0
|
30 |
class COmxProcessingUnit;
|
sl@0
|
31 |
class MMDFInputPort;
|
sl@0
|
32 |
|
sl@0
|
33 |
/**
|
sl@0
|
34 |
Base class for OpenMAX Output Ports.
|
sl@0
|
35 |
*/
|
sl@0
|
36 |
class COmxOutputPort : public CBase,
|
sl@0
|
37 |
public MMdfOutputPort,
|
sl@0
|
38 |
public MMdfInputPortObserver
|
sl@0
|
39 |
{
|
sl@0
|
40 |
public:
|
sl@0
|
41 |
class CBody;
|
sl@0
|
42 |
public:
|
sl@0
|
43 |
// from MMdfOutputPort
|
sl@0
|
44 |
IMPORT_C TInt MopConfigure(const TPuConfig& aConfiguration);
|
sl@0
|
45 |
IMPORT_C TInt MopGetConfig(TPuConfig& aConfigurationSetup);
|
sl@0
|
46 |
IMPORT_C void MopInitialize();
|
sl@0
|
47 |
IMPORT_C void MopSetObserver(const MMdfOutputPortObserver& aOutputPortObserver);
|
sl@0
|
48 |
IMPORT_C CMMFBuffer* MopCreateBuffer(TInt aBufferSize);
|
sl@0
|
49 |
IMPORT_C TInt MopUseBuffer(CMMFBuffer& aBuffer);
|
sl@0
|
50 |
IMPORT_C TInt MopFreeBuffer(CMMFBuffer* aBuffer);
|
sl@0
|
51 |
IMPORT_C TInt MopTunnelRequest(const MMdfInputPort& aInputPortToBeConnectedTo,
|
sl@0
|
52 |
TTunnelFlags& aTunnelFlags, TSupplierType& aSupplierType);
|
sl@0
|
53 |
IMPORT_C void MopReadData(CMMFBuffer& aBuffer);
|
sl@0
|
54 |
IMPORT_C void MopDisconnectTunnel();
|
sl@0
|
55 |
IMPORT_C void MopRestartTunnel();
|
sl@0
|
56 |
IMPORT_C TBool MopIsTunnelled() const;
|
sl@0
|
57 |
IMPORT_C TInt MopIndex() const;
|
sl@0
|
58 |
IMPORT_C TUint32 MopBufferSize() const;
|
sl@0
|
59 |
IMPORT_C TInt MopCreateCustomInterface(TUid aUid);
|
sl@0
|
60 |
IMPORT_C TAny* MopCustomInterface(TUid aUid);
|
sl@0
|
61 |
|
sl@0
|
62 |
// From MMdfInputPortObserver
|
sl@0
|
63 |
IMPORT_C void MipoWriteDataComplete(const MMdfInputPort* aInputPort,
|
sl@0
|
64 |
CMMFBuffer* aBuffer, TInt aErrorCode);
|
sl@0
|
65 |
IMPORT_C void MipoDisconnectTunnelComplete(const MMdfInputPort* aInputPort,
|
sl@0
|
66 |
TInt aErrorCode);
|
sl@0
|
67 |
IMPORT_C void MipoRestartTunnelComplete(const MMdfInputPort* aInputPort,
|
sl@0
|
68 |
TInt aErrorCode);
|
sl@0
|
69 |
|
sl@0
|
70 |
protected:
|
sl@0
|
71 |
IMPORT_C COmxOutputPort();
|
sl@0
|
72 |
IMPORT_C void ConstructL(TInt aIndex, COmxProcessingUnit* aComponent);
|
sl@0
|
73 |
IMPORT_C ~COmxOutputPort();
|
sl@0
|
74 |
IMPORT_C MMdfOutputPortObserver* Observer() const;
|
sl@0
|
75 |
IMPORT_C COmxProcessingUnit* Component() const;
|
sl@0
|
76 |
|
sl@0
|
77 |
private:
|
sl@0
|
78 |
CBody* iBody;
|
sl@0
|
79 |
};
|
sl@0
|
80 |
|
sl@0
|
81 |
#endif // OMXOUTPUTPORT_H
|