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>
|
| packed_pixel (const BitField &bitfield) |
|
template<typename Pixel > |
| packed_pixel (Pixel const &p, typename std::enable_if< is_pixel< Pixel >::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) |
|
template<typename Pixel > |
auto | operator= (Pixel const &p) -> packed_pixel & |
|
template<typename Pixel > |
bool | operator== (Pixel const &p) const |
|
template<typename Pixel > |
bool | operator!= (Pixel const &p) const |
|
auto | operator= (int channel) -> packed_pixel & |
|
bool | operator== (int channel) const |
|
template<typename P, typename C, typename L>
struct boost::gil::packed_pixel< P, C, L >
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)
- Template Parameters
-
BitField | Type that holds the bits of the pixel. Typically an integral type, like std::uint16_t. |
ChannelRefs | MP11 list whose elements are packed channels. They must be constructible from BitField. GIL uses packed_channel_reference |
Layout | defining the color space and ordering of the channels. Example value: rgb_layout_t |
◆ is_mutable
template<typename P , typename C , typename L >
Initial value:=
channel_traits<mp11::mp_front<ChannelRefs>>::is_mutable
The documentation for this struct was generated from the following files: