2 // Copyright 2019 Mateusz Loskot <mateusz at loskot dot net>
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>
10 #include <type_traits>
12 namespace gil = boost::gil;
17 static_assert(std::is_same
19 gil::derived_view_type<gil::cmyk8c_planar_step_view_t>::type,
20 gil::cmyk8c_planar_step_view_t
21 >::value, "derived_view_type should be cmyk8c_planar_step_view_t");
23 static_assert(std::is_same
25 gil::derived_view_type
27 gil::cmyk8c_planar_step_view_t, std::uint16_t, gil::rgb_layout_t
29 gil::rgb16c_planar_step_view_t
30 >::value, "derived_view_type should be rgb16c_planar_step_view_t");
32 static_assert(std::is_same
34 gil::derived_view_type
36 gil::cmyk8c_planar_step_view_t,
43 gil::rgb8c_step_view_t
44 >::value, "derived_view_type should be rgb8c_step_view_t");