bit_aligned_pixel_reference
[Models]
Detailed Description
A heterogeneous
pixel reference used to represent non-byte-aligned pixels. Models
PixelConcept.
Example:
unsigned char data=0;
typedef const bit_aligned_pixel_reference<unsigned char, mpl::vector3_c<int,1,2,3>, rgb_layout_t, true> rgb123_ref_t;
rgb123_ref_t ref(&data, 2);
get_color(ref, red_t()) = 1;
assert(data == 0x04);
get_color(ref, green_t()) = 3;
assert(data == 0x1C);
get_color(ref, blue_t()) = 7;
assert(data == 0xFC);