mirror of
https://github.com/boostorg/gil.git
synced 2026-01-25 06:12:22 +00:00
122 lines
13 KiB
HTML
122 lines
13 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>rgba.hpp Source File</TITLE>
|
|
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=ISO-8859-1"/>
|
|
<link type="text/css" rel="stylesheet" href="../_static/style.css">
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="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/>
|
|
<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>
|
|
</div>
|
|
<!-- End Header -->
|
|
<!-- Generated by Doxygen 1.8.6 -->
|
|
<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">rgba.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="rgba_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Copyright 2005-2007 Adobe Systems Incorporated</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> </span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Use, modification and distribution are subject to the Boost Software License,</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at</span></div>
|
|
<div class="line"><a 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 name="l00007"></a><span class="lineno"> 7</span> <span class="comment"></span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> See http://opensource.adobe.com/gil for most recent version including documentation.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">/*************************************************************************************************/</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#ifndef GIL_RGBA_H</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor"></span><span class="preprocessor">#define GIL_RGBA_H</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <cstddef></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="gil__config_8hpp.html">gil_config.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <boost/mpl/contains.hpp></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="rgb_8hpp.html">rgb.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="planar__pixel__iterator_8hpp.html">planar_pixel_iterator.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>gil {</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structboost_1_1gil_1_1alpha__t.html"> 33</a></span> <span class="keyword">struct </span><a class="code" href="structboost_1_1gil_1_1alpha__t.html">alpha_t</a> {}; </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">typedef</span> mpl::vector4<red_t,green_t,blue_t,alpha_t> rgba_t;</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">typedef</span> <a class="code" href="structboost_1_1gil_1_1layout.html">layout<rgba_t></a> <a class="code" href="structboost_1_1gil_1_1layout.html">rgba_layout_t</a>;</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">typedef</span> <a class="code" href="structboost_1_1gil_1_1layout.html">layout<rgba_t, mpl::vector4_c<int,2,1,0,3></a> > <a class="code" href="structboost_1_1gil_1_1layout.html">bgra_layout_t</a>;</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">typedef</span> <a class="code" href="structboost_1_1gil_1_1layout.html">layout<rgba_t, mpl::vector4_c<int,1,2,3,0></a> > <a class="code" href="structboost_1_1gil_1_1layout.html">argb_layout_t</a>;</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">typedef</span> <a class="code" href="structboost_1_1gil_1_1layout.html">layout<rgba_t, mpl::vector4_c<int,3,2,1,0></a> > <a class="code" href="structboost_1_1gil_1_1layout.html">abgr_layout_t</a>;</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">template</span> <<span class="keyword">typename</span> IC></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">inline</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">typename</span> <a class="code" href="structboost_1_1gil_1_1type__from__x__iterator.html">type_from_x_iterator<planar_pixel_iterator<IC,rgba_t></a> >::view_t</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group___image_view_constructors.html#gad40d67fa95daad5d31298d151f37d1d6"> 52</a></span> <a class="code" href="group___image_view_constructors.html#gad40d67fa95daad5d31298d151f37d1d6">planar_rgba_view</a>(std::size_t width, std::size_t height,</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  IC r, IC g, IC b, IC a,</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  std::ptrdiff_t rowsize_in_bytes) {</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structboost_1_1gil_1_1type__from__x__iterator.html">type_from_x_iterator<planar_pixel_iterator<IC,rgba_t></a> >::view_t RView;</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> RView(width, height,</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">typename</span> RView::locator(<a class="code" href="structboost_1_1gil_1_1planar__pixel__iterator.html">planar_pixel_iterator<IC,rgba_t></a>(r,g,b,a),</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  rowsize_in_bytes));</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> } } <span class="comment">// namespace boost::gil</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="structboost_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, HomogeneousPixelBasedConcept, MemoryBasedIteratorConcept, HasDynamicXStepTypeConcept. </div><div class="ttdef"><b>Definition:</b> algorithm.hpp:53</div></div>
|
|
<div class="ttc" id="planar__pixel__iterator_8hpp_html"><div class="ttname"><a href="planar__pixel__iterator_8hpp.html">planar_pixel_iterator.hpp</a></div><div class="ttdoc">planar pixel pointer class </div></div>
|
|
<div class="ttc" id="structboost_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:252</div></div>
|
|
<div class="ttc" id="structboost_1_1gil_1_1alpha__t_html"><div class="ttname"><a href="structboost_1_1gil_1_1alpha__t.html">boost::gil::alpha_t</a></div><div class="ttdoc">Alpha. </div><div class="ttdef"><b>Definition:</b> rgba.hpp:33</div></div>
|
|
<div class="ttc" id="structboost_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:306</div></div>
|
|
<div class="ttc" id="group___image_view_constructors_html_gad40d67fa95daad5d31298d151f37d1d6"><div class="ttname"><a href="group___image_view_constructors.html#gad40d67fa95daad5d31298d151f37d1d6">boost::gil::planar_rgba_view</a></div><div class="ttdeci">type_from_x_iterator< planar_pixel_iterator< IC, rgba_t > >::view_t planar_rgba_view(std::size_t width, std::size_t height, IC r, IC g, IC b, IC a, std::ptrdiff_t rowsize_in_bytes)</div><div class="ttdoc">from raw RGBA planar data </div><div class="ttdef"><b>Definition:</b> rgba.hpp:52</div></div>
|
|
<div class="ttc" id="gil__config_8hpp_html"><div class="ttname"><a href="gil__config_8hpp.html">gil_config.hpp</a></div><div class="ttdoc">GIL configuration file. </div></div>
|
|
<div class="ttc" id="rgb_8hpp_html"><div class="ttname"><a href="rgb_8hpp.html">rgb.hpp</a></div><div class="ttdoc">Support for RGB color space and variants. </div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Mon Mar 26 2018 16:26:16 for Generic Image Library by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.6
|
|
</small></address>
|
|
</body>
|
|
</html>
|