99 lines
7.8 KiB
HTML
99 lines
7.8 KiB
HTML
<!-- Copyright 2008 Lubomir Bourdev and Hailin Jin
|
|
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE_1_0.txt or copy at
|
|
http://www.boost.org/LICENSE_1_0.txt)
|
|
-->
|
|
|
|
<!--
|
|
Copyright 2005-2007 Adobe Systems Incorporated
|
|
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
|
|
or a copy at http://stlab.adobe.com/licenses.html)
|
|
|
|
Some files are held under additional license.
|
|
Please see "http://stlab.adobe.com/licenses.html" for more information.
|
|
-->
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
|
|
<head>
|
|
<TITLE>Generic Image Library: rgb.hpp Source File</TITLE>
|
|
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=ISO-8859-1"/>
|
|
<LINK TYPE="text/css" REL="stylesheet" HREF="adobe_source.css"/>
|
|
</head>
|
|
<body>
|
|
<table border="0" cellspacing="0" cellpadding="0" style='width: 100%; margin: 0; padding: 0'><tr>
|
|
<td width="100%" valign="top" style='padding-left: 10px; padding-right: 10px; padding-bottom: 10px'>
|
|
<div class="qindex"><a class="qindex" href="index.html">Modules</a>
|
|
| <a class="qindex" href="classes.html">Alphabetical List</a>
|
|
| <a class="qindex" href="annotated.html">Class List</a>
|
|
| <a class="qindex" href="dirs.html">Directories</a>
|
|
| <a class="qindex" href="files.html">File List</a>
|
|
| <a class="qindex" href="../index.html">GIL Home Page</a>
|
|
</div>
|
|
<!-- End Header -->
|
|
<!-- Generated by Doxygen 1.5.6 -->
|
|
<div class="navpath"><a class="el" href="g_i_l_0076.html">boost</a> » <a class="el" href="g_i_l_0079.html">gil</a>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>rgb.hpp</h1><a href="rgb_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>
|
|
<a name="l00002"></a>00002 <span class="comment"> Copyright 2005-2007 Adobe Systems Incorporated</span>
|
|
<a name="l00003"></a>00003 <span class="comment"> </span>
|
|
<a name="l00004"></a>00004 <span class="comment"> Use, modification and distribution are subject to the Boost Software License,</span>
|
|
<a name="l00005"></a>00005 <span class="comment"> Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at</span>
|
|
<a name="l00006"></a>00006 <span class="comment"> http://www.boost.org/LICENSE_1_0.txt).</span>
|
|
<a name="l00007"></a>00007 <span class="comment"></span>
|
|
<a name="l00008"></a>00008 <span class="comment"> See http://opensource.adobe.com/gil for most recent version including documentation.</span>
|
|
<a name="l00009"></a>00009 <span class="comment">*/</span>
|
|
<a name="l00010"></a>00010
|
|
<a name="l00011"></a>00011 <span class="comment">/*************************************************************************************************/</span>
|
|
<a name="l00012"></a>00012
|
|
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef GIL_RGB_H</span>
|
|
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define GIL_RGB_H</span>
|
|
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
|
<a name="l00023"></a>00023
|
|
<a name="l00024"></a>00024 <span class="preprocessor">#include <cstddef></span>
|
|
<a name="l00025"></a>00025 <span class="preprocessor">#include <boost/mpl/range_c.hpp></span>
|
|
<a name="l00026"></a>00026 <span class="preprocessor">#include <boost/mpl/vector_c.hpp></span>
|
|
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="g_i_l_0094.html" title="GIL configuration file.">gil_config.hpp</a>"</span>
|
|
<a name="l00028"></a>00028 <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>
|
|
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="g_i_l_0247.html" title="planar pixel pointer class">planar_pixel_iterator.hpp</a>"</span>
|
|
<a name="l00030"></a>00030
|
|
<a name="l00031"></a>00031 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>gil {
|
|
<a name="l00032"></a>00032
|
|
<a name="l00035"></a>00035
|
|
<a name="l00037"></a><a class="code" href="g_i_l_0618.html">00037</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0618.html" title="Red.">red_t</a> {};
|
|
<a name="l00038"></a>00038
|
|
<a name="l00040"></a><a class="code" href="g_i_l_0537.html">00040</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0537.html" title="Green.">green_t</a> {};
|
|
<a name="l00041"></a>00041
|
|
<a name="l00043"></a><a class="code" href="g_i_l_0405.html">00043</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0405.html" title="Blue.">blue_t</a> {};
|
|
<a name="l00045"></a>00045
|
|
<a name="l00047"></a>00047 <span class="keyword">typedef</span> mpl::vector3<red_t,green_t,blue_t> rgb_t;
|
|
<a name="l00048"></a>00048
|
|
<a name="l00050"></a>00050 <span class="keyword">typedef</span> <a class="code" href="g_i_l_0567.html" title="Represents a color space and ordering of channels in memory.">layout<rgb_t></a> <a class="code" href="g_i_l_0567.html" title="Represents a color space and ordering of channels in memory.">rgb_layout_t</a>;
|
|
<a name="l00052"></a>00052 <span class="keyword">typedef</span> <a class="code" href="g_i_l_0567.html" title="Represents a color space and ordering of channels in memory.">layout<rgb_t, mpl::vector3_c<int,2,1,0></a> > <a class="code" href="g_i_l_0567.html" title="Represents a color space and ordering of channels in memory.">bgr_layout_t</a>;
|
|
<a name="l00053"></a>00053
|
|
<a name="l00056"></a>00056 <span class="keyword">template</span> <<span class="keyword">typename</span> IC>
|
|
<a name="l00057"></a>00057 <span class="keyword">inline</span>
|
|
<a name="l00058"></a>00058 <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<planar_pixel_iterator<IC,rgb_t></a> >::view_t
|
|
<a name="l00059"></a><a class="code" href="g_i_l_0140.html#g294f43780e7b88f43b91fdd6346cb51b">00059</a> <a class="code" href="g_i_l_0140.html#g294f43780e7b88f43b91fdd6346cb51b" title="from raw RGB planar data">planar_rgb_view</a>(std::size_t width, std::size_t height,
|
|
<a name="l00060"></a>00060 IC r, IC g, IC b,
|
|
<a name="l00061"></a>00061 std::ptrdiff_t rowsize_in_bytes) {
|
|
<a name="l00062"></a>00062 <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<planar_pixel_iterator<IC,rgb_t></a> >::view_t RView;
|
|
<a name="l00063"></a>00063 <span class="keywordflow">return</span> RView(width, height,
|
|
<a name="l00064"></a>00064 <span class="keyword">typename</span> RView::locator(<a class="code" href="g_i_l_0609.html" title="An iterator over planar pixels. Models HomogeneousColorBaseConcept, PixelIteratorConcept...">planar_pixel_iterator<IC,rgb_t></a>(r,g,b),
|
|
<a name="l00065"></a>00065 rowsize_in_bytes));
|
|
<a name="l00066"></a>00066 }
|
|
<a name="l00067"></a>00067
|
|
<a name="l00068"></a>00068 } } <span class="comment">// namespace boost::gil</span>
|
|
<a name="l00069"></a>00069
|
|
<a name="l00070"></a>00070 <span class="preprocessor">#endif</span>
|
|
</pre></div></div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Sat May 2 13:50:15 2009 for Generic Image Library by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
|
</body>
|
|
</html>
|