pixel_bit_size.cpp 696 B

123456789101112131415161718192021222324252627
  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/pixel_bit_size.hpp>
  10. #include <boost/test/unit_test.hpp>
  11. using namespace boost;
  12. using namespace gil;
  13. BOOST_AUTO_TEST_SUITE( toolbox_tests )
  14. BOOST_AUTO_TEST_CASE( pixel_bit_size_test )
  15. {
  16. using image_t = bit_aligned_image5_type
  17. <
  18. 16, 16, 16, 8, 8, devicen_layout_t<5>
  19. >::type;
  20. static_assert(pixel_bit_size<image_t::view_t::reference>::value == 64, "");
  21. }
  22. BOOST_AUTO_TEST_SUITE_END()