cmyk_8hpp_source.html 11 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!-- HTML header for doxygen 1.8.13-->
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  6. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  7. <meta name="generator" content="Doxygen 1.8.15"/>
  8. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  9. <title>Generic Image Library: cmyk.hpp Source File</title>
  10. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  11. <script type="text/javascript" src="jquery.js"></script>
  12. <script type="text/javascript" src="dynsections.js"></script>
  13. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  14. <link href="doxygen-boost.css" rel="stylesheet" type="text/css"/>
  15. </head>
  16. <body>
  17. <div class="boost-header">
  18. <table border="0" cellpadding="7" cellspacing="0" width="100%" summary="header">
  19. <tr>
  20. <td valign="top" width="300">
  21. <h3><a href="../index.html"><img alt="Boost GIL" src="../_static/gil.png" border="0"></a></h3>
  22. </td>
  23. <td ><h1 align="center"><a href="../index.html"></a></h1></td>
  24. <td></td>
  25. </tr>
  26. </table>
  27. </div>
  28. <hr/>
  29. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  30. <!-- Generated by Doxygen 1.8.15 -->
  31. <script type="text/javascript" src="menudata.js"></script>
  32. <script type="text/javascript" src="menu.js"></script>
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. $(function() {
  36. initMenu('',false,false,'search.php','Search');
  37. });
  38. /* @license-end */</script>
  39. <div id="main-nav"></div>
  40. <div id="nav-path" class="navpath">
  41. <ul>
  42. <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>
  43. </div>
  44. </div><!-- top -->
  45. <div class="header">
  46. <div class="headertitle">
  47. <div class="title">cmyk.hpp</div> </div>
  48. </div><!--header-->
  49. <div class="contents">
  50. <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Copyright 2005-2007 Adobe Systems Incorporated</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// Distributed under the Boost Software License, Version 1.0</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// See accompanying file LICENSE_1_0.txt or copy at</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<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>&#160;<span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef BOOST_GIL_CMYK_HPP</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define BOOST_GIL_CMYK_HPP</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;boost/gil/metafunctions.hpp&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;boost/gil/detail/mp11.hpp&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;cstddef&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>gil {</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structboost_1_1gil_1_1cyan__t.html"> 22</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structboost_1_1gil_1_1cyan__t.html">cyan_t</a> {};</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="structboost_1_1gil_1_1magenta__t.html"> 25</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structboost_1_1gil_1_1magenta__t.html">magenta_t</a> {};</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structboost_1_1gil_1_1yellow__t.html"> 28</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structboost_1_1gil_1_1yellow__t.html">yellow_t</a> {};</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structboost_1_1gil_1_1black__t.html"> 31</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structboost_1_1gil_1_1black__t.html">black_t</a> {};</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">using</span> cmyk_t = mp11::mp_list&lt;cyan_t, magenta_t, yellow_t, black_t&gt;;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">using</span> <a class="code" href="structboost_1_1gil_1_1layout.html">cmyk_layout_t</a> = <a class="code" href="structboost_1_1gil_1_1layout.html">layout&lt;cmyk_t&gt;</a>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> IC&gt;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">inline</span> <span class="keyword">typename</span> <a class="code" href="structboost_1_1gil_1_1type__from__x__iterator.html">type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,cmyk_t&gt;</a> &gt;::view_t</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group___image_view_constructors.html#ga6953d39e284967152854fd96e7cd3e3e"> 44</a></span>&#160;<a class="code" href="group___image_view_constructors.html#ga6953d39e284967152854fd96e7cd3e3e">planar_cmyk_view</a>(std::size_t width, std::size_t height, IC c, IC m, IC y, IC k, std::ptrdiff_t rowsize_in_bytes)</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;{</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">using</span> view_t = <span class="keyword">typename</span> <a class="code" href="structboost_1_1gil_1_1type__from__x__iterator.html">type_from_x_iterator&lt;planar_pixel_iterator&lt;IC,cmyk_t&gt;</a> &gt;::view_t;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">return</span> view_t(width, height, <span class="keyword">typename</span> view_t::locator(<a class="code" href="structboost_1_1gil_1_1planar__pixel__iterator.html">planar_pixel_iterator&lt;IC,cmyk_t&gt;</a>(c,m,y,k), rowsize_in_bytes));</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;}</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;} } <span class="comment">// namespace gil</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="structboost_1_1gil_1_1magenta__t_html"><div class="ttname"><a href="structboost_1_1gil_1_1magenta__t.html">boost::gil::magenta_t</a></div><div class="ttdoc">Magenta.</div><div class="ttdef"><b>Definition:</b> cmyk.hpp:25</div></div>
  51. <div class="ttc" id="structboost_1_1gil_1_1yellow__t_html"><div class="ttname"><a href="structboost_1_1gil_1_1yellow__t.html">boost::gil::yellow_t</a></div><div class="ttdoc">Yellow.</div><div class="ttdef"><b>Definition:</b> cmyk.hpp:28</div></div>
  52. <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,...</div><div class="ttdef"><b>Definition:</b> algorithm.hpp:34</div></div>
  53. <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:301</div></div>
  54. <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:266</div></div>
  55. <div class="ttc" id="structboost_1_1gil_1_1black__t_html"><div class="ttname"><a href="structboost_1_1gil_1_1black__t.html">boost::gil::black_t</a></div><div class="ttdoc">Black.</div><div class="ttdef"><b>Definition:</b> cmyk.hpp:31</div></div>
  56. <div class="ttc" id="structboost_1_1gil_1_1cyan__t_html"><div class="ttname"><a href="structboost_1_1gil_1_1cyan__t.html">boost::gil::cyan_t</a></div><div class="ttdoc">Cyan.</div><div class="ttdef"><b>Definition:</b> cmyk.hpp:22</div></div>
  57. <div class="ttc" id="group___image_view_constructors_html_ga6953d39e284967152854fd96e7cd3e3e"><div class="ttname"><a href="group___image_view_constructors.html#ga6953d39e284967152854fd96e7cd3e3e">boost::gil::planar_cmyk_view</a></div><div class="ttdeci">type_from_x_iterator&lt; planar_pixel_iterator&lt; IC, cmyk_t &gt; &gt;::view_t planar_cmyk_view(std::size_t width, std::size_t height, IC c, IC m, IC y, IC k, std::ptrdiff_t rowsize_in_bytes)</div><div class="ttdoc">from raw CMYK planar data</div><div class="ttdef"><b>Definition:</b> cmyk.hpp:44</div></div>
  58. </div><!-- fragment --></div><!-- contents -->
  59. <!-- HTML footer for doxygen 1.8.13-->
  60. <!-- start footer part -->
  61. <hr class="footer"/>
  62. <address class="footer">
  63. <small>
  64. Generated by &#160;<a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.15
  65. </small>
  66. </address>
  67. </body>
  68. </html>