png_write_test.cpp 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. //#define BOOST_TEST_MODULE png_read_test_module
  9. #define BOOST_GIL_IO_ADD_FS_PATH_SUPPORT
  10. #define BOOST_GIL_IO_ENABLE_GRAY_ALPHA
  11. #define BOOST_FILESYSTEM_VERSION 3
  12. #include <boost/gil/extension/io/png.hpp>
  13. #include <boost/test/unit_test.hpp>
  14. #include <cstdint>
  15. #include <iostream>
  16. #include "color_space_write_test.hpp"
  17. #include "paths.hpp"
  18. #include "scanline_read_test.hpp"
  19. using namespace std;
  20. using namespace boost;
  21. using namespace gil;
  22. using namespace boost::gil::detail;
  23. using tag_t = png_tag;
  24. BOOST_AUTO_TEST_SUITE( gil_io_png_tests )
  25. BOOST_AUTO_TEST_CASE( rgb_color_space_write_test )
  26. {
  27. color_space_write_test< tag_t >( png_out + "rgb_color_space_test.png"
  28. , png_out + "bgr_color_space_test.png"
  29. );
  30. }
  31. BOOST_AUTO_TEST_SUITE_END()