Base class for PNG reader/writer classes. More...
#include <io_base.hpp>
Protected Member Functions | |
void * | get_io_ptr () const |
bool | is_error () const |
void | raise_error () |
void | reset_error () |
void | set_error (char const *message) |
Static Protected Member Functions | |
static void | raise_error (png_struct *png, char const *message) |
Protected Attributes | |
end_info | m_end_info |
std::string | m_error |
info | m_info |
png_struct * | m_png |
Private Member Functions | |
io_base (io_base const &) | |
io_base & | operator= (io_base const &) |
|
private |
|
inlineexplicit |
|
inline |
References png::info_base::get_png_info(), m_end_info, m_info, and m_png.
|
inline |
References png::image_info::get_bit_depth(), and m_info.
Referenced by png::detail::convert_color_space_impl< rgb_pixel >::handle_16(), png::detail::convert_color_space_impl< rgb_pixel >::handle_gray(), png::require_color_space< pixel >::operator()(), and png::consumer< pixel, pixel_consumer, image_info_ref_holder, true >::read().
|
inline |
References png::image_info::get_color_type(), and m_info.
Referenced by png::detail::convert_color_space_impl< rgb_pixel >::handle_alpha(), png::detail::convert_color_space_impl< rgb_pixel >::handle_gray(), png::detail::convert_color_space_impl< rgb_pixel >::handle_palette(), png::detail::convert_color_space_impl< rgb_pixel >::handle_rgb(), png::require_color_space< pixel >::operator()(), and png::consumer< pixel, pixel_consumer, image_info_ref_holder, true >::read().
|
inline |
References png::image_info::get_compression_type(), and m_info.
|
inline |
References m_end_info.
|
inline |
References m_end_info.
|
inline |
References png::image_info::get_filter_type(), and m_info.
|
inline |
|
inline |
References m_info.
Referenced by png::consumer< pixel, pixel_consumer, image_info_ref_holder, true >::read().
|
inline |
References m_info.
Referenced by png::detail::convert_color_space_impl< rgb_pixel >::handle_palette().
|
inline |
References png::image_info::get_interlace_type(), and m_info.
Referenced by png::consumer< pixel, pixel_consumer, image_info_ref_holder, true >::read().
|
inlineprotected |
References m_png.
|
inline |
References m_png.
|
inline |
|
inline |
References png::info_base::get_png_info(), m_info, and m_png.
Referenced by png::detail::convert_color_space_impl< rgb_pixel >::handle_alpha().
|
inlineprotected |
References m_error.
Referenced by png::writer< ostream >::flush_data(), png::reader< istream >::read_data(), and png::writer< ostream >::write_data().
|
inlineprotected |
References m_png.
Referenced by png::writer< ostream >::flush_data(), raise_error(), png::reader< istream >::read_data(), and png::writer< ostream >::write_data().
|
inlinestaticprotected |
|
inlineprotected |
References m_error.
Referenced by png::writer< ostream >::flush_data(), png::reader< istream >::read_data(), and png::writer< ostream >::write_data().
|
inline |
References m_info, and png::image_info::set_bit_depth().
Referenced by png::detail::convert_color_space_impl< rgb_pixel >::operator()().
|
inline |
References m_info, and png::image_info::set_color_type().
Referenced by png::detail::convert_color_space_impl< rgb_pixel >::operator()().
|
inline |
References m_info, and png::image_info::set_compression_type().
|
inlineprotected |
References m_error.
Referenced by png::writer< ostream >::flush_data(), raise_error(), png::reader< istream >::read_data(), and png::writer< ostream >::write_data().
|
inline |
References m_info, and png::image_info::set_filter_type().
|
inline |
|
inline |
References m_info.
Referenced by png::generator< pixel, pixel_generator, image_info_ref_holder, true >::write().
|
inline |
References m_info, and png::image_info::set_interlace_type().
|
inline |
References m_png, and TRACE_IO_TRANSFORM.
Referenced by png::detail::convert_color_space_impl< rgb_pixel >::handle_rgb().
|
inline |
|
protected |
|
protected |
Referenced by is_error(), png::reader< istream >::read_end_info(), png::reader< istream >::read_info(), png::reader< istream >::read_png(), png::reader< istream >::read_row(), reset_error(), set_error(), png::writer< ostream >::write_end_info(), png::writer< ostream >::write_info(), png::writer< ostream >::write_png(), and png::writer< ostream >::write_row().
|
protected |
Referenced by get_bit_depth(), get_color_type(), get_compression_type(), get_filter_type(), get_height(), get_image_info(), get_info(), get_interlace_type(), get_width(), has_chunk(), png::reader< istream >::read_info(), png::reader< istream >::read_png(), set_bit_depth(), set_color_type(), set_compression_type(), set_filter_type(), set_height(), set_image_info(), set_interlace_type(), set_width(), png::reader< istream >::update_info(), png::writer< ostream >::write_info(), png::writer< ostream >::write_png(), ~io_base(), png::reader< istream >::~reader(), and png::writer< ostream >::~writer().
|
protected |
Referenced by get_io_ptr(), get_png_struct(), has_chunk(), raise_error(), png::reader< istream >::read_end_info(), png::reader< istream >::read_info(), png::reader< istream >::read_png(), png::reader< istream >::read_row(), png::reader< istream >::reader(), set_rgb_to_gray(), png::writer< ostream >::write_end_info(), png::writer< ostream >::write_info(), png::writer< ostream >::write_png(), png::writer< ostream >::write_row(), png::writer< ostream >::writer(), ~io_base(), png::reader< istream >::~reader(), and png::writer< ostream >::~writer().