00001 // MMFExPcm8Pcm16Codec.h 00002 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). 00003 // All rights reserved. 00004 // This component and the accompanying materials are made available 00005 // under the terms of "Eclipse Public License v1.0" 00006 // which accompanies this distribution, and is available 00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00008 // 00009 // Initial Contributors: 00010 // Nokia Corporation - initial contribution. 00011 // 00012 // Contributors: 00013 // 00014 // Description: 00015 // 00016 00017 #ifndef __EXPCM8_PCM16_CODEC_H__ 00018 #define __EXPCM8_PCM16_CODEC_H__ 00019 00020 #include <mmf/server/mmfcodec.h> 00021 00022 // Declares a MMF plug-in codec that converts 00023 // from PCM8 format to PCM16 00024 class CMMFExPcm8Pcm16Codec : public CMMFCodec 00025 { 00026 public: 00027 // Construction 00028 static CMMFCodec* NewL(TAny* aInitParams); 00029 // Implement CMMFCodec 00030 TCodecProcessResult ProcessL(const CMMFBuffer& aSrc, CMMFBuffer& aDst); 00031 00032 private: 00033 // Helper function 00034 void Convert(TUint8* aSrc, TUint8* aDst, TInt aSamples); 00035 00036 private: 00037 //owned by the Datapath 00038 const CMMFDataBuffer* iSrc; 00039 CMMFDataBuffer* iDst; 00040 }; 00041 00042 #endif
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.