Boost GIL


Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
packed_pixel< BitField, ChannelRefVec, Layout > Struct Template Reference

Heterogeneous pixel value whose channel references can be constructed from the pixel bitfield and their index. Models ColorBaseValueConcept, PixelValueConcept, PixelBasedConcept Typical use for this is a model of a packed pixel (like 565 RGB) More...

#include <packed_pixel.hpp>

Public Types

using layout_t = Layout
 
using value_type = packed_pixel< BitField, ChannelRefVec, Layout >
 
using reference = value_type &
 
using const_reference = value_type const &
 

Public Member Functions

 packed_pixel (const BitField &bitfield)
 
 packed_pixel (const packed_pixel &p)
 
template<typename P >
 packed_pixel (P const &p, typename std::enable_if< is_pixel< P >::value >::type *=nullptr)
 
 packed_pixel (int chan0, int chan1)
 
 packed_pixel (int chan0, int chan1, int chan2)
 
 packed_pixel (int chan0, int chan1, int chan2, int chan3)
 
 packed_pixel (int chan0, int chan1, int chan2, int chan3, int chan4)
 
packed_pixeloperator= (const packed_pixel &p)
 
template<typename P >
packed_pixeloperator= (const P &p)
 
template<typename P >
bool operator== (const P &p) const
 
template<typename P >
bool operator!= (const P &p) const
 
packed_pixeloperator= (int chan)
 
bool operator== (int chan) const
 

Public Attributes

BitField _bitfield
 

Static Public Attributes

static constexpr bool is_mutable
 

Detailed Description

template<typename BitField, typename ChannelRefVec, typename Layout>
struct boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >

Heterogeneous pixel value whose channel references can be constructed from the pixel bitfield and their index. Models ColorBaseValueConcept, PixelValueConcept, PixelBasedConcept Typical use for this is a model of a packed pixel (like 565 RGB)

Member Data Documentation

◆ is_mutable

constexpr bool is_mutable
static
Initial value:
=
channel_traits<typename mpl::front<ChannelRefVec>::type>::is_mutable

The documentation for this struct was generated from the following files: