[692] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <title>OgreImageResampler.h File Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
| 4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
| 5 | </head> |
---|
| 6 | |
---|
| 7 | <body> |
---|
| 8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
| 9 | <div class="qindex"><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">Class 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">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
| 10 | <h1>OgreImageResampler.h File Reference</h1><code>#include <algorithm></code><br> |
---|
| 11 | |
---|
| 12 | <p> |
---|
| 13 | <a href="OgreImageResampler_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> |
---|
| 14 | <tr><td></td></tr> |
---|
| 15 | <tr><td colspan=2><br><h2>Namespaces</h2></td></tr> |
---|
| 16 | <tr><td class="memItemLeft" nowrap align=right valign=top>namespace </td><td class="memItemRight" valign=bottom><a class="el" href="namespaceOgre.html">Ogre</a></td></tr> |
---|
| 17 | |
---|
| 18 | <tr><td colspan=2><br><h2>Defines</h2></td></tr> |
---|
| 19 | <tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="OgreImageResampler_8h.html#a0">UNPACK</a>(dst, x, y, z)</td></tr> |
---|
| 20 | |
---|
| 21 | <tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(x, y, z, factor)</td></tr> |
---|
| 22 | |
---|
| 23 | <tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(x, y, z, factor)</td></tr> |
---|
| 24 | |
---|
| 25 | </table> |
---|
| 26 | <hr><h2>Define Documentation</h2> |
---|
| 27 | <a class="anchor" name="a1" doxytag="OgreImageResampler.h::ACCUM3" ></a><p> |
---|
| 28 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
| 29 | <tr> |
---|
| 30 | <td class="mdRow"> |
---|
| 31 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 32 | <tr> |
---|
| 33 | <td class="md" nowrap valign="top"> #define ACCUM3</td> |
---|
| 34 | <td class="md" valign="top">( </td> |
---|
| 35 | <td class="md" nowrap valign="top">x, <tr> |
---|
| 36 | <td class="md" nowrap align="right"></td> |
---|
| 37 | <td></td> |
---|
| 38 | <td class="md" nowrap>y, <tr> |
---|
| 39 | <td class="md" nowrap align="right"></td> |
---|
| 40 | <td></td> |
---|
| 41 | <td class="md" nowrap>z, <tr> |
---|
| 42 | <td class="md" nowrap align="right"></td> |
---|
| 43 | <td></td> |
---|
| 44 | <td class="md" nowrap>factor </td> |
---|
| 45 | <td class="mdname1" valign="top" nowrap> </td> |
---|
| 46 | <td class="md" valign="top"> ) </td> |
---|
| 47 | <td class="md" nowrap> |
---|
| 48 | </table> |
---|
| 49 | </td> |
---|
| 50 | </tr> |
---|
| 51 | </table> |
---|
| 52 | <table cellspacing=5 cellpadding=0 border=0> |
---|
| 53 | <tr> |
---|
| 54 | <td> |
---|
| 55 | |
---|
| 56 | </td> |
---|
| 57 | <td> |
---|
| 58 | |
---|
| 59 | <p> |
---|
| 60 | <b>Value:</b><div class="fragment"><pre>{ <span class="keywordtype">float</span> f = factor; \ |
---|
| 61 | size_t off = (x+y*src.rowPitch+z*src.slicePitch)*srcchannels; \ |
---|
| 62 | accum[0]+=srcdata[off+0]*f; accum[1]+=srcdata[off+1]*f; \ |
---|
| 63 | accum[2]+=srcdata[off+2]*f; } |
---|
| 64 | </pre></div> |
---|
| 65 | <p> |
---|
| 66 | Referenced by <a class="el" href="OgreImageResampler_8h-source.html#l00176">Ogre::LinearResampler_Float32::scale()</a>. </td> |
---|
| 67 | </tr> |
---|
| 68 | </table> |
---|
| 69 | <a class="anchor" name="a2" doxytag="OgreImageResampler.h::ACCUM4" ></a><p> |
---|
| 70 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
| 71 | <tr> |
---|
| 72 | <td class="mdRow"> |
---|
| 73 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 74 | <tr> |
---|
| 75 | <td class="md" nowrap valign="top"> #define ACCUM4</td> |
---|
| 76 | <td class="md" valign="top">( </td> |
---|
| 77 | <td class="md" nowrap valign="top">x, <tr> |
---|
| 78 | <td class="md" nowrap align="right"></td> |
---|
| 79 | <td></td> |
---|
| 80 | <td class="md" nowrap>y, <tr> |
---|
| 81 | <td class="md" nowrap align="right"></td> |
---|
| 82 | <td></td> |
---|
| 83 | <td class="md" nowrap>z, <tr> |
---|
| 84 | <td class="md" nowrap align="right"></td> |
---|
| 85 | <td></td> |
---|
| 86 | <td class="md" nowrap>factor </td> |
---|
| 87 | <td class="mdname1" valign="top" nowrap> </td> |
---|
| 88 | <td class="md" valign="top"> ) </td> |
---|
| 89 | <td class="md" nowrap> |
---|
| 90 | </table> |
---|
| 91 | </td> |
---|
| 92 | </tr> |
---|
| 93 | </table> |
---|
| 94 | <table cellspacing=5 cellpadding=0 border=0> |
---|
| 95 | <tr> |
---|
| 96 | <td> |
---|
| 97 | |
---|
| 98 | </td> |
---|
| 99 | <td> |
---|
| 100 | |
---|
| 101 | <p> |
---|
| 102 | <b>Value:</b><div class="fragment"><pre>{ <span class="keywordtype">float</span> f = factor; \ |
---|
| 103 | size_t off = (x+y*src.rowPitch+z*src.slicePitch)*srcchannels; \ |
---|
| 104 | accum[0]+=srcdata[off+0]*f; accum[1]+=srcdata[off+1]*f; \ |
---|
| 105 | accum[2]+=srcdata[off+2]*f; accum[3]+=srcdata[off+3]*f; } |
---|
| 106 | </pre></div> |
---|
| 107 | <p> |
---|
| 108 | Referenced by <a class="el" href="OgreImageResampler_8h-source.html#l00176">Ogre::LinearResampler_Float32::scale()</a>. </td> |
---|
| 109 | </tr> |
---|
| 110 | </table> |
---|
| 111 | <a class="anchor" name="a0" doxytag="OgreImageResampler.h::UNPACK" ></a><p> |
---|
| 112 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
| 113 | <tr> |
---|
| 114 | <td class="mdRow"> |
---|
| 115 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 116 | <tr> |
---|
| 117 | <td class="md" nowrap valign="top"> #define UNPACK</td> |
---|
| 118 | <td class="md" valign="top">( </td> |
---|
| 119 | <td class="md" nowrap valign="top">dst, <tr> |
---|
| 120 | <td class="md" nowrap align="right"></td> |
---|
| 121 | <td></td> |
---|
| 122 | <td class="md" nowrap>x, <tr> |
---|
| 123 | <td class="md" nowrap align="right"></td> |
---|
| 124 | <td></td> |
---|
| 125 | <td class="md" nowrap>y, <tr> |
---|
| 126 | <td class="md" nowrap align="right"></td> |
---|
| 127 | <td></td> |
---|
| 128 | <td class="md" nowrap>z </td> |
---|
| 129 | <td class="mdname1" valign="top" nowrap> </td> |
---|
| 130 | <td class="md" valign="top"> ) </td> |
---|
| 131 | <td class="md" nowrap> |
---|
| 132 | </table> |
---|
| 133 | </td> |
---|
| 134 | </tr> |
---|
| 135 | </table> |
---|
| 136 | <table cellspacing=5 cellpadding=0 border=0> |
---|
| 137 | <tr> |
---|
| 138 | <td> |
---|
| 139 | |
---|
| 140 | </td> |
---|
| 141 | <td> |
---|
| 142 | |
---|
| 143 | <p> |
---|
| 144 | <b>Value:</b><div class="fragment"><pre>PixelUtil::unpackColour(&dst, src.format, \ |
---|
| 145 | srcdata + srcelemsize*((x)+(y)*src.rowPitch+(z)*src.slicePitch)) |
---|
| 146 | </pre></div> |
---|
| 147 | <p> |
---|
| 148 | Referenced by <a class="el" href="OgreImageResampler_8h-source.html#l00093">Ogre::LinearResampler::scale()</a>. </td> |
---|
| 149 | </tr> |
---|
| 150 | </table> |
---|
| 151 | <hr> |
---|
| 152 | <p> |
---|
| 153 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
| 154 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
| 155 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
| 156 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
| 157 | <Work rdf:about=""> |
---|
| 158 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
| 159 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
| 160 | </Work> |
---|
| 161 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
| 162 | |
---|
| 163 | Last modified Sun Mar 12 14:37:53 2006 |
---|
| 164 | </p> |
---|
| 165 | </body> |
---|
| 166 | </html> |
---|