os/mm/mmlibs/mmfw/src/Plugin/Codec/audio/MMFPcm16ToImaAdPcmCodec.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 1997-2002 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 
    19 
    20 #ifndef __PCM16_IMAADPCM_CODEC_H__
    21 #define __PCM16_IMAADPCM_CODEC_H__
    22 
    23 #include "MMFCodecBaseDefinitions.h"
    24 #include "MMFAudioCodecBase.h"
    25 
    26 //mono IMA - i16PcmToImaAdpcm with 1 (mono)
    27 class CMMFPcm16ImaAdPcmCodec : public CMMFCodec
    28 	{
    29 public:
    30 	static CMMFCodec* NewL(TAny* aInitParams);
    31 	virtual ~CMMFPcm16ImaAdPcmCodec();
    32 	TCodecProcessResult ProcessL(const CMMFBuffer& aSrc, CMMFBuffer& aDst);
    33 private:
    34 	CMMFPcm16ImaAdPcmCodec();
    35 	void ConstructL(TAny* aInitParams);
    36 
    37 	virtual void ResetL();
    38 private:
    39 	//owned by the Datapath
    40 	const CMMFDataBuffer* iSrc;
    41 	CMMFDataBuffer* iDst;
    42 
    43 	TUint iTempSrcBufferCount;
    44 	TUint8* iTempSrcBufferPtr;
    45 	TUint8 iTempSrcBuffer[KImaAdpcmTempBufferSize];
    46 	TMMF16PcmToImaAdpcmCodecOld i16PcmToImaAdpcm;
    47 	TUint iLastFrameNumber;
    48 	};
    49 
    50 
    51 #endif