8 #ifndef BOOST_GIL_RGBA_HPP 9 #define BOOST_GIL_RGBA_HPP 11 #include <boost/gil/planar_pixel_iterator.hpp> 12 #include <boost/gil/rgb.hpp> 13 #include <boost/gil/detail/mp11.hpp> 16 #include <type_traits> 18 namespace boost {
namespace gil {
25 using rgba_t =mp11::mp_list<red_t, green_t, blue_t, alpha_t>;
41 template <
typename ChannelPtr>
44 ChannelPtr r, ChannelPtr g, ChannelPtr b, ChannelPtr a,
45 std::ptrdiff_t rowsize_in_bytes)
50 using locator_t =
typename view_t::locator;
52 locator_t loc(pixel_iterator_t(r, g, b, a), rowsize_in_bytes);
53 return view_t(width, height, loc);
A lightweight object that interprets memory as a 2D array of pixels. Models ImageViewConcept,...
Definition: image_view.hpp:53
An iterator over planar pixels. Models HomogeneousColorBaseConcept, PixelIteratorConcept,...
Definition: algorithm.hpp:34
Given a pixel iterator defining access to pixels along a row, returns the types of the corresponding ...
Definition: metafunctions.hpp:301
Alpha.
Definition: rgba.hpp:22
Represents a color space and ordering of channels in memory.
Definition: utilities.hpp:266
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< planar_pixel_iterator< ChannelPtr, rgba_t > >::view_t
from raw RGBA planar data
Definition: rgba.hpp:43