1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmdevicefw/mdfunittest/codecapi/PU/pcmcodec/inc/pcmprocessingunit.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,63 @@
1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +
1.20 +#ifndef PCMPROCESSINGUNIT_H
1.21 +#define PCMPROCESSINGUNIT_H
1.22 +
1.23 +#include <e32std.h>
1.24 +#include <e32base.h>
1.25 +#include <omxprocessingunit.h>
1.26 +
1.27 +class CPcmOutputPort;
1.28 +class CPcmInputPort;
1.29 +
1.30 +enum TPcmDataType
1.31 + {
1.32 + EPCM8,
1.33 + EPCMU8,
1.34 + EPCM16
1.35 + };
1.36 +
1.37 +class CPcmProcessingUnit : public COmxProcessingUnit
1.38 + {
1.39 +public:
1.40 + // entry points for each codec variant
1.41 + static CPcmProcessingUnit* NewP8P16L();
1.42 + static CPcmProcessingUnit* NewP16P8L();
1.43 + static CPcmProcessingUnit* NewPU8P16L();
1.44 + static CPcmProcessingUnit* NewP16PU8L();
1.45 +
1.46 + virtual TInt Create(const MMdfProcessingUnitObserver& aProcessingUnitObserver);
1.47 +
1.48 + virtual TInt Configure(const TPuConfig& aConfigurationSetup);
1.49 + virtual ~CPcmProcessingUnit();
1.50 +
1.51 +private:
1.52 + CPcmProcessingUnit();
1.53 + void ConstructL(TPcmDataType aSrcDataType, TPcmDataType aDestDataType);
1.54 +
1.55 +private:
1.56 + CPcmInputPort* iInputPort;
1.57 + CPcmOutputPort* iOutputPort;
1.58 +
1.59 + TPcmDataType iSrcDataType;
1.60 + TPcmDataType iDestDataType;
1.61 + };
1.62 +
1.63 +#endif // PCMPROCESSINGUNIT_H
1.64 +
1.65 +
1.66 +