31 #ifndef PNGPP_PACKED_PIXEL_HPP_INCLUDED
32 #define PNGPP_PACKED_PIXEL_HPP_INCLUDED
41 template<
size_t bits >
class allowed_bit_depth;
43 template<>
class allowed_bit_depth< 1 > {};
44 template<>
class allowed_bit_depth< 2 > {};
45 template<>
class allowed_bit_depth< 4 > {};
53 template<
size_t bits >
55 : detail::allowed_bit_depth< bits >
75 return (1 << bits) - 1;
84 #endif // PNGPP_PACKED_PIXEL_HPP_INCLUDED