libpsynth 0.2.1
Public Types
psynth::sound::bit_aligned_buffer_type< SampleBitSizeVector, Layout, Alloc > Struct Template Reference

Returns the type of a packed buffer whose frames may not be byte aligned. More...

#include <metafunctions.hpp>

List of all members.

Public Types

typedef buffer
< bit_alignedref_t, false,
Alloc > 
type

Detailed Description

template<typename SampleBitSizeVector, typename Layout, typename Alloc = std::allocator<unsigned char>>
struct psynth::sound::bit_aligned_buffer_type< SampleBitSizeVector, Layout, Alloc >

Returns the type of a packed buffer whose frames may not be byte aligned.

For example, an "rgb222" buffer is bit-aligned because its frame spans six bits.

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


Member Typedef Documentation

template<typename SampleBitSizeVector, typename Layout, typename Alloc = std::allocator<unsigned char>>
typedef buffer<bit_alignedref_t,false,Alloc> psynth::sound::bit_aligned_buffer_type< SampleBitSizeVector, Layout, Alloc >::type

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