source: OGRE/trunk/ogrenew/Docs/api/html/OgreImageResampler_8h.html @ 692

Revision 692, 7.7 KB checked in by mattausch, 18 years ago (diff)

adding ogre 1.2 and dependencies

Line 
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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
10<h1>OgreImageResampler.h File Reference</h1><code>#include &lt;algorithm&gt;</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 &nbsp;</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&nbsp;</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&nbsp;</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&nbsp;</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">(&nbsp;</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&nbsp;</td>
45          <td class="mdname1" valign="top" nowrap>          </td>
46          <td class="md" valign="top">&nbsp;)&nbsp;</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      &nbsp;
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>
66Referenced 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">(&nbsp;</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&nbsp;</td>
87          <td class="mdname1" valign="top" nowrap>          </td>
88          <td class="md" valign="top">&nbsp;)&nbsp;</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      &nbsp;
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>
108Referenced 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">(&nbsp;</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&nbsp;</td>
129          <td class="mdname1" valign="top" nowrap>          </td>
130          <td class="md" valign="top">&nbsp;)&nbsp;</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      &nbsp;
140    </td>
141    <td>
142
143<p>
144<b>Value:</b><div class="fragment"><pre>PixelUtil::unpackColour(&amp;dst, src.format, \
145    srcdata + srcelemsize*((x)+(y)*src.rowPitch+(z)*src.slicePitch))
146</pre></div>
147<p>
148Referenced by <a class="el" href="OgreImageResampler_8h-source.html#l00093">Ogre::LinearResampler::scale()</a>.    </td>
149  </tr>
150</table>
151<hr>
152<p>
153Copyright &copy; 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/>
155This 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
163Last modified Sun Mar 12 14:37:53 2006
164</p>
165</body>
166</html>
Note: See TracBrowser for help on using the repository browser.