8 #ifndef BOOST_GIL_IO_READER_BASE_HPP
9 #define BOOST_GIL_IO_READER_BASE_HPP
11 #include <boost/gil/io/base.hpp>
13 #include <boost/assert.hpp>
15 namespace boost {
namespace gil {
25 template<
typename FormatTag
26 ,
typename ConversionPolicy
52 template<
typename Image >
54 ,
const image_read_settings< FormatTag >& settings
59 BOOST_ASSERT(settings._dim.x && settings._dim.y);
61 img.recreate( settings._dim.x
66 template<
typename View >
67 void init_view(
const View&
view
68 ,
const image_read_settings< FormatTag >&
71 setup(
view.dimensions() );
76 void setup( point_t
const& )
91 void check_coordinates( point_t
const& )
120 ConversionPolicy _cc_policy;
auto view(image< Pixel, IsPlanar, Alloc > &img) -> typename image< Pixel, IsPlanar, Alloc >::view_t const &
Returns the non-constant-pixel view of an image.
Definition: image.hpp:565
defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE)
Definition: algorithm.hpp:36
Definition: reader_base.hpp:29
reader_base(const ConversionPolicy &cc)
Definition: reader_base.hpp:42
void init_image(Image &img, const image_read_settings< FormatTag > &settings)
Definition: reader_base.hpp:53
reader_base()
Definition: reader_base.hpp:35