os/mm/mmdevicefw/mdfunittest/codecapi/PU/pcmcodec/inc/pcminputport.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2005-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 #ifndef PCMINPUTPORT_H
    17 #define PCMINPUTPORT_H
    18 
    19 
    20 #include "pcmprocessingunit.h"
    21 #include "omxinputport.h"
    22 
    23 class MMdfOutputPort;
    24 class MMdfOutputPortObserver;
    25 class CPcmOutputPort;
    26 class CMMFBuffer;
    27 
    28 
    29 class CPcmInputPort : public COmxInputPort
    30 	{
    31 public:
    32 	static CPcmInputPort* NewL(TInt aIndex, COmxProcessingUnit* aParent, TPcmDataType aDataType);
    33 
    34 	TInt MipConfigure(const TPuConfig&  aConfiguration);
    35 	virtual void MipInitialize();
    36 	
    37 private:
    38 	void ConstructL(TInt aIndex, COmxProcessingUnit* aParent);
    39 	CPcmInputPort(TPcmDataType aDataType);
    40 private:
    41 
    42 	// PCM configuration parameters
    43 	TInt 					iSampleRate;
    44 	TInt 					iChannels;
    45 	TBool					iInterleaved;
    46 	TPcmDataType			iDataType;
    47 	};
    48 
    49 #endif // PCMINPUTPORT_H