os/mm/mmlibs/mmfw/Codecs/Inc/MMFCodecCommon/MMFAudioMuLawToS16PcmCodec.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 /*
     2 * Copyright (c) 2002-2003 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 #ifndef __MMF_TMMFAUDIO_MULAW_TO_S16PCM_CODEC_H__
    19 #define __MMF_TMMFAUDIO_MULAW_TO_S16PCM_CODEC_H__
    20 #include <e32std.h>
    21 #include "MMFAudioCodecBase.h"
    22 
    23 const TInt KMdaMulawTo16PcmExpLutSize = 8;
    24 
    25 /*
    26 *
    27 * class TMMFAudioMuLawToS16PcmCodec 
    28 *
    29 */
    30 class TMMFAudioMuLawToS16PcmCodec : public TMMFAudioCodecBase
    31 	{
    32 public:
    33 	IMPORT_C virtual void Convert(TUint8* aSrc, TUint8* aDst, TInt aSamples);
    34 private:
    35 	TInt MulawSampleToPcm(TUint8 aMulaw);
    36 private:
    37 	const static TInt KExpLut[KMdaMulawTo16PcmExpLutSize];
    38 	};
    39 
    40 #endif //__MMF_TMMFAUDIO_MULAW_TO_S16PCM_CODEC_H__