// // Copyright 2013 Christian Henning // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #include #include #include namespace gil = boost::gil; void test_get_num_bits() { using image_t = gil::bit_aligned_image4_type<4, 4, 4, 4, gil::rgb_layout_t>::type; using channel_t = gil::channel_type::type; static_assert(gil::get_num_bits::value == 4, ""); using const_channel_t = gil::channel_type::type; static_assert(gil::get_num_bits::value == 4, ""); using bits_t = gil::packed_channel_value<23>; static_assert(gil::get_num_bits::value == 23, ""); static_assert(gil::get_num_bits::value == 23, ""); static_assert(gil::get_num_bits::value == 8, ""); static_assert(gil::get_num_bits::value == 8, ""); using gray8_channel_t = gil::channel_type::type; static_assert(gil::get_num_bits::value == 8, ""); using rgba32_channel_t = gil::channel_type::type; static_assert(gil::get_num_bits::value == 32, ""); } int main() { test_get_num_bits(); }