os/mm/mmdevicefw/mdf/inc/openmax/omxinputport.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @publishedPartner
    19  @released
    20 */
    21  
    22 #ifndef OMXINPUTPORT_H
    23 #define OMXINPUTPORT_H
    24 
    25 #include <omxprocessingunit.h>
    26 #include <mdf/mdfinputport.h>
    27 
    28 class MMdfOutputPort;
    29 class MMdfOutputPortObserver;
    30 class COmxOutputPort;
    31 class CMMFBuffer;
    32 
    33 /**
    34 Base class for OpenMAX Input Ports.
    35 */
    36 class COmxInputPort :   public CBase,
    37 		      			public MMdfInputPort
    38 	{
    39 public:
    40 	class CBody;
    41 		
    42 	// from MMdfInputPort
    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);
    60 	
    61 protected:	
    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;
    67 private:
    68 	CBody* iBody;
    69 	};
    70 
    71 #endif // OMXINPUTPORT_H
    72