mirror of
https://github.com/boostorg/gil.git
synced 2026-01-26 06:32:16 +00:00
127 lines
13 KiB
HTML
127 lines
13 KiB
HTML
<!-- HTML header for doxygen 1.8.13-->
|
|
<!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">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Generic Image Library: rgb.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen-boost.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div class="boost-header">
|
|
<table border="0" cellpadding="7" cellspacing="0" width="100%" summary="header">
|
|
<tr>
|
|
<td valign="top" width="300">
|
|
<h3><a href="../index.html"><img alt="Boost GIL" src="../_static/gil.png" border="0"></a></h3>
|
|
</td>
|
|
<td ><h1 align="center"><a href="../index.html"></a></h1></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<hr/>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',false,false,'search.php','Search');
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_1878a3f4746a95c6aad317458cc7ef80.html">boost</a></li><li class="navelem"><a class="el" href="dir_df4750f408086f9b9c1b5ee4251365ff.html">gil</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">rgb.hpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// Copyright 2005-2007 Adobe Systems Incorporated</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// Distributed under the Boost Software License, Version 1.0</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment">// See accompanying file LICENSE_1_0.txt or copy at</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment">// http://www.boost.org/LICENSE_1_0.txt</span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#ifndef BOOST_GIL_RGB_HPP</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#define BOOST_GIL_RGB_HPP</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include <boost/gil/metafunctions.hpp></span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include <boost/gil/planar_pixel_iterator.hpp></span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include <boost/gil/detail/mp11.hpp></span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <cstddef></span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <type_traits></span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceboost.html">boost</a> { <span class="keyword">namespace </span>gil {</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structboost_1_1gil_1_1red__t.html"> 24</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structboost_1_1gil_1_1red__t.html">red_t</a> {};</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="structboost_1_1gil_1_1green__t.html"> 27</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structboost_1_1gil_1_1green__t.html">green_t</a> {};</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structboost_1_1gil_1_1blue__t.html"> 30</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structboost_1_1gil_1_1blue__t.html">blue_t</a> {};</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">using </span>rgb_t = mp11::mp_list<red_t, green_t, blue_t>;</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">using </span><a class="code hl_struct" href="structboost_1_1gil_1_1layout.html">rgb_layout_t</a> = <a class="code hl_struct" href="structboost_1_1gil_1_1layout.html">layout<rgb_t></a>;</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">using </span><a class="code hl_struct" href="structboost_1_1gil_1_1layout.html">bgr_layout_t</a> = <a class="code hl_struct" href="structboost_1_1gil_1_1layout.html">layout<rgb_t, mp11::mp_list_c<int, 2, 1, 0></a>>;</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keyword">template</span> <<span class="keyword">typename</span> IC></div>
|
|
<div class="foldopen" id="foldopen00045" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="group___image_view_constructors.html#ga93957db5fbf3c5a2bd23cf8af7b4f17a"> 45</a></span><span class="keyword">inline</span> <span class="keyword">auto</span> <a class="code hl_function" href="group___image_view_constructors.html#ga93957db5fbf3c5a2bd23cf8af7b4f17a">planar_rgb_view</a>(</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> std::size_t width, std::size_t height,</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> IC r, IC g, IC b,</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> std::ptrdiff_t rowsize_in_bytes)</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> -> <span class="keyword">typename</span> <a class="code hl_struct" href="structboost_1_1gil_1_1type__from__x__iterator.html">type_from_x_iterator<planar_pixel_iterator<IC, rgb_t></a> >::view_t</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>{</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">using </span>view_t = <span class="keyword">typename</span> <a class="code hl_struct" href="structboost_1_1gil_1_1type__from__x__iterator.html">type_from_x_iterator<planar_pixel_iterator<IC, rgb_t></a>>::view_t;</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">return</span> view_t(</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> width, height,</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">typename</span> view_t::locator(</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_struct" href="structboost_1_1gil_1_1planar__pixel__iterator.html">planar_pixel_iterator<IC, rgb_t></a>(r, g, b),</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> rowsize_in_bytes));</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span>}} <span class="comment">// namespace boost::gil</span></div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="agroup___image_view_constructors_html_ga93957db5fbf3c5a2bd23cf8af7b4f17a"><div class="ttname"><a href="group___image_view_constructors.html#ga93957db5fbf3c5a2bd23cf8af7b4f17a">boost::gil::planar_rgb_view</a></div><div class="ttdeci">auto planar_rgb_view(std::size_t width, std::size_t height, IC r, IC g, IC b, std::ptrdiff_t rowsize_in_bytes) -> typename type_from_x_iterator< planar_pixel_iterator< IC, rgb_t > >::view_t</div><div class="ttdoc">from raw RGB planar data</div><div class="ttdef"><b>Definition</b> rgb.hpp:45</div></div>
|
|
<div class="ttc" id="anamespaceboost_html"><div class="ttname"><a href="namespaceboost.html">boost</a></div><div class="ttdoc">defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE)</div><div class="ttdef"><b>Definition</b> algorithm.hpp:36</div></div>
|
|
<div class="ttc" id="astructboost_1_1gil_1_1blue__t_html"><div class="ttname"><a href="structboost_1_1gil_1_1blue__t.html">boost::gil::blue_t</a></div><div class="ttdoc">Blue.</div><div class="ttdef"><b>Definition</b> rgb.hpp:30</div></div>
|
|
<div class="ttc" id="astructboost_1_1gil_1_1green__t_html"><div class="ttname"><a href="structboost_1_1gil_1_1green__t.html">boost::gil::green_t</a></div><div class="ttdoc">Green.</div><div class="ttdef"><b>Definition</b> rgb.hpp:27</div></div>
|
|
<div class="ttc" id="astructboost_1_1gil_1_1layout_html"><div class="ttname"><a href="structboost_1_1gil_1_1layout.html">boost::gil::layout</a></div><div class="ttdoc">Represents a color space and ordering of channels in memory.</div><div class="ttdef"><b>Definition</b> utilities.hpp:268</div></div>
|
|
<div class="ttc" id="astructboost_1_1gil_1_1planar__pixel__iterator_html"><div class="ttname"><a href="structboost_1_1gil_1_1planar__pixel__iterator.html">boost::gil::planar_pixel_iterator</a></div><div class="ttdoc">An iterator over planar pixels. Models HomogeneousColorBaseConcept, PixelIteratorConcept,...</div><div class="ttdef"><b>Definition</b> planar_pixel_iterator.hpp:58</div></div>
|
|
<div class="ttc" id="astructboost_1_1gil_1_1red__t_html"><div class="ttname"><a href="structboost_1_1gil_1_1red__t.html">boost::gil::red_t</a></div><div class="ttdoc">Red.</div><div class="ttdef"><b>Definition</b> rgb.hpp:24</div></div>
|
|
<div class="ttc" id="astructboost_1_1gil_1_1type__from__x__iterator_html"><div class="ttname"><a href="structboost_1_1gil_1_1type__from__x__iterator.html">boost::gil::type_from_x_iterator</a></div><div class="ttdoc">Given a pixel iterator defining access to pixels along a row, returns the types of the corresponding ...</div><div class="ttdef"><b>Definition</b> metafunctions.hpp:303</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- HTML footer for doxygen 1.8.13-->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/>
|
|
<address class="footer">
|
|
<small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">doxygen</a> 1.9.8
|
|
</small>
|
|
</address>
|
|
</body>
|
|
</html>
|