libpsynth 0.2.1
Public Types
psynth::sound::packed_frame_type< BitField, SampleBitSizeVector, Layout > Struct Template Reference

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

#include <metafunctions.hpp>

List of all members.

Public Types

typedef packed_frame< BitField,
typename
detail::packed_sample_references_vector_type
< BitField,
SampleBitSizeVector >::type,
Layout > 
type

Detailed Description

template<typename BitField, typename SampleBitSizeVector, typename Layout>
struct psynth::sound::packed_frame_type< BitField, SampleBitSizeVector, Layout >

Returns the type of a packed frame given its bitfield type, the bit size of its samples and its layout.

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

The size of SampleBitSizeVector must equal the number of samples in the given layout The sum of bit sizes for all samples 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 SampleBitSizeVector, typename Layout>
typedef packed_frame< BitField, typename detail::packed_sample_references_vector_type< BitField, SampleBitSizeVector>::type, Layout> psynth::sound::packed_frame_type< BitField, SampleBitSizeVector, Layout >::type

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