os/mm/mmdevicefw/mdfunittest/codecapi/PU/pcmcodec/inc/pcmprocessingunit.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) 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 
    17 #ifndef PCMPROCESSINGUNIT_H
    18 #define PCMPROCESSINGUNIT_H
    19 
    20 #include <e32std.h>
    21 #include <e32base.h>
    22 #include <omxprocessingunit.h>
    23 
    24 class CPcmOutputPort;
    25 class CPcmInputPort;
    26 
    27 enum TPcmDataType
    28 		{
    29 		EPCM8,
    30 		EPCMU8,
    31 		EPCM16
    32 		};
    33 
    34 class CPcmProcessingUnit : public COmxProcessingUnit
    35 	{
    36 public:
    37 	// entry points for each codec variant
    38 	static CPcmProcessingUnit* NewP8P16L();
    39 	static CPcmProcessingUnit* NewP16P8L();
    40 	static CPcmProcessingUnit* NewPU8P16L();
    41 	static CPcmProcessingUnit* NewP16PU8L();
    42 	
    43 	virtual TInt Create(const MMdfProcessingUnitObserver& aProcessingUnitObserver);
    44 
    45 	virtual TInt Configure(const TPuConfig& aConfigurationSetup);
    46 	virtual ~CPcmProcessingUnit();
    47 
    48 private:
    49 	CPcmProcessingUnit();
    50 	void ConstructL(TPcmDataType aSrcDataType, TPcmDataType aDestDataType);
    51 	
    52 private:
    53 	CPcmInputPort* 				iInputPort;
    54 	CPcmOutputPort* 			iOutputPort;
    55 
    56 	TPcmDataType				iSrcDataType;
    57 	TPcmDataType				iDestDataType;
    58 	};
    59 
    60 #endif // PCMPROCESSINGUNIT_H
    61 
    62 
    63