Symbian3/SDK/Source/GUID-8D8202BB-1070-5EE2-85C0-E37AABA67340.dita
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 11 Jun 2010 12:39:03 +0100
changeset 8 ae94777fff8f
permissions -rw-r--r--
Week 23 contribution of SDK documentation content. See release notes for details. Fixes bugs Bug 2714, Bug 462.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-8D8202BB-1070-5EE2-85C0-E37AABA67340" xml:lang="en"><title>MmfExCodec:
Multimedia Framework codec plug-in example</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<section><title>Description</title> <p> <filepath>MmfExCodec</filepath> 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. </p> <p>The program is an ECom plug-in
that implements the codec interface <codeph>CMMFCodec</codeph> by the class <codeph>CMMFExPcm8Pcm16Codec</codeph>.
When a client or media format requires a PCM8 to PCM16 codec, the Multimedia
Framework will instantiate a <codeph>CMMFExPcm8Pcm16Codec</codeph> object,
and call its <codeph>ProcessL()</codeph> 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, <codeph>CMMFExPcm8Pcm16Codec::ProcessL()</codeph> is
not very complex. </p> </section>
<section id="GUID-98F50184-E319-592D-A350-785799248B3C"><title>Download</title> <p>Click
on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-03d20b19-4462-40f7-bb6a-d91aaeea30b0.zip" scope="external"> MmfExCodec.zip file</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-03d20b19-4462-40f7-bb6a-d91aaeea30b0.html" scope="peer">browse </xref> to view the example code. </p> </section>
<section><title>Class summary</title><p> <xref href="GUID-18F4082A-D301-3007-88DD-0E13AB81C74A.dita"><apiname>CMMFCodec </apiname></xref>  <xref href="GUID-AE26E6A4-C1AD-3B35-B5F7-CE0AB60169BB.dita"><apiname>CMMFDataBuffer </apiname></xref>  </p></section>
</conbody></concept>