mirror of
https://github.com/boostorg/gil.git
synced 2026-01-23 17:42:30 +00:00
80 lines
5.8 KiB
HTML
80 lines
5.8 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: packed_pixel</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>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Classes</a> </div>
|
|
<div class="headertitle"><div class="title">packed_pixel<div class="ingroups"><a class="el" href="group___pixel.html">Pixel</a> » <a class="el" href="group___pixel_model.html">Models</a></div></div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>A heterogeneous pixel used to represent packed pixels with non-byte-aligned channels. Models <a class="el" href="structboost_1_1gil_1_1_pixel_value_concept.html" title="Pixel concept that is a Regular type.">PixelValueConcept</a>.
|
|
<a href="#details">More...</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structboost_1_1gil_1_1packed__pixel.html">packed_pixel< BitField, ChannelRefs, Layout ></a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Heterogeneous pixel value whose channel references can be constructed from the pixel bitfield and their index. Models <a class="el" href="structboost_1_1gil_1_1_color_base_value_concept.html" title="Color base that also has a default-constructor. Refines Regular.">ColorBaseValueConcept</a>, <a class="el" href="structboost_1_1gil_1_1_pixel_value_concept.html" title="Pixel concept that is a Regular type.">PixelValueConcept</a>, <a class="el" href="structboost_1_1gil_1_1_pixel_based_concept.html" title="Concept for all pixel-based GIL constructs.">PixelBasedConcept</a> Typical use for this is a model of a packed pixel (like 565 RGB) <a href="structboost_1_1gil_1_1packed__pixel.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>A heterogeneous pixel used to represent packed pixels with non-byte-aligned channels. Models <a class="el" href="structboost_1_1gil_1_1_pixel_value_concept.html" title="Pixel concept that is a Regular type.">PixelValueConcept</a>. </p>
|
|
<p>Example: </p><div class="fragment"><div class="line"><span class="keyword">using </span>rgb565_pixel_t = packed_pixel_type<uint16_t, mp11::mp_list-c<unsigned,5,6,5>, rgb_layout_t>::type;</div>
|
|
<div class="line"><span class="keyword">static_assert</span>(<span class="keyword">sizeof</span>(rgb565_pixel_t) == 2, <span class="stringliteral">""</span>);</div>
|
|
<div class="line"> </div>
|
|
<div class="line">rgb565_pixel_t r565;</div>
|
|
<div class="line"><a class="code hl_function" href="group___color_base_algorithm_color.html#ga3d51123e3188e07cd11fd322ef9a3a03">get_color</a>(r565,red_t()) = 31;</div>
|
|
<div class="line"><a class="code hl_function" href="group___color_base_algorithm_color.html#ga3d51123e3188e07cd11fd322ef9a3a03">get_color</a>(r565,green_t()) = 63;</div>
|
|
<div class="line"><a class="code hl_function" href="group___color_base_algorithm_color.html#ga3d51123e3188e07cd11fd322ef9a3a03">get_color</a>(r565,blue_t()) = 31;</div>
|
|
<div class="line">assert(r565 == rgb565_pixel_t((uint16_t)0xFFFF));</div>
|
|
<div class="ttc" id="agroup___color_base_algorithm_color_html_ga3d51123e3188e07cd11fd322ef9a3a03"><div class="ttname"><a href="group___color_base_algorithm_color.html#ga3d51123e3188e07cd11fd322ef9a3a03">boost::gil::get_color</a></div><div class="ttdeci">auto get_color(ColorBase &cb, Color=Color()) -> typename color_element_reference_type< ColorBase, Color >::type</div><div class="ttdoc">Mutable accessor to the element associated with a given color name.</div><div class="ttdef"><b>Definition</b> color_base_algorithm.hpp:190</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>
|