boost::gil::packed_pixel_type
Returns the type of a packed pixel given its bitfield type, the bit size of its channels and its layout.
Synopsis
Declared in <boost/gil/metafunctions.hpp>
template<
typename BitField,
typename ChannelBitSizes,
typename Layout>
struct packed_pixel_type;
Description
A packed pixel has channels that cover bit ranges but itself is byte aligned. RGB565 pixel is an example.
The size of ChannelBitSizes must equal the number of channels in the given layout The sum of bit sizes for all channels must be less than or equal to the number of bits in BitField (and cannot exceed 64). If it is less than the number of bits in BitField, the last bits will be unused.
Derived Classes
Name |
Description |
|
Created with MrDocs