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/color_spaces/cmyka.hpp> 10 11 #include <boost/core/lightweight_test.hpp> 12 13 namespace gil = boost::gil; 14 test_cmyka_to_rgba()15void test_cmyka_to_rgba() 16 { 17 gil::cmyka8_pixel_t a(10, 20, 30, 40, 50); 18 gil::rgba8_pixel_t b; 19 gil::color_convert(a, b); 20 21 // TODO: no rgba to cmyka conversion implemented 22 //gil::cmyka8_pixel_t c; 23 //gil::color_convert( b, c ); 24 //BOOST_ASSERT(gil::at_c<0>(a) == gil::at_c<0>(c)); 25 } 26 main()27int main() 28 { 29 test_cmyka_to_rgba(); 30 31 return boost::report_errors(); 32 } 33