os/mm/mmlibs/mmfw/src/Plugin/Codec/audio/MMFPcm16ToImaAdPcmStereoCodec.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) 1997-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 __PCM16_IMAADPCMSTEREO_CODEC_H__
    18 #define __PCM16_IMAADPCMSTEREO_CODEC_H__
    19 #include <mmf/server/mmfcodec.h>
    20 #include "MMFAudioPcm16ToImaAdpcmCodec.h"		  
    21 
    22 //this is almost the same as the mono IMA, expect i16PcmToImaAdpcm is construct with 2 Channels for Stereo
    23 class CMMFPcm16ImaAdPcmStereoCodec : public CMMFCodec
    24 	{
    25 public:
    26 	static CMMFCodec* NewL(TAny* aInitParams);
    27 	virtual ~CMMFPcm16ImaAdPcmStereoCodec();
    28 	TCodecProcessResult ProcessL(const CMMFBuffer& aSrc, CMMFBuffer& aDst);
    29 private:
    30 	CMMFPcm16ImaAdPcmStereoCodec();
    31 	void ConstructL(TAny* aInitParams);
    32 private:
    33 	//owned by the Datapath
    34 	const CMMFDataBuffer* iSrc;
    35 	CMMFDataBuffer* iDst;
    36 
    37 	TUint iTempSrcBufferCount;
    38 	TUint8* iTempSrcBufferPtr;
    39 	TUint8 iTempSrcBuffer[KImaAdpcmStereoTempBufferSize];
    40 	TMMFImaAdpcmTo16PcmCodecOld i16PcmToImaAdpcm;
    41 	TUint iLastFrameNumber;
    42 	};
    43 
    44 
    45 #endif