Edit: /usr/include/boost/gil/rgba.hpp (1674B)
//
// Copyright 2005-2007 Adobe Systems Incorporated
//
// Distributed under 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
//
#ifndef BOOST_GIL_RGBA_HPP
#define BOOST_GIL_RGBA_HPP
#include
#include
#include
#include
#include
namespace boost { namespace gil {
/// \ingroup ColorNameModel
/// \brief Alpha
struct alpha_t {};
/// \ingroup ColorSpaceModel
using rgba_t =mp11::mp_list;
/// \ingroup LayoutModel
using rgba_layout_t = layout;
/// \ingroup LayoutModel
using bgra_layout_t = layout>;
/// \ingroup LayoutModel
using argb_layout_t = layout>;
/// \ingroup LayoutModel
using abgr_layout_t = layout>;
/// \ingroup ImageViewConstructors
/// \brief from raw RGBA planar data
template
inline
auto planar_rgba_view(std::size_t width, std::size_t height,
ChannelPtr r, ChannelPtr g, ChannelPtr b, ChannelPtr a,
std::ptrdiff_t rowsize_in_bytes)
-> typename type_from_x_iterator >::view_t
{
using pixel_iterator_t = planar_pixel_iterator;
using view_t = typename type_from_x_iterator::view_t;
using locator_t = typename view_t::locator;
locator_t loc(pixel_iterator_t(r, g, b, a), rowsize_in_bytes);
return view_t(width, height, loc);
}
}} // namespace boost::gil
#endif