Chris@16: /* Chris@16: Copyright 2005-2007 Adobe Systems Incorporated Chris@16: Chris@16: Use, modification and distribution are subject to the Boost Software License, Chris@16: Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: http://www.boost.org/LICENSE_1_0.txt). Chris@16: Chris@16: See http://opensource.adobe.com/gil for most recent version including documentation. Chris@16: */ Chris@16: Chris@16: /*************************************************************************************************/ Chris@16: Chris@16: #ifndef GIL_CMYK_H Chris@16: #define GIL_CMYK_H Chris@16: Chris@16: //////////////////////////////////////////////////////////////////////////////////////// Chris@16: /// \file Chris@16: /// \brief Support for CMYK color space and variants Chris@16: /// \author Lubomir Bourdev and Hailin Jin \n Chris@16: /// Adobe Systems Incorporated Chris@16: /// \date 2005-2007 \n Last updated on October 10, 2007 Chris@16: //////////////////////////////////////////////////////////////////////////////////////// Chris@16: Chris@16: #include Chris@16: #include "gil_config.hpp" Chris@16: #include "metafunctions.hpp" Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { namespace gil { Chris@16: Chris@16: Chris@16: /// \addtogroup ColorNameModel Chris@16: /// \{ Chris@16: Chris@16: /// \brief Cyan Chris@16: struct cyan_t {}; Chris@16: Chris@16: /// \brief Magenta Chris@16: struct magenta_t {}; Chris@16: Chris@16: /// \brief Yellow Chris@16: struct yellow_t {}; Chris@16: Chris@16: /// \brief Black Chris@16: struct black_t {}; Chris@16: /// \} Chris@16: Chris@16: /// \ingroup ColorSpaceModel Chris@16: typedef mpl::vector4 cmyk_t; Chris@16: Chris@16: /// \ingroup LayoutModel Chris@16: typedef layout cmyk_layout_t; Chris@16: Chris@16: /// \ingroup ImageViewConstructors Chris@16: /// \brief from raw CMYK planar data Chris@16: template Chris@16: inline typename type_from_x_iterator >::view_t Chris@16: planar_cmyk_view(std::size_t width, std::size_t height, IC c, IC m, IC y, IC k, std::ptrdiff_t rowsize_in_bytes) { Chris@16: typedef typename type_from_x_iterator >::view_t RView; Chris@16: return RView(width, height, typename RView::locator(planar_pixel_iterator(c,m,y,k), rowsize_in_bytes)); Chris@16: } Chris@16: Chris@16: } } // namespace gil Chris@16: Chris@16: #endif