|
libpsynth 0.2.1
|
A heterogeneous frame used to represent packed frames with non-byte-aligned samples. More...
|
Classes | |
| struct | psynth::sound::packed_frame< BitField, SampleRefVec, Layout > |
| Heterogeneous frame value whose sample references can be constructed from the frame bitfield and their index. More... | |
A heterogeneous frame used to represent packed frames with non-byte-aligned samples.
Models FrameValueConcept
Example:
typedef packed_frame_type<uint16_t, mpl::vector3_c<unsigned,5,6,5>, rgb_layout>::type rgb565_frame_t; BOOST_STATIC_ASSERT((sizeof(rgb565_frame_t)==2)); rgb565_frame_t r565; get_channel(r565,red_t()) = 31; get_channel(r565,green_t()) = 63; get_channel(r565,blue_t()) = 31; assert(r565 == rgb565_frame_t((uint16_t)0xFFFF));
1.7.4