<html> <head> <title>Ogre::JPEGCodec class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <!-- Generated by Doxygen 1.2.16 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>Ogre::JPEGCodec Class Reference</h1><a class="el" href="classOgre_1_1ImageCodec.html">ImageCodec</a> specialized in JPEG images. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="OgreJPEGCodec_8h-source.html">OgreJPEGCodec.h</a>></code> <p> Inheritance diagram for Ogre::JPEGCodec:<p><center><img src="classOgre_1_1JPEGCodec__inherit__graph.png" border="0" usemap="#Ogre_1_1JPEGCodec__inherit__map" alt="Inheritance graph"></center> <map name="Ogre_1_1JPEGCodec__inherit__map"> <area href="classOgre_1_1JPGCodec.html" shape="rect" coords="17,313,127,295" alt=""> <area href="classOgre_1_1ILImageCodec.html" shape="rect" coords="7,175,137,156" alt=""> <area href="classOgre_1_1ImageCodec.html" shape="rect" coords="12,105,132,87" alt=""> <area href="classOgre_1_1Codec.html" shape="rect" coords="29,36,115,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Ogre::JPEGCodec:<p><center><img src="classOgre_1_1JPEGCodec__coll__graph.png" border="0" usemap="#Ogre_1_1JPEGCodec__coll__map" alt="Collaboration graph"></center> <map name="Ogre_1_1JPEGCodec__coll__map"> <area href="classOgre_1_1ILImageCodec.html" shape="rect" coords="7,174,137,155" alt=""> <area href="classOgre_1_1ImageCodec.html" shape="rect" coords="12,105,132,86" alt=""> <area href="classOgre_1_1Codec.html" shape="rect" coords="29,35,115,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1JPEGCodec-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1JPGCodeca1">code</a> (const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &input, <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> *output,...) const</td></tr> <tr><td> </td><td><font size=-1><em>Codes the data in the input chunk and saves the result in the output chunk.</em> <a href="#Ogre_1_1JPGCodeca1"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1Codec_1_1CodecData.html">Codec::CodecData</a> * </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1JPGCodeca2">decode</a> (const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &input, <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> *output,...) const</td></tr> <tr><td> </td><td><font size=-1><em>Codes the data from the input chunk into the output chunk.</em> <a href="#Ogre_1_1JPGCodeca2"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1String.html">String</a> </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1JPEGCodeca2">getType</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Returns the type of the codec as a <a class="el" href="classOgre_1_1String.html">String</a>.</em> <a href="#Ogre_1_1JPEGCodeca2"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>unsigned int </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1JPGCodeca3">getILType</a> (void) const</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1TGACodeca4">codeToFile</a> (const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &input, const <a class="el" href="classOgre_1_1String.html">String</a> &outFileName, CodecData *pData) const</td></tr> <tr><td> </td><td><font size=-1><em>Encodes data to a file.</em> <a href="#Ogre_1_1TGACodeca4"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1TGACodeca5">initialiseIL</a> (void)</td></tr> <tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1TGACodecd0">registerCodec</a> (<a class="el" href="classOgre_1_1Codec.html">Codec</a> *pCodec)</td></tr> <tr><td> </td><td><font size=-1><em>Registers a new codec in the database.</em> <a href="#Ogre_1_1TGACodecd0"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1Codec.html">Codec</a> * </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1TGACodecd1">getCodec</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &extension)</td></tr> <tr><td> </td><td><font size=-1><em>Gets the codec registered for the passed in file extension.</em> <a href="#Ogre_1_1TGACodecd1"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Protected Types</h2></td></tr> <tr><td nowrap align=right valign=top>typedef std::map< <a class="el" href="classOgre_1_1String.html">String</a>,<br> <a class="el" href="classOgre_1_1Codec.html">Codec</a> * > </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1TGACodect0">CodecList</a></td></tr> <tr><td colspan=2><br><h2>Static Protected Attributes</h2></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1Codec.html#Ogre_1_1TGACodect0">CodecList</a> </td><td valign=bottom><a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1TGACodecq0">ms_mapCodecs</a></td></tr> <tr><td> </td><td><font size=-1><em>A map that contains all the registered codecs.</em> <a href="#Ogre_1_1TGACodecq0"></a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="classOgre_1_1ImageCodec.html">ImageCodec</a> specialized in JPEG images. <p> <p> Definition at line <a class="el" href="OgreJPEGCodec_8h-source.html#l00036">36</a> of file <a class="el" href="OgreJPEGCodec_8h-source.html">OgreJPEGCodec.h</a>.<hr><h2>Member Typedef Documentation</h2> <a name="Ogre_1_1TGACodect0" doxytag="Ogre::JPEGCodec::CodecList"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> typedef std::map< <a class="el" href="classOgre_1_1String.html">String</a>, <a class="el" href="classOgre_1_1Codec.html">Codec</a>* > Ogre::Codec::CodecList<code> [protected, inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreCodec_8h-source.html#l00044">44</a> of file <a class="el" href="OgreCodec_8h-source.html">OgreCodec.h</a>. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="Ogre_1_1JPGCodeca1" doxytag="Ogre::JPEGCodec::code"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::JPEGCodec::code </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> & </td> <td class="mdname" nowrap> <em>input</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> * </td> <td class="mdname" nowrap> <em>output</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>... </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Codes the data in the input chunk and saves the result in the output chunk. <p> <dl compact><dt><b> Note: </b><dd> Has a variable number of arguments, which depend on the codec type. </dl> <p> Implements <a class="el" href="classOgre_1_1ILImageCodec.html#Ogre_1_1ILImageCodeca2">Ogre::ILImageCodec</a>. <p> Definition at line <a class="el" href="OgreJPEGCodec_8cpp-source.html#l00040">40</a> of file <a class="el" href="OgreJPEGCodec_8cpp-source.html">OgreJPEGCodec.cpp</a>. <p> References <a class="el" href="OgreException_8h-source.html#l00033">Except</a>, <a class="el" href="OgreException_8h-source.html#l00039">OgreGuard</a>, and <a class="el" href="OgreException_8h-source.html#l00044">OgreUnguard</a>. </td> </tr> </table> <a name="Ogre_1_1TGACodeca4" doxytag="Ogre::JPEGCodec::codeToFile"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::ILImageCodec::codeToFile </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> & </td> <td class="mdname" nowrap> <em>input</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classOgre_1_1String.html">String</a> & </td> <td class="mdname" nowrap> <em>outFileName</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>CodecData * </td> <td class="mdname" nowrap> <em>pData</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Encodes data to a file. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>input</em> </td><td> Chunk containing data to write </td></tr> <tr><td valign=top><em>outFileName</em> </td><td> Filename to output to (extension implies type) </td></tr> <tr><td valign=top><em>pData</em> </td><td> ImageData pointer </td></tr> </table> </dl> <p> Implements <a class="el" href="classOgre_1_1ImageCodec.html#Ogre_1_1ImageCodeca2">Ogre::ImageCodec</a>. </td> </tr> </table> <a name="Ogre_1_1JPGCodeca2" doxytag="Ogre::JPEGCodec::decode"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Codec_1_1CodecData.html">Codec::CodecData</a> * Ogre::JPEGCodec::decode </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> & </td> <td class="mdname" nowrap> <em>input</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> * </td> <td class="mdname" nowrap> <em>output</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>... </td> <td class="mdname" nowrap> </td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Codes the data from the input chunk into the output chunk. <p> <dl compact><dt><b> Remarks: </b><dd> The returned CodecData pointer is a pointer to a class that holds information about the decoded buffer. For an image, this would be the size, the bitdepht, etc. </dl><dl compact><dt><b> Note: </b><dd> Has a variable number of arguments, which depend on the codec type. </dl> <p> Reimplemented from <a class="el" href="classOgre_1_1ILImageCodec.html#Ogre_1_1PNGCodeca4">Ogre::ILImageCodec</a>. <p> Definition at line <a class="el" href="OgreJPEGCodec_8cpp-source.html#l00050">50</a> of file <a class="el" href="OgreJPEGCodec_8cpp-source.html">OgreJPEGCodec.cpp</a>. </td> </tr> </table> <a name="Ogre_1_1TGACodecd1" doxytag="Ogre::JPEGCodec::getCodec"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Codec.html">Codec</a> * Ogre::Codec::getCodec </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> & </td> <td class="mdname1" valign="top" nowrap> <em>extension</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the codec registered for the passed in file extension. <p> <p> Definition at line <a class="el" href="OgreCodec_8cpp-source.html#l00035">35</a> of file <a class="el" href="OgreCodec_8cpp-source.html">OgreCodec.cpp</a>. <p> References <a class="el" href="OgreException_8h-source.html#l00033">Except</a>, <a class="el" href="OgreCodec_8cpp-source.html#l00032">Ogre::Codec::ms_mapCodecs</a>, and <a class="el" href="OgreString_8cpp-source.html#l00101">Ogre::String::toLowerCase</a>(). </td> </tr> </table> <a name="Ogre_1_1JPGCodeca3" doxytag="Ogre::JPEGCodec::getILType"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned int Ogre::JPEGCodec::getILType </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Implements <a class="el" href="classOgre_1_1ILImageCodec.html#Ogre_1_1ILImageCodeca6">Ogre::ILImageCodec</a>. <p> Definition at line <a class="el" href="OgreJPEGCodec_8cpp-source.html#l00056">56</a> of file <a class="el" href="OgreJPEGCodec_8cpp-source.html">OgreJPEGCodec.cpp</a>. </td> </tr> </table> <a name="Ogre_1_1JPEGCodeca2" doxytag="Ogre::JPEGCodec::getType"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1String.html">String</a> Ogre::JPEGCodec::getType </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns the type of the codec as a <a class="el" href="classOgre_1_1String.html">String</a>. <p> <p> Implements <a class="el" href="classOgre_1_1ILImageCodec.html#Ogre_1_1ILImageCodeca5">Ogre::ILImageCodec</a>. <p> Reimplemented in <a class="el" href="classOgre_1_1JPGCodec.html#Ogre_1_1JPGCodeca0">Ogre::JPGCodec</a>. <p> Definition at line <a class="el" href="OgreJPEGCodec_8h-source.html#l00043">43</a> of file <a class="el" href="OgreJPEGCodec_8h-source.html">OgreJPEGCodec.h</a>. </td> </tr> </table> <a name="Ogre_1_1TGACodeca5" doxytag="Ogre::JPEGCodec::initialiseIL"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::ILImageCodec::initialiseIL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreILImageCodec_8cpp-source.html#l00114">114</a> of file <a class="el" href="OgreILImageCodec_8cpp-source.html">OgreILImageCodec.cpp</a>. <p> References <a class="el" href="OgreILImageCodec_8cpp-source.html#l00037">Ogre::ILImageCodec::_is_initialised</a>. </td> </tr> </table> <a name="Ogre_1_1TGACodecd0" doxytag="Ogre::JPEGCodec::registerCodec"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::Codec::registerCodec </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Codec.html">Codec</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pCodec</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Registers a new codec in the database. <p> <p> Definition at line <a class="el" href="OgreCodec_8h-source.html#l00063">63</a> of file <a class="el" href="OgreCodec_8h-source.html">OgreCodec.h</a>. <p> References <a class="el" href="classOgre_1_1Codec.html#Ogre_1_1Codeca3">Ogre::Codec::getType</a>(). </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="Ogre_1_1TGACodecq0" doxytag="Ogre::JPEGCodec::ms_mapCodecs"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> std::map< <a class="el" href="classOgre_1_1String.html">String</a>, <a class="el" href="classOgre_1_1Codec.html">Codec</a> * > Ogre::Codec::ms_mapCodecs<code> [static, protected, inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> A map that contains all the registered codecs. <p> <p> Definition at line <a class="el" href="OgreCodec_8cpp-source.html#l00032">32</a> of file <a class="el" href="OgreCodec_8cpp-source.html">OgreCodec.cpp</a>. <p> Referenced by <a class="el" href="OgreCodec_8cpp-source.html#l00035">Ogre::Codec::getCodec</a>(). </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="OgreJPEGCodec_8h-source.html">OgreJPEGCodec.h</a><li><a class="el" href="OgreJPEGCodec_8cpp-source.html">OgreJPEGCodec.cpp</a></ul> <p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:17:58 2004 </p> </body> </html>