boost::gil::bit_aligned_image_type

Returns the type of a packed image whose pixels may not be byte aligned. For example, an "rgb222" image is bit‐aligned because its pixel spans six bits.

Synopsis

template<
    typename ChannelBitSizes,
    typename Layout,
    typename Alloc = std::allocator<unsigned char>>
struct bit_aligned_image_type;

Description

Note that the alignment parameter in the constructor of bit‐aligned images is in bit units. For example, if you want to construct a bit‐aligned image whose rows are byte‐aligned, use 8 as the alignment parameter, not 1.

Type Aliases

Name

type

Derived Classes

Name

Description

bit_aligned_image1_type

Returns the type of a single‐channel bit‐aligned image given the bit size of its channel and its layout

bit_aligned_image2_type

Returns the type of a two channel bit‐aligned image given the bit size of its channels and its layout

bit_aligned_image3_type

Returns the type of a three channel bit‐aligned image given the bit size of its channels and its layout

bit_aligned_image4_type

Returns the type of a four channel bit‐aligned image given the bit size of its channels and its layout

bit_aligned_image5_type

Returns the type of a five channel bit‐aligned image given the bit size of its channels and its layout

Created with MrDocs