1 // 2 // Copyright 2013 Christian Henning 3 // 4 // Distributed under the Boost Software License, Version 1.0 5 // See accompanying file LICENSE_1_0.txt or copy at 6 // http://www.boost.org/LICENSE_1_0.txt 7 // 8 #include <boost/gil.hpp> 9 #include <boost/gil/extension/toolbox/metafunctions.hpp> 10 #include <boost/gil/extension/toolbox/metafunctions/pixel_bit_size.hpp> 11 12 namespace gil = boost::gil; 13 test_pixel_bit_size()14void test_pixel_bit_size() 15 { 16 using image_t = gil::bit_aligned_image5_type 17 < 18 16, 16, 16, 8, 8, gil::devicen_layout_t<5> 19 >::type; 20 static_assert(gil::pixel_bit_size<image_t::view_t::reference>::value == 64, ""); 21 } 22 main()23int main() 24 { 25 test_pixel_bit_size(); 26 } 27