boost::gil::read_view
Reads an image view without conversion. No memory is allocated.
Synopses
Declared in <boost/gil/io/read_view.hpp>
Reads an image view without conversion. No memory is allocated.
template<
typename Reader,
typename View>
void
read_view(
Reader reader,
View const& view)
requires mp11::mp_and
<
detail::is_reader<Reader>,
typename is_format_tag<typename Reader::format_tag_t>::type,
typename is_read_supported
<
typename get_pixel_type<View>::type,
typename Reader::format_tag_t
>::type
>::value;
Reads an image view without conversion. No memory is allocated.
template<
typename Device,
typename View,
typename FormatTag>
void
read_view(
Device& file,
View const& view,
FormatTag const& tag)
requires mp11::mp_and
<
typename is_format_tag<FormatTag>::type,
detail::is_read_device<FormatTag, Device>,
typename is_read_supported
<
typename get_pixel_type<View>::type,
FormatTag
>::type
>::value;
Reads an image view without conversion. No memory is allocated.
template<
typename Device,
typename View,
typename FormatTag>
void
read_view(
Device& file,
View const& view,
image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
typename is_format_tag<FormatTag>::type,
typename is_read_supported
<
typename get_pixel_type<View>::type,
FormatTag
>::type
>::value;
Reads an image view without conversion. No memory is allocated.
template<
typename String,
typename View,
typename FormatTag>
void
read_view(
String const& file_name,
View const& view,
FormatTag const& tag)
requires mp11::mp_and
<
typename detail::is_supported_path_spec<String>::type,
typename is_format_tag<FormatTag>::type,
typename is_read_supported
<
typename get_pixel_type<View>::type,
FormatTag
>::type
>::value;
Reads an image view without conversion. No memory is allocated.
template<
typename String,
typename View,
typename FormatTag>
void
read_view(
String const& file_name,
View const& view,
image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
<
typename detail::is_supported_path_spec<String>::type,
typename is_format_tag<FormatTag>::type,
typename is_read_supported
<
typename get_pixel_type<View>::type,
FormatTag
>::type
>::value;
Parameters
Name |
Description |
reader |
An image reader. |
view |
The image view in which the data is read into. |
settings |
Specifies read settings depending on the image format. |
file |
It's a device. Must satisfy is_input_device metafunction or is_adaptable_input_device. |
tag |
Defines the image format. Must satisfy is_format_tag metafunction. |
file_name |
File name. Must satisfy is_supported_path_spec metafunction. |
Created with MrDocs