annotate DEPENDENCIES/generic/include/boost/gil/cmyk.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*
Chris@16 2 Copyright 2005-2007 Adobe Systems Incorporated
Chris@16 3
Chris@16 4 Use, modification and distribution are subject to the Boost Software License,
Chris@16 5 Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 6 http://www.boost.org/LICENSE_1_0.txt).
Chris@16 7
Chris@16 8 See http://opensource.adobe.com/gil for most recent version including documentation.
Chris@16 9 */
Chris@16 10
Chris@16 11 /*************************************************************************************************/
Chris@16 12
Chris@16 13 #ifndef GIL_CMYK_H
Chris@16 14 #define GIL_CMYK_H
Chris@16 15
Chris@16 16 ////////////////////////////////////////////////////////////////////////////////////////
Chris@16 17 /// \file
Chris@16 18 /// \brief Support for CMYK color space and variants
Chris@16 19 /// \author Lubomir Bourdev and Hailin Jin \n
Chris@16 20 /// Adobe Systems Incorporated
Chris@16 21 /// \date 2005-2007 \n Last updated on October 10, 2007
Chris@16 22 ////////////////////////////////////////////////////////////////////////////////////////
Chris@16 23
Chris@16 24 #include <cstddef>
Chris@16 25 #include "gil_config.hpp"
Chris@16 26 #include "metafunctions.hpp"
Chris@16 27 #include <boost/mpl/range_c.hpp>
Chris@16 28 #include <boost/mpl/vector_c.hpp>
Chris@16 29
Chris@16 30 namespace boost { namespace gil {
Chris@16 31
Chris@16 32
Chris@16 33 /// \addtogroup ColorNameModel
Chris@16 34 /// \{
Chris@16 35
Chris@16 36 /// \brief Cyan
Chris@16 37 struct cyan_t {};
Chris@16 38
Chris@16 39 /// \brief Magenta
Chris@16 40 struct magenta_t {};
Chris@16 41
Chris@16 42 /// \brief Yellow
Chris@16 43 struct yellow_t {};
Chris@16 44
Chris@16 45 /// \brief Black
Chris@16 46 struct black_t {};
Chris@16 47 /// \}
Chris@16 48
Chris@16 49 /// \ingroup ColorSpaceModel
Chris@16 50 typedef mpl::vector4<cyan_t,magenta_t,yellow_t,black_t> cmyk_t;
Chris@16 51
Chris@16 52 /// \ingroup LayoutModel
Chris@16 53 typedef layout<cmyk_t> cmyk_layout_t;
Chris@16 54
Chris@16 55 /// \ingroup ImageViewConstructors
Chris@16 56 /// \brief from raw CMYK planar data
Chris@16 57 template <typename IC>
Chris@16 58 inline typename type_from_x_iterator<planar_pixel_iterator<IC,cmyk_t> >::view_t
Chris@16 59 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 60 typedef typename type_from_x_iterator<planar_pixel_iterator<IC,cmyk_t> >::view_t RView;
Chris@16 61 return RView(width, height, typename RView::locator(planar_pixel_iterator<IC,cmyk_t>(c,m,y,k), rowsize_in_bytes));
Chris@16 62 }
Chris@16 63
Chris@16 64 } } // namespace gil
Chris@16 65
Chris@16 66 #endif