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(
const point_t& )
91 void check_coordinates(
const point_t& )
120 ConversionPolicy _cc_policy;
void init_image(Image &img, const image_read_settings< FormatTag > &settings)
Definition: reader_base.hpp:53
const image< Pixel, IsPlanar, Alloc >::view_t & view(image< Pixel, IsPlanar, Alloc > &img)
Returns the non-constant-pixel view of an image.
Definition: image.hpp:535
reader_base()
Definition: reader_base.hpp:35
Definition: reader_base.hpp:28
reader_base(const ConversionPolicy &cc)
Definition: reader_base.hpp:42