]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/gil/test/extension/io/targa/targa_write_test.cpp
2 // Copyright 2013 Christian Henning
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
8 #include <boost/gil.hpp>
9 #include <boost/gil/io/typedefs.hpp>
10 #include <boost/gil/extension/io/targa.hpp>
12 #include <boost/core/lightweight_test.hpp>
14 #include "color_space_write_test.hpp"
15 #include "mandel_view.hpp"
18 namespace gil
= boost::gil
;
22 // test writing all supported image types
25 targa_out
+ "rgb8_test.tga",
26 create_mandel_view(200, 200, gil::rgb8_pixel_t(0, 0, 255), gil::rgb8_pixel_t(0, 255, 0)),
31 targa_out
+ "rgba8_test.tga",
33 200, 200, gil::rgba8_pixel_t(0, 0, 255, 0), gil::rgba8_pixel_t(0, 255, 0, 0)),
38 void test_rgb_color_space_write()
40 color_space_write_test
<gil::targa_tag
>(
41 targa_out
+ "rgb_color_space_test.tga", targa_out
+ "bgr_color_space_test.tga");
46 test_rgb_color_space_write();
49 return boost::report_errors();