|
A heterogeneous pixel used to represent packed pixels with non-byte-aligned channels. Models PixelValueConcept. More...
Detailed DescriptionA heterogeneous pixel used to represent packed pixels with non-byte-aligned channels. Models PixelValueConcept. Example: typedef packed_pixel_type<uint16_t, mpl::vector3_c<unsigned,5,6,5>, rgb_layout_t>::type rgb565_pixel_t;
BOOST_STATIC_ASSERT((sizeof(rgb565_pixel_t)==2));
rgb565_pixel_t r565;
get_color(r565,red_t()) = 31;
get_color(r565,green_t()) = 63;
get_color(r565,blue_t()) = 31;
assert(r565 == rgb565_pixel_t((uint16_t)0xFFFF));
Generated on Mon Mar 26 2018 16:26:16 for Generic Image Library by
1.8.6
| ||||||||