// // 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 #include #include #include namespace bg = boost::gil; BOOST_AUTO_TEST_SUITE(toolbox_tests) BOOST_AUTO_TEST_CASE(channel_type_test) { static_assert(std::is_same < unsigned char, bg::channel_type::type >::value, ""); // float32_t is a scoped_channel_value object static_assert(std::is_same < bg::float32_t, bg::channel_type::type >::value, ""); // channel_type for bit_aligned images doesn't work with standard gil. using image_t = bg::bit_aligned_image4_type<4, 4, 4, 4, bg::rgb_layout_t>::type; using channel_t = bg::channel_type::type; static_assert(bg::detail::is_channel_integral::value, ""); } BOOST_AUTO_TEST_SUITE_END()