PageRenderTime 36ms CodeModel.GetById 13ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 1ms

/Src/Dependencies/Boost/libs/gil/doc/html/g_i_l_0074.html

http://hadesmem.googlecode.com/
HTML | 119 lines | 100 code | 3 blank | 16 comment | 0 complexity | 7c0465ab67cc9f15d83ce11a09f1cd24 MD5 | raw file
  1<!-- Copyright 2008 Lubomir Bourdev and Hailin Jin
  2
  3     Distributed under the Boost Software License, Version 1.0.
  4     (See accompanying file LICENSE_1_0.txt or copy at
  5     http://www.boost.org/LICENSE_1_0.txt)
  6  -->
  7
  8<!--
  9    Copyright 2005-2007 Adobe Systems Incorporated
 10    Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
 11    or a copy at http://stlab.adobe.com/licenses.html)
 12
 13    Some files are held under additional license.
 14    Please see "http://stlab.adobe.com/licenses.html" for more information.
 15-->
 16
 17<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 18        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 19<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 20
 21<head>
 22    <TITLE>Generic Image Library: device_n.hpp Source File</TITLE>
 23    <META HTTP-EQUIV="content-type" CONTENT="text/html;charset=ISO-8859-1"/>
 24    <LINK TYPE="text/css" REL="stylesheet" HREF="adobe_source.css"/>
 25</head>
 26<body>
 27<table border="0" cellspacing="0" cellpadding="0" style='width: 100%; margin: 0; padding: 0'><tr>
 28<td width="100%" valign="top" style='padding-left: 10px; padding-right: 10px; padding-bottom: 10px'>
 29<div class="qindex"><a class="qindex" href="index.html">Modules</a> 
 30                  | <a class="qindex" href="classes.html">Alphabetical List</a> 
 31                  | <a class="qindex" href="annotated.html">Class List</a> 
 32                  | <a class="qindex" href="dirs.html">Directories</a> 
 33                  | <a class="qindex" href="files.html">File List</a> 
 34                  | <a class="qindex" href="../index.html">GIL Home Page</a> 
 35</div>
 36<!-- End Header -->
 37<!-- Generated by Doxygen 1.5.6 -->
 38  <div class="navpath"><a class="el" href="g_i_l_0076.html">boost</a>&nbsp;&raquo&nbsp;<a class="el" href="g_i_l_0079.html">gil</a>
 39  </div>
 40<div class="contents">
 41<h1>device_n.hpp</h1><a href="device__n_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
 42<a name="l00002"></a>00002 <span class="comment">    Copyright 2005-2007 Adobe Systems Incorporated</span>
 43<a name="l00003"></a>00003 <span class="comment">   </span>
 44<a name="l00004"></a>00004 <span class="comment">    Use, modification and distribution are subject to the Boost Software License,</span>
 45<a name="l00005"></a>00005 <span class="comment">    Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at</span>
 46<a name="l00006"></a>00006 <span class="comment">    http://www.boost.org/LICENSE_1_0.txt).</span>
 47<a name="l00007"></a>00007 <span class="comment"></span>
 48<a name="l00008"></a>00008 <span class="comment">    See http://stlab.adobe.com/gil for most recent version including documentation.</span>
 49<a name="l00009"></a>00009 <span class="comment">*/</span>
 50<a name="l00010"></a>00010 <span class="comment">/*************************************************************************************************/</span>
 51<a name="l00011"></a>00011 
 52<a name="l00012"></a>00012 <span class="preprocessor">#ifndef GIL_DEVICE_N_H</span>
 53<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define GIL_DEVICE_N_H</span>
 54<a name="l00014"></a>00014 <span class="preprocessor"></span>
 55<a name="l00015"></a>00015 
 56<a name="l00023"></a>00023 
 57<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;cstddef&gt;</span>
 58<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="g_i_l_0094.html" title="GIL configuration file.">gil_config.hpp</a>"</span>
 59<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="utilities_8hpp.html" title="Various utilities not specific to the image library. Some are non-standard STL extensions...">utilities.hpp</a>"</span>
 60<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="g_i_l_0238.html" title="metafunctions that construct types or return type properties">metafunctions.hpp</a>"</span>
 61<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;boost/type_traits.hpp&gt;</span>
 62<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;boost/mpl/range_c.hpp&gt;</span>
 63<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;boost/mpl/vector_c.hpp&gt;</span>
 64<a name="l00031"></a>00031 
 65<a name="l00032"></a>00032 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>gil {
 66<a name="l00033"></a>00033 
 67<a name="l00036"></a><a class="code" href="g_i_l_0523.html">00036</a> <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> N&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0523.html" title="unnamed color">devicen_color_t</a> {};
 68<a name="l00037"></a>00037 
 69<a name="l00038"></a>00038 <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> N&gt; <span class="keyword">struct </span>devicen_t;
 70<a name="l00039"></a>00039 
 71<a name="l00042"></a><a class="code" href="g_i_l_0526.html">00042</a> <span class="keyword">template</span> &lt;&gt; <span class="keyword">struct </span>devicen_t&lt;1&gt; : <span class="keyword">public</span> mpl::vector1&lt;devicen_color_t&lt;0&gt; &gt; {};
 72<a name="l00043"></a>00043 
 73<a name="l00046"></a><a class="code" href="g_i_l_0527.html">00046</a> <span class="keyword">template</span> &lt;&gt; <span class="keyword">struct </span>devicen_t&lt;2&gt; : <span class="keyword">public</span> mpl::vector2&lt;devicen_color_t&lt;0&gt;, devicen_color_t&lt;1&gt; &gt; {};
 74<a name="l00047"></a>00047 
 75<a name="l00050"></a><a class="code" href="g_i_l_0528.html">00050</a> <span class="keyword">template</span> &lt;&gt; <span class="keyword">struct </span>devicen_t&lt;3&gt; : <span class="keyword">public</span> mpl::vector3&lt;devicen_color_t&lt;0&gt;, devicen_color_t&lt;1&gt;, devicen_color_t&lt;2&gt; &gt; {};
 76<a name="l00051"></a>00051 
 77<a name="l00054"></a><a class="code" href="g_i_l_0529.html">00054</a> <span class="keyword">template</span> &lt;&gt; <span class="keyword">struct </span>devicen_t&lt;4&gt; : <span class="keyword">public</span> mpl::vector4&lt;devicen_color_t&lt;0&gt;, devicen_color_t&lt;1&gt;, devicen_color_t&lt;2&gt;, devicen_color_t&lt;3&gt; &gt; {};
 78<a name="l00055"></a>00055 
 79<a name="l00058"></a><a class="code" href="g_i_l_0530.html">00058</a> <span class="keyword">template</span> &lt;&gt; <span class="keyword">struct </span>devicen_t&lt;5&gt; : <span class="keyword">public</span> mpl::vector5&lt;devicen_color_t&lt;0&gt;, devicen_color_t&lt;1&gt;, devicen_color_t&lt;2&gt;, devicen_color_t&lt;3&gt;, devicen_color_t&lt;4&gt; &gt; {};
 80<a name="l00059"></a>00059 
 81<a name="l00062"></a><a class="code" href="g_i_l_0525.html">00062</a> <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> N&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0525.html" title="unnamed color layout of up to five channels">devicen_layout_t</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0567.html" title="Represents a color space and ordering of channels in memory.">layout</a>&lt;devicen_t&lt;N&gt; &gt; {};
 82<a name="l00063"></a>00063 
 83<a name="l00066"></a>00066 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> IC&gt;
 84<a name="l00067"></a>00067 <span class="keyword">inline</span> <span class="keyword">typename</span> <a class="code" href="g_i_l_0627.html" title="Given a pixel iterator defining access to pixels along a row, returns the types of...">type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,devicen_t&lt;2&gt;</a> &gt; &gt;::view_t
 85<a name="l00068"></a><a class="code" href="g_i_l_0140.html#g396eac21a15c854a84f1b0c95b4dfa9e">00068</a> <a class="code" href="g_i_l_0140.html#gb17b735284ce8c50aa52a7894552fc09" title="from 5-channel planar data">planar_devicen_view</a>(std::size_t width, std::size_t height, IC c0, IC c1, std::ptrdiff_t rowsize_in_bytes) {
 86<a name="l00069"></a>00069     <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="g_i_l_0627.html" title="Given a pixel iterator defining access to pixels along a row, returns the types of...">type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,devicen_t&lt;2&gt;</a> &gt; &gt;::view_t view_t;
 87<a name="l00070"></a>00070     <span class="keywordflow">return</span> view_t(width, height, <span class="keyword">typename</span> view_t::locator(<span class="keyword">typename</span> view_t::x_iterator(c0,c1), rowsize_in_bytes));
 88<a name="l00071"></a>00071 }
 89<a name="l00072"></a>00072 
 90<a name="l00075"></a>00075 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> IC&gt;
 91<a name="l00076"></a>00076 <span class="keyword">inline</span> <span class="keyword">typename</span> type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,devicen_t&lt;3&gt; &gt; &gt;::view_t
 92<a name="l00077"></a><a class="code" href="g_i_l_0140.html#g740dfd0d6d31bea0fee236f27a77259e">00077</a> <a class="code" href="g_i_l_0140.html#gb17b735284ce8c50aa52a7894552fc09" title="from 5-channel planar data">planar_devicen_view</a>(std::size_t width, std::size_t height, IC c0, IC c1, IC c2, std::ptrdiff_t rowsize_in_bytes) {
 93<a name="l00078"></a>00078     <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="g_i_l_0627.html" title="Given a pixel iterator defining access to pixels along a row, returns the types of...">type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,devicen_t&lt;3&gt;</a> &gt; &gt;::view_t view_t;
 94<a name="l00079"></a>00079     <span class="keywordflow">return</span> view_t(width, height, <span class="keyword">typename</span> view_t::locator(<span class="keyword">typename</span> view_t::x_iterator(c0,c1,c2), rowsize_in_bytes));
 95<a name="l00080"></a>00080 }
 96<a name="l00081"></a>00081 
 97<a name="l00084"></a>00084 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> IC&gt;
 98<a name="l00085"></a>00085 <span class="keyword">inline</span> <span class="keyword">typename</span> type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,devicen_t&lt;4&gt; &gt; &gt;::view_t
 99<a name="l00086"></a><a class="code" href="g_i_l_0140.html#ga3cb39cdbfbaaf0ee9b77bdae658b62d">00086</a> <a class="code" href="g_i_l_0140.html#gb17b735284ce8c50aa52a7894552fc09" title="from 5-channel planar data">planar_devicen_view</a>(std::size_t width, std::size_t height, IC c0, IC c1, IC c2, IC c3, std::ptrdiff_t rowsize_in_bytes) {
100<a name="l00087"></a>00087     <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="g_i_l_0627.html" title="Given a pixel iterator defining access to pixels along a row, returns the types of...">type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,devicen_t&lt;4&gt;</a> &gt; &gt;::view_t view_t;
101<a name="l00088"></a>00088     <span class="keywordflow">return</span> view_t(width, height, <span class="keyword">typename</span> view_t::locator(<span class="keyword">typename</span> view_t::x_iterator(c0,c1,c2,c3), rowsize_in_bytes));
102<a name="l00089"></a>00089 }
103<a name="l00090"></a>00090 
104<a name="l00093"></a>00093 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> IC&gt;
105<a name="l00094"></a>00094 <span class="keyword">inline</span> <span class="keyword">typename</span> type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,devicen_t&lt;5&gt; &gt; &gt;::view_t
106<a name="l00095"></a><a class="code" href="g_i_l_0140.html#gb17b735284ce8c50aa52a7894552fc09">00095</a> <a class="code" href="g_i_l_0140.html#gb17b735284ce8c50aa52a7894552fc09" title="from 5-channel planar data">planar_devicen_view</a>(std::size_t width, std::size_t height, IC c0, IC c1, IC c2, IC c3, IC c4, std::ptrdiff_t rowsize_in_bytes) {
107<a name="l00096"></a>00096     <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="g_i_l_0627.html" title="Given a pixel iterator defining access to pixels along a row, returns the types of...">type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,devicen_t&lt;5&gt;</a> &gt; &gt;::view_t view_t;
108<a name="l00097"></a>00097     <span class="keywordflow">return</span> view_t(width, height, <span class="keyword">typename</span> view_t::locator(<span class="keyword">typename</span> view_t::x_iterator(c0,c1,c2,c3,c4), rowsize_in_bytes));
109<a name="l00098"></a>00098 }
110<a name="l00099"></a>00099 
111<a name="l00100"></a>00100 } }  <span class="comment">// namespace boost::gil</span>
112<a name="l00101"></a>00101 
113<a name="l00102"></a>00102 <span class="preprocessor">#endif</span>
114</pre></div></div>
115<hr size="1"><address style="text-align: right;"><small>Generated on Sat May 2 13:50:13 2009 for Generic Image Library by&nbsp;
116<a href="http://www.doxygen.org/index.html">
117<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
118</body>
119</html>