8 #ifndef BOOST_GIL_IO_READ_IMAGE_INFO_HPP 9 #define BOOST_GIL_IO_READ_IMAGE_INFO_HPP 11 #include <boost/gil/io/base.hpp> 12 #include <boost/gil/io/device.hpp> 13 #include <boost/gil/io/get_reader.hpp> 14 #include <boost/gil/io/path_spec.hpp> 16 #include <boost/mpl/and.hpp> 17 #include <boost/type_traits/is_base_and_derived.hpp> 19 #include <type_traits> 21 namespace boost{
namespace gil {
30 template <
typename Device,
typename FormatTag>
32 auto read_image_info(Device& file, image_read_settings<FormatTag>
const& settings,
33 typename std::enable_if
37 detail::is_adaptable_input_device<FormatTag, Device>,
38 is_format_tag<FormatTag>
43 return make_reader_backend(file, settings);
51 template <
typename Device,
typename FormatTag>
54 typename std::enable_if
58 detail::is_adaptable_input_device<FormatTag, Device>,
59 is_format_tag<FormatTag>
72 template <
typename String,
typename FormatTag>
75 String
const& file_name, image_read_settings<FormatTag>
const& settings,
76 typename std::enable_if
80 is_format_tag<FormatTag>,
81 detail::is_supported_path_spec<String>
86 return make_reader_backend(file_name, settings);
94 template <
typename String,
typename FormatTag>
97 typename std::enable_if
101 is_format_tag<FormatTag>,
102 detail::is_supported_path_spec<String>
Helper metafunction to generate image backend type.
Definition: get_reader.hpp:115
Definition: algorithm.hpp:30
auto read_image_info(Device &file, image_read_settings< FormatTag > const &settings, typename std::enable_if< mpl::and_< detail::is_adaptable_input_device< FormatTag, Device >, is_format_tag< FormatTag > >::value >::type *=nullptr) -> typename get_reader_backend< Device, FormatTag >::type
Returns the image format backend. Backend is format specific.
Definition: read_image_info.hpp:32