Holds information about PNG image. More...
#include <image_info.hpp>
Public Member Functions | |
image_info () | |
Constructs the image_info object with default values for color_type, interlace_type, compression_method and filter_type. More... | |
void | drop_palette () |
Removes all entries from the palette. More... | |
size_t | get_bit_depth () const |
color_type | get_color_type () const |
compression_type | get_compression_type () const |
filter_type | get_filter_type () const |
size_t | get_height () const |
interlace_type | get_interlace_type () const |
palette const & | get_palette () const |
palette & | get_palette () |
tRNS const & | get_tRNS () const |
tRNS & | get_tRNS () |
size_t | get_width () const |
void | set_bit_depth (size_t bit_depth) |
void | set_color_type (color_type color_space) |
void | set_compression_type (compression_type compression) |
void | set_filter_type (filter_type filter) |
void | set_height (size_t height) |
void | set_interlace_type (interlace_type interlace) |
void | set_palette (palette const &plte) |
void | set_tRNS (tRNS const &trns) |
void | set_width (size_t width) |
|
inline |
Constructs the image_info object with default values for color_type, interlace_type, compression_method and filter_type.
|
inline |
Removes all entries from the palette.
References m_palette.
Referenced by png::detail::convert_color_space_impl< rgb_pixel >::handle_palette().
|
inline |
References m_bit_depth.
Referenced by png::io_base::get_bit_depth().
|
inline |
References m_color_type.
Referenced by png::io_base::get_color_type().
|
inline |
References m_compression_type.
Referenced by png::io_base::get_compression_type(), and png::image< pixel >::get_compression_type().
|
inline |
References m_filter_type.
Referenced by png::io_base::get_filter_type(), and png::image< pixel >::get_filter_type().
|
inline |
References m_height.
Referenced by png::io_base::get_height(), png::consumer< pixel, pixel_consumer, image_info_ref_holder, true >::read_rows(), and png::generator< pixel, pixel_generator, image_info_ref_holder, true >::write().
|
inline |
References m_interlace_type.
Referenced by png::io_base::get_interlace_type(), and png::image< pixel >::get_interlace_type().
|
inline |
References m_palette.
Referenced by png::image< pixel >::get_palette().
|
inline |
References m_tRNS.
Referenced by png::image< pixel >::get_tRNS().
|
inline |
References m_width.
Referenced by png::io_base::get_width().
|
inline |
References m_bit_depth.
Referenced by png::make_image_info(), and png::io_base::set_bit_depth().
|
inline |
References m_color_type.
Referenced by png::make_image_info(), and png::io_base::set_color_type().
|
inline |
References m_compression_type.
Referenced by png::io_base::set_compression_type(), and png::image< pixel >::set_compression_type().
|
inline |
References m_filter_type.
Referenced by png::io_base::set_filter_type(), and png::image< pixel >::set_filter_type().
|
inline |
References m_height.
Referenced by png::image< pixel >::resize(), png::io_base::set_height(), and png::streaming_base< pixel, image_info_ref_holder >::streaming_base().
|
inline |
References m_interlace_type.
Referenced by png::io_base::set_interlace_type(), and png::image< pixel >::set_interlace_type().
|
inline |
References m_palette.
Referenced by png::image< pixel >::set_palette().
|
inline |
References m_tRNS.
Referenced by png::image< pixel >::set_tRNS().
|
inline |
References m_width.
Referenced by png::image< pixel >::resize(), png::io_base::set_width(), and png::streaming_base< pixel, image_info_ref_holder >::streaming_base().
|
protected |
Referenced by get_bit_depth(), png::info::read(), set_bit_depth(), and png::info::sync_ihdr().
|
protected |
Referenced by get_color_type(), png::info::read(), set_color_type(), png::info::sync_ihdr(), and png::info::write().
|
protected |
Referenced by get_compression_type(), png::info::read(), set_compression_type(), and png::info::sync_ihdr().
|
protected |
Referenced by get_filter_type(), png::info::read(), set_filter_type(), and png::info::sync_ihdr().
|
protected |
Referenced by get_height(), png::info::read(), set_height(), and png::info::sync_ihdr().
|
protected |
Referenced by get_interlace_type(), png::info::read(), set_interlace_type(), and png::info::sync_ihdr().
|
protected |
Referenced by drop_palette(), get_palette(), png::info::read(), set_palette(), and png::info::write().
|
protected |
Referenced by get_tRNS(), png::info::read(), set_tRNS(), and png::info::write().
|
protected |
Referenced by get_width(), png::info::read(), set_width(), and png::info::sync_ihdr().