Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > contrib > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 2393

libogre1-devel-0.13.0-1mdk.i586.rpm

<html>
<head>
<title>Ogre::ImageCodec 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> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>Ogre::ImageCodec  Class Reference</h1><a class="el" href="classOgre_1_1Codec.html">Codec</a> specialized in images. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreImageCodec_8h-source.html">OgreImageCodec.h</a>&gt;</code>
<p>
Inheritance diagram for Ogre::ImageCodec:<p><center><img src="classOgre_1_1ImageCodec__inherit__graph.png" border="0" usemap="#Ogre_1_1ImageCodec__inherit__map" alt="Inheritance graph"></center>
<map name="Ogre_1_1ImageCodec__inherit__map">
<area href="classOgre_1_1ILImageCodec.html" shape="rect" coords="321,23,452,5" alt="">
<area href="classOgre_1_1Codec.html" shape="rect" coords="17,23,103,5" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Ogre::ImageCodec:<p><center><img src="classOgre_1_1ImageCodec__coll__graph.png" border="0" usemap="#Ogre_1_1ImageCodec__coll__map" alt="Collaboration graph"></center>
<map name="Ogre_1_1ImageCodec__coll__map">
<area href="classOgre_1_1Codec.html" shape="rect" coords="24,36,109,17" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1ImageCodec-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>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1ImageCodec.html#Ogre_1_1ImageCodeca0">code</a> (const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &amp;input, <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> *output,...) const=0</td></tr>
<tr><td>&nbsp;</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_1ImageCodeca0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual CodecData *&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1ImageCodec.html#Ogre_1_1ImageCodeca1">decode</a> (const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &amp;input, <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> *output,...) const=0</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Codes the data from the input chunk into the output chunk.</em> <a href="#Ogre_1_1ImageCodeca1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1ImageCodec.html#Ogre_1_1ImageCodeca2">codeToFile</a> (const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &amp;input, const <a class="el" href="classOgre_1_1String.html">String</a> &amp;outFileName, CodecData *pData) const=0</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Encodes data to a file.</em> <a href="#Ogre_1_1ImageCodeca2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1String.html">String</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1ImageCodec.html#Ogre_1_1ImageCodeca3">getType</a> () const=0</td></tr>
<tr><td>&nbsp;</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_1ImageCodeca3"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1ImageCodec.html#Ogre_1_1TGACodecd0">registerCodec</a> (<a class="el" href="classOgre_1_1Codec.html">Codec</a> *pCodec)</td></tr>
<tr><td>&nbsp;</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> *&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1ImageCodec.html#Ogre_1_1TGACodecd1">getCodec</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;extension)</td></tr>
<tr><td>&nbsp;</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&lt; <a class="el" href="classOgre_1_1String.html">String</a>,<br>
 <a class="el" href="classOgre_1_1Codec.html">Codec</a> * &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1ImageCodec.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>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1ImageCodec.html#Ogre_1_1TGACodecq0">ms_mapCodecs</a></td></tr>
<tr><td>&nbsp;</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_1Codec.html">Codec</a> specialized in images.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 The users implementing subclasses of <a class="el" href="classOgre_1_1ImageCodec.html">ImageCodec</a> are required to return a valid pointer to a <a class="el" href="classOgre_1_1ImageCodec_1_1ImageData.html">ImageData</a> class from the decode(...) function. </dl>
<p>

<p>
Definition at line <a class="el" href="OgreImageCodec_8h-source.html#l00038">38</a> of file <a class="el" href="OgreImageCodec_8h-source.html">OgreImageCodec.h</a>.<hr><h2>Member Typedef Documentation</h2>
<a name="Ogre_1_1TGACodect0" doxytag="Ogre::ImageCodec::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&lt; <a class="el" href="classOgre_1_1String.html">String</a>, <a class="el" href="classOgre_1_1Codec.html">Codec</a>* &gt; Ogre::Codec::CodecList<code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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_1ImageCodeca0" doxytag="Ogre::ImageCodec::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"> virtual void Ogre::ImageCodec::code </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>input</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>output</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>...&nbsp;</td>
          <td class="mdname" nowrap>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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_1Codec.html#Ogre_1_1Codeca0">Ogre::Codec</a>.
<p>
Implemented in <a class="el" href="classOgre_1_1BMPCodec.html#Ogre_1_1BMPCodeca0">Ogre::BMPCodec</a>, <a class="el" href="classOgre_1_1DDSCodec.html#Ogre_1_1DDSCodeca0">Ogre::DDSCodec</a>, <a class="el" href="classOgre_1_1ILImageCodec.html#Ogre_1_1ILImageCodeca2">Ogre::ILImageCodec</a>, <a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1JPGCodeca1">Ogre::JPEGCodec</a>, <a class="el" href="classOgre_1_1PNGCodec.html#Ogre_1_1PNGCodeca0">Ogre::PNGCodec</a>, and <a class="el" href="classOgre_1_1TGACodec.html#Ogre_1_1TGACodeca0">Ogre::TGACodec</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1ImageCodeca2" doxytag="Ogre::ImageCodec::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"> virtual void Ogre::ImageCodec::codeToFile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <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> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>outFileName</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>CodecData *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pData</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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>&nbsp;</td><td>
Chunk containing data to write </td></tr>
<tr><td valign=top><em>outFileName</em>&nbsp;</td><td>
Filename to output to (extension implies type) </td></tr>
<tr><td valign=top><em>pData</em>&nbsp;</td><td>
<a class="el" href="classOgre_1_1ImageCodec_1_1ImageData.html">ImageData</a> pointer </td></tr>
</table>
</dl>
<p>
Implements <a class="el" href="classOgre_1_1Codec.html#Ogre_1_1Codeca1">Ogre::Codec</a>.
<p>
Implemented in <a class="el" href="classOgre_1_1ILImageCodec.html#Ogre_1_1TGACodeca4">Ogre::ILImageCodec</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1ImageCodeca1" doxytag="Ogre::ImageCodec::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"> virtual CodecData* Ogre::ImageCodec::decode </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>input</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgre_1_1DataChunk.html">DataChunk</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>output</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>...&nbsp;</td>
          <td class="mdname" nowrap>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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>
Implements <a class="el" href="classOgre_1_1Codec.html#Ogre_1_1Codeca2">Ogre::Codec</a>.
<p>
Implemented in <a class="el" href="classOgre_1_1BMPCodec.html#Ogre_1_1BMPCodeca1">Ogre::BMPCodec</a>, <a class="el" href="classOgre_1_1DDSCodec.html#Ogre_1_1DDSCodeca1">Ogre::DDSCodec</a>, <a class="el" href="classOgre_1_1ILImageCodec.html#Ogre_1_1PNGCodeca4">Ogre::ILImageCodec</a>, <a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1JPGCodeca2">Ogre::JPEGCodec</a>, and <a class="el" href="classOgre_1_1TGACodec.html#Ogre_1_1TGACodeca1">Ogre::TGACodec</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1TGACodecd1" doxytag="Ogre::ImageCodec::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">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>extension</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [static, inherited]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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_1ImageCodeca3" doxytag="Ogre::ImageCodec::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"> virtual <a class="el" href="classOgre_1_1String.html">String</a> Ogre::ImageCodec::getType </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const<code> [pure virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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_1Codec.html#Ogre_1_1Codeca3">Ogre::Codec</a>.
<p>
Implemented in <a class="el" href="classOgre_1_1BMPCodec.html#Ogre_1_1BMPCodeca2">Ogre::BMPCodec</a>, <a class="el" href="classOgre_1_1DDSCodec.html#Ogre_1_1DDSCodeca2">Ogre::DDSCodec</a>, <a class="el" href="classOgre_1_1ILImageCodec.html#Ogre_1_1ILImageCodeca5">Ogre::ILImageCodec</a>, <a class="el" href="classOgre_1_1JPEGCodec.html#Ogre_1_1JPEGCodeca2">Ogre::JPEGCodec</a>, <a class="el" href="classOgre_1_1JPGCodec.html#Ogre_1_1JPGCodeca0">Ogre::JPGCodec</a>, <a class="el" href="classOgre_1_1PNGCodec.html#Ogre_1_1PNGCodeca2">Ogre::PNGCodec</a>, and <a class="el" href="classOgre_1_1TGACodec.html#Ogre_1_1TGACodeca2">Ogre::TGACodec</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1TGACodecd0" doxytag="Ogre::ImageCodec::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">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Codec.html">Codec</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pCodec</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [static, inherited]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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::ImageCodec::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&lt; <a class="el" href="classOgre_1_1String.html">String</a>, <a class="el" href="classOgre_1_1Codec.html">Codec</a> * &gt; Ogre::Codec::ms_mapCodecs<code> [static, protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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 file:<ul>
<li><a class="el" href="OgreImageCodec_8h-source.html">OgreImageCodec.h</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:17:55 2004
</p>
</body>
</html>