os/mm/mmdevicefw/mdfunittest/codecapi/PU/pcmcodec/inc/pcmoutputport.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 PCMOUTPUTPORT_H
    17 #define PCMOUTPUTPORT_H
    18 
    19 #include "pcmprocessingunit.h"
    20 #include "omxoutputport.h"
    21 
    22 class TPuConfig;
    23 class CMMFBuffer;
    24 class CPcmProcessingUnit;
    25 class MMDFInputPort;
    26 
    27 
    28 class CPcmOutputPort : public COmxOutputPort
    29 	{
    30 public:
    31 	static CPcmOutputPort* NewL(TInt aIndex, COmxProcessingUnit* aParent, TPcmDataType aDataType);
    32 	TInt MopConfigure(const TPuConfig&  aConfiguration);
    33  	void MopInitialize();
    34 
    35 protected:
    36 	void ConstructL(TInt aIndex, COmxProcessingUnit* aParent);
    37 	CPcmOutputPort(TPcmDataType aDataType);
    38 
    39 private:
    40 	// PCM configuration parameters
    41 	TInt 						iSampleRate;
    42 	TInt						iChannels;
    43 	TBool						iInterleaved;	
    44 	TBool 						iStopped;	
    45 	TPcmDataType 				iDataType;
    46 	};
    47 
    48 
    49 #endif // PCMOUTPUTPORT_H