boost::gil::read_and_convert_view

Reads and color‐converts an image view. No memory is allocated.

Synopses

Reads and color‐converts an image view. No memory is allocated.

template<
    typename Reader,
    typename View>
void
read_and_convert_view(
    Reader& reader,
    View const& view)
requires mp11::mp_and
        <
            detail::is_reader<Reader>,
            is_format_tag<typename Reader::format_tag_t>
        >::value;

Reads and color‐converts an image view. No memory is allocated.

template<
    typename Device,
    typename View,
    typename FormatTag>
void
read_and_convert_view(
    Device& device,
    View const& view,
    FormatTag const& tag)
requires mp11::mp_and
        <
            detail::is_read_device<FormatTag, Device>,
            is_format_tag<FormatTag>
        >::value;

Reads and color‐converts an image view. No memory is allocated.

template<
    typename Device,
    typename View,
    typename FormatTag>
void
read_and_convert_view(
    Device& device,
    View const& view,
    image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
        <
            detail::is_read_device<FormatTag, Device>,
            is_format_tag<FormatTag>
        >::value;

Reads and color‐converts an image view. No memory is allocated.

template<
    typename String,
    typename View,
    typename FormatTag>
void
read_and_convert_view(
    String const& file_name,
    View const& view,
    FormatTag const& tag)
requires mp11::mp_and
        <
            is_format_tag<FormatTag>,
            detail::is_supported_path_spec<String>
        >::value;

Reads and color‐converts an image view. No memory is allocated.

template<
    typename String,
    typename View,
    typename FormatTag>
void
read_and_convert_view(
    String const& file_name,
    View const& view,
    image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
        <
            is_format_tag<FormatTag>,
            detail::is_supported_path_spec<String>
        >::value;

Reads and color‐converts an image view. No memory is allocated.

template<
    typename Device,
    typename View,
    typename ColorConverter,
    typename FormatTag>
void
read_and_convert_view(
    Device& device,
    View const& view,
    ColorConverter const& cc,
    FormatTag const& tag)
requires mp11::mp_and
        <
            detail::is_read_device<FormatTag, Device>,
            is_format_tag<FormatTag>
        >::value;

Reads and color‐converts an image view. No memory is allocated.

template<
    typename Device,
    typename View,
    typename ColorConverter,
    typename FormatTag>
void
read_and_convert_view(
    Device& device,
    View const& view,
    image_read_settings<FormatTag> const& settings,
    ColorConverter const& cc)
requires mp11::mp_and
        <
            detail::is_read_device<FormatTag, Device>,
            is_format_tag<FormatTag>
        >::value;

Reads and color‐converts an image view. No memory is allocated.

template<
    typename String,
    typename View,
    typename ColorConverter,
    typename FormatTag>
void
read_and_convert_view(
    String const& file_name,
    View const& view,
    ColorConverter const& cc,
    FormatTag const& tag)
requires mp11::mp_and
        <
            is_format_tag<FormatTag>,
            detail::is_supported_path_spec<String>
        >::value;

Reads and color‐converts an image view. No memory is allocated.

template<
    typename String,
    typename View,
    typename ColorConverter,
    typename FormatTag>
void
read_and_convert_view(
    String const& file_name,
    View const& view,
    image_read_settings<FormatTag> const& settings,
    ColorConverter const& cc)
requires mp11::mp_and
        <
            is_format_tag<FormatTag>,
            detail::is_supported_path_spec<String>
        >::value;

Parameters

Name

Description

reader

An image reader.

view

The image view in which the data is read into.

device

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.

settings

Specifies read settings depending on the image format.

file_name

File name. Must satisfy is_supported_path_spec metafunction.

cc

Color converter function object.

Created with MrDocs