MmfExCodec demonstrates how to implement a codec plug-in for the Multimedia Framework. A codec converts media data in one encoding into another encoding. The example converts audio data encoded with PCM8 into PCM16.
The program is an ECom plug-in that implements the codec interface CMMFCodec by the class CMMFExPcm8Pcm16Codec . When a client or media format requires a PCM8 to PCM16 codec, the Multimedia Framework will instantiate a CMMFExPcm8Pcm16Codec object, and call its ProcessL() member function to convert data supplied a source buffer. As converting PCM8 into PCM16 only requires expanding each byte in the source buffer into two bytes in the destination buffer, CMMFExPcm8Pcm16Codec::ProcessL() is not very complex.
Click on the following link to download the example: MmfExCodec.zip file
Click: browse to view the example code.
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.