[657] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <title>OgreImageResampler.h Source File - 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</h1><a href="OgreImageResampler_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
| 11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
| 12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
| 13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
| 14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
| 15 | 00006 <span class="comment"></span> |
---|
| 16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
| 17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
| 18 | 00009 <span class="comment"></span> |
---|
| 19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
| 20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
| 21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
| 22 | 00013 <span class="comment">version.</span> |
---|
| 23 | 00014 <span class="comment"></span> |
---|
| 24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
| 25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
| 26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
| 27 | 00018 <span class="comment"></span> |
---|
| 28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
| 29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
| 30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
| 31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
| 32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
| 33 | 00024 <span class="comment">*/</span> |
---|
| 34 | 00025 <span class="preprocessor">#ifndef OGREIMAGERESAMPLER_H</span> |
---|
| 35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define OGREIMAGERESAMPLER_H</span> |
---|
| 36 | 00027 <span class="preprocessor"></span> |
---|
| 37 | 00028 <span class="preprocessor">#include <algorithm></span> |
---|
| 38 | 00029 |
---|
| 39 | 00030 <span class="comment">// this file is inlined into OgreImage.cpp!</span> |
---|
| 40 | 00031 <span class="comment">// do not include anywhere else.</span> |
---|
| 41 | 00032 <span class="keyword">namespace </span>Ogre { |
---|
| 42 | 00033 |
---|
| 43 | 00034 <span class="comment">// define uint64 type</span> |
---|
| 44 | 00035 <span class="preprocessor">#if OGRE_COMPILER == OGRE_COMPILER_MSVC</span> |
---|
| 45 | <a name="l00036"></a><a class="code" href="namespaceOgre.html#a553">00036</a> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> __int64 <a class="code" href="namespaceOgre.html#a553">uint64</a>; |
---|
| 46 | 00037 <span class="preprocessor">#else</span> |
---|
| 47 | 00038 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="namespaceOgre.html#a553">uint64</a>; |
---|
| 48 | 00039 <span class="preprocessor">#endif</span> |
---|
| 49 | 00040 <span class="preprocessor"></span> |
---|
| 50 | 00041 <span class="comment">// variable name hints:</span> |
---|
| 51 | 00042 <span class="comment">// sx_48 = 16/48-bit fixed-point x-position in source</span> |
---|
| 52 | 00043 <span class="comment">// stepx = difference between adjacent sx_48 values</span> |
---|
| 53 | 00044 <span class="comment">// sx1 = lower-bound integer x-position in source</span> |
---|
| 54 | 00045 <span class="comment">// sx2 = upper-bound integer x-position in source</span> |
---|
| 55 | 00046 <span class="comment">// sxf = fractional weight beween sx1 and sx2</span> |
---|
| 56 | 00047 <span class="comment">// x,y,z = location of output pixel in destination</span> |
---|
| 57 | 00048 |
---|
| 58 | 00049 <span class="comment">// nearest-neighbor resampler, does not convert formats.</span> |
---|
| 59 | 00050 <span class="comment">// templated on bytes-per-pixel to allow compiler optimizations, such</span> |
---|
| 60 | 00051 <span class="comment">// as simplifying memcpy() and replacing multiplies with bitshifts</span> |
---|
| 61 | <a name="l00052"></a><a class="code" href="structOgre_1_1NearestResampler.html">00052</a> <span class="keyword">template</span><<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> elemsize> <span class="keyword">struct </span><a class="code" href="structOgre_1_1NearestResampler.html">NearestResampler</a> { |
---|
| 62 | <a name="l00053"></a><a class="code" href="structOgre_1_1NearestResampler.html#Ogre_1_1NearestResamplere0">00053</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structOgre_1_1NearestResampler.html#Ogre_1_1NearestResamplere0">scale</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1PixelBox.html">PixelBox</a>& src, <span class="keyword">const</span> <a class="code" href="classOgre_1_1PixelBox.html">PixelBox</a>& dst) { |
---|
| 63 | 00054 <span class="comment">// assert(src.format == dst.format);</span> |
---|
| 64 | 00055 |
---|
| 65 | 00056 <span class="comment">// srcdata stays at beginning, pdst is a moving pointer</span> |
---|
| 66 | 00057 <a class="code" href="namespaceOgre.html#a421">uchar</a>* srcdata = (<a class="code" href="namespaceOgre.html#a421">uchar</a>*)src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">data</a>; |
---|
| 67 | 00058 <a class="code" href="namespaceOgre.html#a421">uchar</a>* pdst = (<a class="code" href="namespaceOgre.html#a421">uchar</a>*)dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">data</a>; |
---|
| 68 | 00059 |
---|
| 69 | 00060 <span class="comment">// sx_48,sy_48,sz_48 represent current position in source</span> |
---|
| 70 | 00061 <span class="comment">// using 16/48-bit fixed precision, incremented by steps</span> |
---|
| 71 | 00062 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepx = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>(); |
---|
| 72 | 00063 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepy = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>(); |
---|
| 73 | 00064 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepz = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>(); |
---|
| 74 | 00065 |
---|
| 75 | 00066 <span class="comment">// note: ((stepz>>1) - 1) is an extra half-step increment to adjust</span> |
---|
| 76 | 00067 <span class="comment">// for the center of the destination pixel, not the top-left corner</span> |
---|
| 77 | 00068 <a class="code" href="namespaceOgre.html#a553">uint64</a> sz_48 = (stepz >> 1) - 1; |
---|
| 78 | 00069 <span class="keywordflow">for</span> (size_t z = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo8">front</a>; z < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo9">back</a>; z++, sz_48 += stepz) { |
---|
| 79 | 00070 size_t srczoff = (size_t)(sz_48 >> 48) * src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo3">slicePitch</a>; |
---|
| 80 | 00071 |
---|
| 81 | 00072 <a class="code" href="namespaceOgre.html#a553">uint64</a> sy_48 = (stepy >> 1) - 1; |
---|
| 82 | 00073 <span class="keywordflow">for</span> (size_t y = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo5">top</a>; y < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo7">bottom</a>; y++, sy_48 += stepy) { |
---|
| 83 | 00074 size_t srcyoff = (size_t)(sy_48 >> 48) * src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo2">rowPitch</a>; |
---|
| 84 | 00075 |
---|
| 85 | 00076 <a class="code" href="namespaceOgre.html#a553">uint64</a> sx_48 = (stepx >> 1) - 1; |
---|
| 86 | 00077 <span class="keywordflow">for</span> (size_t x = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo4">left</a>; x < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo6">right</a>; x++, sx_48 += stepx) { |
---|
| 87 | 00078 <a class="code" href="namespaceOgre.html#a421">uchar</a>* psrc = srcdata + |
---|
| 88 | 00079 elemsize*((size_t)(sx_48 >> 48) + srcyoff + srczoff); |
---|
| 89 | 00080 memcpy(pdst, psrc, elemsize); |
---|
| 90 | 00081 pdst += elemsize; |
---|
| 91 | 00082 } |
---|
| 92 | 00083 pdst += elemsize*dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa4">getRowSkip</a>(); |
---|
| 93 | 00084 } |
---|
| 94 | 00085 pdst += elemsize*dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa5">getSliceSkip</a>(); |
---|
| 95 | 00086 } |
---|
| 96 | 00087 } |
---|
| 97 | 00088 }; |
---|
| 98 | 00089 |
---|
| 99 | 00090 |
---|
| 100 | 00091 <span class="comment">// default floating-point linear resampler, does format conversion</span> |
---|
| 101 | <a name="l00092"></a><a class="code" href="structOgre_1_1LinearResampler.html">00092</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1LinearResampler.html">LinearResampler</a> { |
---|
| 102 | <a name="l00093"></a><a class="code" href="structOgre_1_1LinearResampler.html#Ogre_1_1LinearResamplere0">00093</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structOgre_1_1LinearResampler.html#Ogre_1_1LinearResamplere0">scale</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1PixelBox.html">PixelBox</a>& src, <span class="keyword">const</span> <a class="code" href="classOgre_1_1PixelBox.html">PixelBox</a>& dst) { |
---|
| 103 | 00094 size_t srcelemsize = PixelUtil::getNumElemBytes(src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo1">format</a>); |
---|
| 104 | 00095 size_t dstelemsize = PixelUtil::getNumElemBytes(dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo1">format</a>); |
---|
| 105 | 00096 |
---|
| 106 | 00097 <span class="comment">// srcdata stays at beginning, pdst is a moving pointer</span> |
---|
| 107 | 00098 <a class="code" href="namespaceOgre.html#a421">uchar</a>* srcdata = (<a class="code" href="namespaceOgre.html#a421">uchar</a>*)src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">data</a>; |
---|
| 108 | 00099 <a class="code" href="namespaceOgre.html#a421">uchar</a>* pdst = (<a class="code" href="namespaceOgre.html#a421">uchar</a>*)dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">data</a>; |
---|
| 109 | 00100 |
---|
| 110 | 00101 <span class="comment">// sx_48,sy_48,sz_48 represent current position in source</span> |
---|
| 111 | 00102 <span class="comment">// using 16/48-bit fixed precision, incremented by steps</span> |
---|
| 112 | 00103 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepx = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>(); |
---|
| 113 | 00104 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepy = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>(); |
---|
| 114 | 00105 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepz = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>(); |
---|
| 115 | 00106 |
---|
| 116 | 00107 <span class="comment">// temp is 16/16 bit fixed precision, used to adjust a source</span> |
---|
| 117 | 00108 <span class="comment">// coordinate (x, y, or z) backwards by half a pixel so that the</span> |
---|
| 118 | 00109 <span class="comment">// integer bits represent the first sample (eg, sx1) and the</span> |
---|
| 119 | 00110 <span class="comment">// fractional bits are the blend weight of the second sample</span> |
---|
| 120 | 00111 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> temp; |
---|
| 121 | 00112 |
---|
| 122 | 00113 <span class="comment">// note: ((stepz>>1) - 1) is an extra half-step increment to adjust</span> |
---|
| 123 | 00114 <span class="comment">// for the center of the destination pixel, not the top-left corner</span> |
---|
| 124 | 00115 <a class="code" href="namespaceOgre.html#a553">uint64</a> sz_48 = (stepz >> 1) - 1; |
---|
| 125 | 00116 <span class="keywordflow">for</span> (size_t z = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo8">front</a>; z < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo9">back</a>; z++, sz_48+=stepz) { |
---|
| 126 | 00117 temp = sz_48 >> 32; |
---|
| 127 | 00118 temp = (temp > 0x8000)? temp - 0x8000 : 0; |
---|
| 128 | 00119 size_t sz1 = temp >> 16; <span class="comment">// src z, sample #1</span> |
---|
| 129 | 00120 size_t sz2 = std::min(sz1+1,src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>()-1);<span class="comment">// src z, sample #2</span> |
---|
| 130 | 00121 <span class="keywordtype">float</span> szf = (temp & 0xFFFF) / 65536.f; <span class="comment">// weight of sample #2</span> |
---|
| 131 | 00122 |
---|
| 132 | 00123 <a class="code" href="namespaceOgre.html#a553">uint64</a> sy_48 = (stepy >> 1) - 1; |
---|
| 133 | 00124 <span class="keywordflow">for</span> (size_t y = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo5">top</a>; y < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo7">bottom</a>; y++, sy_48+=stepy) { |
---|
| 134 | 00125 temp = sy_48 >> 32; |
---|
| 135 | 00126 temp = (temp > 0x8000)? temp - 0x8000 : 0; |
---|
| 136 | 00127 size_t sy1 = temp >> 16; <span class="comment">// src y #1</span> |
---|
| 137 | 00128 size_t sy2 = std::min(sy1+1,src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>()-1);<span class="comment">// src y #2</span> |
---|
| 138 | 00129 <span class="keywordtype">float</span> syf = (temp & 0xFFFF) / 65536.f; <span class="comment">// weight of #2</span> |
---|
| 139 | 00130 |
---|
| 140 | 00131 <a class="code" href="namespaceOgre.html#a553">uint64</a> sx_48 = (stepx >> 1) - 1; |
---|
| 141 | 00132 <span class="keywordflow">for</span> (size_t x = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo4">left</a>; x < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo6">right</a>; x++, sx_48+=stepx) { |
---|
| 142 | 00133 temp = sx_48 >> 32; |
---|
| 143 | 00134 temp = (temp > 0x8000)? temp - 0x8000 : 0; |
---|
| 144 | 00135 size_t sx1 = temp >> 16; <span class="comment">// src x #1</span> |
---|
| 145 | 00136 size_t sx2 = std::min(sx1+1,src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>()-1);<span class="comment">// src x #2</span> |
---|
| 146 | 00137 <span class="keywordtype">float</span> sxf = (temp & 0xFFFF) / 65536.f; <span class="comment">// weight of #2</span> |
---|
| 147 | 00138 |
---|
| 148 | 00139 <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> x1y1z1, x2y1z1, x1y2z1, x2y2z1; |
---|
| 149 | 00140 <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> x1y1z2, x2y1z2, x1y2z2, x2y2z2; |
---|
| 150 | 00141 |
---|
| 151 | 00142 <span class="preprocessor">#define UNPACK(dst,x,y,z) PixelUtil::unpackColour(&dst, src.format, \</span> |
---|
| 152 | 00143 <span class="preprocessor"> srcdata + srcelemsize*((x)+(y)*src.rowPitch+(z)*src.slicePitch))</span> |
---|
| 153 | 00144 <span class="preprocessor"></span> |
---|
| 154 | 00145 <a class="code" href="OgreImageResampler_8h.html#a0">UNPACK</a>(x1y1z1,sx1,sy1,sz1); <a class="code" href="OgreImageResampler_8h.html#a0">UNPACK</a>(x2y1z1,sx2,sy1,sz1); |
---|
| 155 | 00146 <a class="code" href="OgreImageResampler_8h.html#a0">UNPACK</a>(x1y2z1,sx1,sy2,sz1); <a class="code" href="OgreImageResampler_8h.html#a0">UNPACK</a>(x2y2z1,sx2,sy2,sz1); |
---|
| 156 | 00147 <a class="code" href="OgreImageResampler_8h.html#a0">UNPACK</a>(x1y1z2,sx1,sy1,sz2); <a class="code" href="OgreImageResampler_8h.html#a0">UNPACK</a>(x2y1z2,sx2,sy1,sz2); |
---|
| 157 | 00148 <a class="code" href="OgreImageResampler_8h.html#a0">UNPACK</a>(x1y2z2,sx1,sy2,sz2); <a class="code" href="OgreImageResampler_8h.html#a0">UNPACK</a>(x2y2z2,sx2,sy2,sz2); |
---|
| 158 | 00149 <span class="preprocessor">#undef UNPACK</span> |
---|
| 159 | 00150 <span class="preprocessor"></span> |
---|
| 160 | 00151 <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> accum = |
---|
| 161 | 00152 x1y1z1 * ((1.0f - sxf)*(1.0f - syf)*(1.0f - szf)) + |
---|
| 162 | 00153 x2y1z1 * ( sxf *(1.0f - syf)*(1.0f - szf)) + |
---|
| 163 | 00154 x1y2z1 * ((1.0f - sxf)* syf *(1.0f - szf)) + |
---|
| 164 | 00155 x2y2z1 * ( sxf * syf *(1.0f - szf)) + |
---|
| 165 | 00156 x1y1z2 * ((1.0f - sxf)*(1.0f - syf)* szf ) + |
---|
| 166 | 00157 x2y1z2 * ( sxf *(1.0f - syf)* szf ) + |
---|
| 167 | 00158 x1y2z2 * ((1.0f - sxf)* syf * szf ) + |
---|
| 168 | 00159 x2y2z2 * ( sxf * syf * szf ); |
---|
| 169 | 00160 |
---|
| 170 | 00161 PixelUtil::packColour(accum, dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo1">format</a>, pdst); |
---|
| 171 | 00162 |
---|
| 172 | 00163 pdst += dstelemsize; |
---|
| 173 | 00164 } |
---|
| 174 | 00165 pdst += dstelemsize*dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa4">getRowSkip</a>(); |
---|
| 175 | 00166 } |
---|
| 176 | 00167 pdst += dstelemsize*dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa5">getSliceSkip</a>(); |
---|
| 177 | 00168 } |
---|
| 178 | 00169 } |
---|
| 179 | 00170 }; |
---|
| 180 | 00171 |
---|
| 181 | 00172 |
---|
| 182 | 00173 <span class="comment">// float32 linear resampler, converts FLOAT32_RGB/FLOAT32_RGBA only.</span> |
---|
| 183 | 00174 <span class="comment">// avoids overhead of pixel unpack/repack function calls</span> |
---|
| 184 | <a name="l00175"></a><a class="code" href="structOgre_1_1LinearResampler__Float32.html">00175</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1LinearResampler__Float32.html">LinearResampler_Float32</a> { |
---|
| 185 | <a name="l00176"></a><a class="code" href="structOgre_1_1LinearResampler__Float32.html#Ogre_1_1LinearResampler__Float32e0">00176</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structOgre_1_1LinearResampler__Float32.html#Ogre_1_1LinearResampler__Float32e0">scale</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1PixelBox.html">PixelBox</a>& src, <span class="keyword">const</span> <a class="code" href="classOgre_1_1PixelBox.html">PixelBox</a>& dst) { |
---|
| 186 | 00177 size_t srcchannels = PixelUtil::getNumElemBytes(src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo1">format</a>) / <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>); |
---|
| 187 | 00178 size_t dstchannels = PixelUtil::getNumElemBytes(dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo1">format</a>) / <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>); |
---|
| 188 | 00179 <span class="comment">// assert(srcchannels == 3 || srcchannels == 4);</span> |
---|
| 189 | 00180 <span class="comment">// assert(dstchannels == 3 || dstchannels == 4);</span> |
---|
| 190 | 00181 |
---|
| 191 | 00182 <span class="comment">// srcdata stays at beginning, pdst is a moving pointer</span> |
---|
| 192 | 00183 <span class="keywordtype">float</span>* srcdata = (<span class="keywordtype">float</span>*)src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">data</a>; |
---|
| 193 | 00184 <span class="keywordtype">float</span>* pdst = (<span class="keywordtype">float</span>*)dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">data</a>; |
---|
| 194 | 00185 |
---|
| 195 | 00186 <span class="comment">// sx_48,sy_48,sz_48 represent current position in source</span> |
---|
| 196 | 00187 <span class="comment">// using 16/48-bit fixed precision, incremented by steps</span> |
---|
| 197 | 00188 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepx = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>(); |
---|
| 198 | 00189 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepy = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>(); |
---|
| 199 | 00190 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepz = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>(); |
---|
| 200 | 00191 |
---|
| 201 | 00192 <span class="comment">// temp is 16/16 bit fixed precision, used to adjust a source</span> |
---|
| 202 | 00193 <span class="comment">// coordinate (x, y, or z) backwards by half a pixel so that the</span> |
---|
| 203 | 00194 <span class="comment">// integer bits represent the first sample (eg, sx1) and the</span> |
---|
| 204 | 00195 <span class="comment">// fractional bits are the blend weight of the second sample</span> |
---|
| 205 | 00196 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> temp; |
---|
| 206 | 00197 |
---|
| 207 | 00198 <span class="comment">// note: ((stepz>>1) - 1) is an extra half-step increment to adjust</span> |
---|
| 208 | 00199 <span class="comment">// for the center of the destination pixel, not the top-left corner</span> |
---|
| 209 | 00200 <a class="code" href="namespaceOgre.html#a553">uint64</a> sz_48 = (stepz >> 1) - 1; |
---|
| 210 | 00201 <span class="keywordflow">for</span> (size_t z = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo8">front</a>; z < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo9">back</a>; z++, sz_48+=stepz) { |
---|
| 211 | 00202 temp = sz_48 >> 32; |
---|
| 212 | 00203 temp = (temp > 0x8000)? temp - 0x8000 : 0; |
---|
| 213 | 00204 size_t sz1 = temp >> 16; <span class="comment">// src z, sample #1</span> |
---|
| 214 | 00205 size_t sz2 = std::min(sz1+1,src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>()-1);<span class="comment">// src z, sample #2</span> |
---|
| 215 | 00206 <span class="keywordtype">float</span> szf = (temp & 0xFFFF) / 65536.f; <span class="comment">// weight of sample #2</span> |
---|
| 216 | 00207 |
---|
| 217 | 00208 <a class="code" href="namespaceOgre.html#a553">uint64</a> sy_48 = (stepy >> 1) - 1; |
---|
| 218 | 00209 <span class="keywordflow">for</span> (size_t y = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo5">top</a>; y < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo7">bottom</a>; y++, sy_48+=stepy) { |
---|
| 219 | 00210 temp = sy_48 >> 32; |
---|
| 220 | 00211 temp = (temp > 0x8000)? temp - 0x8000 : 0; |
---|
| 221 | 00212 size_t sy1 = temp >> 16; <span class="comment">// src y #1</span> |
---|
| 222 | 00213 size_t sy2 = std::min(sy1+1,src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>()-1);<span class="comment">// src y #2</span> |
---|
| 223 | 00214 <span class="keywordtype">float</span> syf = (temp & 0xFFFF) / 65536.f; <span class="comment">// weight of #2</span> |
---|
| 224 | 00215 |
---|
| 225 | 00216 <a class="code" href="namespaceOgre.html#a553">uint64</a> sx_48 = (stepx >> 1) - 1; |
---|
| 226 | 00217 <span class="keywordflow">for</span> (size_t x = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo4">left</a>; x < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo6">right</a>; x++, sx_48+=stepx) { |
---|
| 227 | 00218 temp = sx_48 >> 32; |
---|
| 228 | 00219 temp = (temp > 0x8000)? temp - 0x8000 : 0; |
---|
| 229 | 00220 size_t sx1 = temp >> 16; <span class="comment">// src x #1</span> |
---|
| 230 | 00221 size_t sx2 = std::min(sx1+1,src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>()-1);<span class="comment">// src x #2</span> |
---|
| 231 | 00222 <span class="keywordtype">float</span> sxf = (temp & 0xFFFF) / 65536.f; <span class="comment">// weight of #2</span> |
---|
| 232 | 00223 |
---|
| 233 | 00224 <span class="comment">// process R,G,B,A simultaneously for cache coherence?</span> |
---|
| 234 | 00225 <span class="keywordtype">float</span> accum[4] = { 0.0f, 0.0f, 0.0f, 0.0f }; |
---|
| 235 | 00226 |
---|
| 236 | 00227 <span class="preprocessor">#define ACCUM3(x,y,z,factor) \</span> |
---|
| 237 | 00228 <span class="preprocessor"> { float f = factor; \</span> |
---|
| 238 | 00229 <span class="preprocessor"> size_t off = (x+y*src.rowPitch+z*src.slicePitch)*srcchannels; \</span> |
---|
| 239 | 00230 <span class="preprocessor"> accum[0]+=srcdata[off+0]*f; accum[1]+=srcdata[off+1]*f; \</span> |
---|
| 240 | 00231 <span class="preprocessor"> accum[2]+=srcdata[off+2]*f; }</span> |
---|
| 241 | 00232 <span class="preprocessor"></span> |
---|
| 242 | 00233 <span class="preprocessor">#define ACCUM4(x,y,z,factor) \</span> |
---|
| 243 | 00234 <span class="preprocessor"> { float f = factor; \</span> |
---|
| 244 | 00235 <span class="preprocessor"> size_t off = (x+y*src.rowPitch+z*src.slicePitch)*srcchannels; \</span> |
---|
| 245 | 00236 <span class="preprocessor"> accum[0]+=srcdata[off+0]*f; accum[1]+=srcdata[off+1]*f; \</span> |
---|
| 246 | 00237 <span class="preprocessor"> accum[2]+=srcdata[off+2]*f; accum[3]+=srcdata[off+3]*f; }</span> |
---|
| 247 | 00238 <span class="preprocessor"></span> |
---|
| 248 | 00239 <span class="keywordflow">if</span> (srcchannels == 3 || dstchannels == 3) { |
---|
| 249 | 00240 <span class="comment">// RGB, no alpha</span> |
---|
| 250 | 00241 <a class="code" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(sx1,sy1,sz1,(1.0f-sxf)*(1.0f-syf)*(1.0f-szf)); |
---|
| 251 | 00242 <a class="code" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(sx2,sy1,sz1, sxf *(1.0f-syf)*(1.0f-szf)); |
---|
| 252 | 00243 <a class="code" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(sx1,sy2,sz1,(1.0f-sxf)* syf *(1.0f-szf)); |
---|
| 253 | 00244 <a class="code" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(sx2,sy2,sz1, sxf * syf *(1.0f-szf)); |
---|
| 254 | 00245 <a class="code" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(sx1,sy1,sz2,(1.0f-sxf)*(1.0f-syf)* szf ); |
---|
| 255 | 00246 <a class="code" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(sx2,sy1,sz2, sxf *(1.0f-syf)* szf ); |
---|
| 256 | 00247 <a class="code" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(sx1,sy2,sz2,(1.0f-sxf)* syf * szf ); |
---|
| 257 | 00248 <a class="code" href="OgreImageResampler_8h.html#a1">ACCUM3</a>(sx2,sy2,sz2, sxf * syf * szf ); |
---|
| 258 | 00249 accum[3] = 1.0f; |
---|
| 259 | 00250 } <span class="keywordflow">else</span> { |
---|
| 260 | 00251 <span class="comment">// RGBA</span> |
---|
| 261 | 00252 <a class="code" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(sx1,sy1,sz1,(1.0f-sxf)*(1.0f-syf)*(1.0f-szf)); |
---|
| 262 | 00253 <a class="code" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(sx2,sy1,sz1, sxf *(1.0f-syf)*(1.0f-szf)); |
---|
| 263 | 00254 <a class="code" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(sx1,sy2,sz1,(1.0f-sxf)* syf *(1.0f-szf)); |
---|
| 264 | 00255 <a class="code" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(sx2,sy2,sz1, sxf * syf *(1.0f-szf)); |
---|
| 265 | 00256 <a class="code" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(sx1,sy1,sz2,(1.0f-sxf)*(1.0f-syf)* szf ); |
---|
| 266 | 00257 <a class="code" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(sx2,sy1,sz2, sxf *(1.0f-syf)* szf ); |
---|
| 267 | 00258 <a class="code" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(sx1,sy2,sz2,(1.0f-sxf)* syf * szf ); |
---|
| 268 | 00259 <a class="code" href="OgreImageResampler_8h.html#a2">ACCUM4</a>(sx2,sy2,sz2, sxf * syf * szf ); |
---|
| 269 | 00260 } |
---|
| 270 | 00261 |
---|
| 271 | 00262 memcpy(pdst, accum, <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)*dstchannels); |
---|
| 272 | 00263 |
---|
| 273 | 00264 <span class="preprocessor">#undef ACCUM3</span> |
---|
| 274 | 00265 <span class="preprocessor"></span><span class="preprocessor">#undef ACCUM4</span> |
---|
| 275 | 00266 <span class="preprocessor"></span> |
---|
| 276 | 00267 pdst += dstchannels; |
---|
| 277 | 00268 } |
---|
| 278 | 00269 pdst += dstchannels*dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa4">getRowSkip</a>(); |
---|
| 279 | 00270 } |
---|
| 280 | 00271 pdst += dstchannels*dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa5">getSliceSkip</a>(); |
---|
| 281 | 00272 } |
---|
| 282 | 00273 } |
---|
| 283 | 00274 }; |
---|
| 284 | 00275 |
---|
| 285 | 00276 |
---|
| 286 | 00277 |
---|
| 287 | 00278 <span class="comment">// byte linear resampler, does not do any format conversions.</span> |
---|
| 288 | 00279 <span class="comment">// only handles pixel formats that use 1 byte per color channel.</span> |
---|
| 289 | 00280 <span class="comment">// 2D only; punts 3D pixelboxes to default LinearResampler (slow).</span> |
---|
| 290 | 00281 <span class="comment">// templated on bytes-per-pixel to allow compiler optimizations, such</span> |
---|
| 291 | 00282 <span class="comment">// as unrolling loops and replacing multiplies with bitshifts</span> |
---|
| 292 | <a name="l00283"></a><a class="code" href="structOgre_1_1LinearResampler__Byte.html">00283</a> <span class="keyword">template</span><<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channels> <span class="keyword">struct </span><a class="code" href="structOgre_1_1LinearResampler__Byte.html">LinearResampler_Byte</a> { |
---|
| 293 | <a name="l00284"></a><a class="code" href="structOgre_1_1LinearResampler__Byte.html#Ogre_1_1LinearResampler__Bytee0">00284</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="structOgre_1_1LinearResampler__Byte.html#Ogre_1_1LinearResampler__Bytee0">scale</a>(<span class="keyword">const</span> <a class="code" href="classOgre_1_1PixelBox.html">PixelBox</a>& src, <span class="keyword">const</span> <a class="code" href="classOgre_1_1PixelBox.html">PixelBox</a>& dst) { |
---|
| 294 | 00285 <span class="comment">// assert(src.format == dst.format);</span> |
---|
| 295 | 00286 |
---|
| 296 | 00287 <span class="comment">// only optimized for 2D</span> |
---|
| 297 | 00288 <span class="keywordflow">if</span> (src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>() > 1 || dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa12">getDepth</a>() > 1) { |
---|
| 298 | 00289 LinearResampler::scale(src, dst); |
---|
| 299 | 00290 <span class="keywordflow">return</span>; |
---|
| 300 | 00291 } |
---|
| 301 | 00292 |
---|
| 302 | 00293 <span class="comment">// srcdata stays at beginning of slice, pdst is a moving pointer</span> |
---|
| 303 | 00294 <a class="code" href="namespaceOgre.html#a421">uchar</a>* srcdata = (<a class="code" href="namespaceOgre.html#a421">uchar</a>*)src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">data</a>; |
---|
| 304 | 00295 <a class="code" href="namespaceOgre.html#a421">uchar</a>* pdst = (<a class="code" href="namespaceOgre.html#a421">uchar</a>*)dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">data</a>; |
---|
| 305 | 00296 |
---|
| 306 | 00297 <span class="comment">// sx_48,sy_48 represent current position in source</span> |
---|
| 307 | 00298 <span class="comment">// using 16/48-bit fixed precision, incremented by steps</span> |
---|
| 308 | 00299 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepx = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa10">getWidth</a>(); |
---|
| 309 | 00300 <a class="code" href="namespaceOgre.html#a553">uint64</a> stepy = ((<a class="code" href="namespaceOgre.html#a553">uint64</a>)src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>() << 48) / dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxa11">getHeight</a>(); |
---|
| 310 | 00301 |
---|
| 311 | 00302 <span class="comment">// bottom 28 bits of temp are 16/12 bit fixed precision, used to</span> |
---|
| 312 | 00303 <span class="comment">// adjust a source coordinate backwards by half a pixel so that the</span> |
---|
| 313 | 00304 <span class="comment">// integer bits represent the first sample (eg, sx1) and the</span> |
---|
| 314 | 00305 <span class="comment">// fractional bits are the blend weight of the second sample</span> |
---|
| 315 | 00306 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> temp; |
---|
| 316 | 00307 |
---|
| 317 | 00308 <a class="code" href="namespaceOgre.html#a553">uint64</a> sy_48 = (stepy >> 1) - 1; |
---|
| 318 | 00309 <span class="keywordflow">for</span> (size_t y = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo5">top</a>; y < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo7">bottom</a>; y++, sy_48+=stepy) { |
---|
| 319 | 00310 temp = sy_48 >> 36; |
---|
| 320 | 00311 temp = (temp > 0x800)? temp - 0x800: 0; |
---|
| 321 | 00312 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> syf = temp & 0xFFF; |
---|
| 322 | 00313 size_t sy1 = temp >> 12; |
---|
| 323 | 00314 size_t sy2 = std::min(sy1+1, src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo7">bottom</a>-src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo5">top</a>-1); |
---|
| 324 | 00315 size_t syoff1 = sy1 * src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo2">rowPitch</a>; |
---|
| 325 | 00316 size_t syoff2 = sy2 * src.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo2">rowPitch</a>; |
---|
| 326 | 00317 |
---|
| 327 | 00318 <a class="code" href="namespaceOgre.html#a553">uint64</a> sx_48 = (stepx >> 1) - 1; |
---|
| 328 | 00319 <span class="keywordflow">for</span> (size_t x = dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo4">left</a>; x < dst.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo6">right</a>; x++, sx_48+=stepx) { |
---|
| 329 | 00320 temp = sx_48 >> 36; |
---|
| 330 | 00321 temp = (temp > 0x800)? temp - 0x800 : 0; |
---|
| 331 | 00322 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sxf = temp & 0xFFF; |
---|
| 332 | 00323 size_t sx1 = temp >> 12; |
---|
| 333 | 00324 size_t sx2 = std::min(sx1+1, src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo6">right</a>-src.<a class="code" href="structOgre_1_1Box.html#Ogre_1_1PixelBoxo4">left</a>-1); |
---|
| 334 | 00325 |
---|
| 335 | 00326 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sxfsyf = sxf*syf; |
---|
| 336 | 00327 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> k = 0; k < channels; k++) { |
---|
| 337 | 00328 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> accum = |
---|
| 338 | 00329 srcdata[(sx1 + syoff1)*channels+k]*(0x1000000-(sxf<<12)-(syf<<12)+sxfsyf) + |
---|
| 339 | 00330 srcdata[(sx2 + syoff1)*channels+k]*((sxf<<12)-sxfsyf) + |
---|
| 340 | 00331 srcdata[(sx1 + syoff2)*channels+k]*((syf<<12)-sxfsyf) + |
---|
| 341 | 00332 srcdata[(sx2 + syoff2)*channels+k]*sxfsyf; |
---|
| 342 | 00333 <span class="comment">// accum is computed using 8/24-bit fixed-point math</span> |
---|
| 343 | 00334 <span class="comment">// (maximum is 0xFF000000; rounding will not cause overflow)</span> |
---|
| 344 | 00335 *pdst++ = (accum + 0x800000) >> 24; |
---|
| 345 | 00336 } |
---|
| 346 | 00337 } |
---|
| 347 | 00338 pdst += channels*dst.<a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa4">getRowSkip</a>(); |
---|
| 348 | 00339 } |
---|
| 349 | 00340 } |
---|
| 350 | 00341 }; |
---|
| 351 | 00342 |
---|
| 352 | 00343 } |
---|
| 353 | 00344 |
---|
| 354 | 00345 <span class="preprocessor">#endif</span> |
---|
| 355 | </pre></div><hr> |
---|
| 356 | <p> |
---|
| 357 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
| 358 | <!--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/> |
---|
| 359 | 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/> |
---|
| 360 | <!--/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#"> |
---|
| 361 | <Work rdf:about=""> |
---|
| 362 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
| 363 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
| 364 | </Work> |
---|
| 365 | <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> --> |
---|
| 366 | |
---|
| 367 | Last modified Sun Feb 12 12:59:46 2006 |
---|
| 368 | </p> |
---|
| 369 | </body> |
---|
| 370 | </html> |
---|