examples/Multimedia/MmfExCodec/MMFExPcm8ToPcm16Codec.h

00001 // MMFExPcm8Pcm16Codec.h
00002 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // License: "Symbian Foundation License v1.0" to Symbian Foundation
00005 // members and "Symbian Foundation End User License Agreement v1.0"
00006 // to non-members at the URL
00007 // "http://www.symbianfoundation.org/legal/licencesv10.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

Generated by  doxygen 1.6.2