Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gil::packed_pixel_type< BitField, ChannelBitSizeVector, Layout > Struct Template Reference

Returns the type of a packed pixel given its bitfield type, the bit size of its channels and its layout. More...

#include <metafunctions.hpp>

Inheritance diagram for boost::gil::packed_pixel_type< BitField, ChannelBitSizeVector, Layout >:

Public Types

typedef packed_pixel< BitField,
typename
detail::packed_channel_references_vector_type
< BitField,
ChannelBitSizeVector >::type,
Layout > 
type
 

Detailed Description

template<typename BitField, typename ChannelBitSizeVector, typename Layout>
struct boost::gil::packed_pixel_type< BitField, ChannelBitSizeVector, Layout >

Returns the type of a packed pixel given its bitfield type, the bit size of its channels and its layout.

A packed pixel has channels that cover bit ranges but itself is byte aligned. RGB565 pixel is an example.

The size of ChannelBitSizeVector 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.

Member Typedef Documentation

template<typename BitField, typename ChannelBitSizeVector, typename Layout>
typedef packed_pixel<BitField, typename detail::packed_channel_references_vector_type<BitField,ChannelBitSizeVector>::type, Layout> boost::gil::packed_pixel_type< BitField, ChannelBitSizeVector, Layout >::type

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