mirror of
https://github.com/boostorg/gil.git
synced 2026-02-19 02:22:09 +00:00
Import the selection of integer types into boost::gil namespace,
and move from channel.hpp to typedefs.hpp for easier access.
Replace bits32f with float32_t and bits64f with float64_t
- kept as alias of scoped_channel_value.
Move float64_t (bits64f) to typedefs.hpp.
Replace the four {float|double}_{zero|one} min/max channel values
with float_point_zero and float_point_one templates.
Replace <boost/cstdint,hpp> with C++11 <cstdint>.
Introduce preference of using declaration instead of typedef.
Reformat typedefs.hpp to take advantage of the using declaration
- works much better for left-to-right reading, alias name as
most important detail comes first.
Add some of missing #include typedefs.hpp, sort some headers.
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
/*
|
|
Copyright 2013 Christian Henning
|
|
Use, modification and distribution are subject to 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).
|
|
*/
|
|
|
|
//#define BOOST_TEST_MODULE png_read_test_module
|
|
#include <boost/test/unit_test.hpp>
|
|
|
|
#define BOOST_GIL_IO_ADD_FS_PATH_SUPPORT
|
|
#define BOOST_GIL_IO_ENABLE_GRAY_ALPHA
|
|
|
|
|
|
#define BOOST_FILESYSTEM_VERSION 3
|
|
#include <boost/filesystem/convenience.hpp>
|
|
|
|
#include <boost/gil/extension/io/png.hpp>
|
|
|
|
#include <cstdint>
|
|
#include <iostream>
|
|
|
|
#include "color_space_write_test.hpp"
|
|
#include "paths.hpp"
|
|
#include "scanline_read_test.hpp"
|
|
|
|
using namespace std;
|
|
using namespace boost;
|
|
using namespace gil;
|
|
using namespace boost::gil::detail;
|
|
namespace fs = boost::filesystem;
|
|
|
|
typedef png_tag tag_t;
|
|
|
|
BOOST_AUTO_TEST_SUITE( gil_io_png_tests )
|
|
|
|
BOOST_AUTO_TEST_CASE( rgb_color_space_write_test )
|
|
{
|
|
color_space_write_test< tag_t >( png_out + "rgb_color_space_test.png"
|
|
, png_out + "bgr_color_space_test.png"
|
|
);
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|