|
png++ 0.2.10
|
The PNG reader class template. This is the low-level reading interface–use image class or consumer class to actually read images. More...
#include <reader.hpp>
Additional Inherited Members | |
Protected Member Functions inherited from png::io_base | |
| void * | get_io_ptr () const |
| void | set_error (char const *message) |
| void | reset_error () |
| bool | is_error () const |
| void | raise_error () |
Static Protected Member Functions inherited from png::io_base | |
| static void | raise_error (png_struct *png, char const *message) |
Protected Attributes inherited from png::io_base | |
| png_struct * | m_png |
| info | m_info |
| end_info | m_end_info |
| std::string | m_error |
The PNG reader class template. This is the low-level reading interface–use image class or consumer class to actually read images.
The istream template parameter specifies the type of input stream to work with. The istream class should implement the minimum of the following interface:
With the semantics similar to the std::istream. Naturally, std::istream fits this requirement and can be used with the reader class as is.
|
inlineexplicit |
Constructs a reader prepared to read PNG image from a stream.
References png::io_base::m_png, and png::reader< istream >::reader().
Referenced by 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(), and png::reader< istream >::~reader().
|
inline |
|
inline |
Reads the whole PNG data stream into memory. Not particularly useful.
References png::info_base::get_png_info(), png::io_base::m_error, png::io_base::m_info, png::io_base::m_png, and png::reader< istream >::reader().
|
inline |
Reads info about PNG image.
References png::io_base::m_error, png::io_base::m_info, png::io_base::m_png, png::info::read(), and png::reader< istream >::reader().
Referenced by png::consumer< pixel, pixcon, info_holder, interlacing_supported >::read().
Reads a row of image data at a time.
References png::io_base::m_error, png::io_base::m_png, and png::reader< istream >::reader().
|
inline |
Reads ending info about PNG image.
References png::io_base::m_end_info, png::io_base::m_error, png::io_base::m_png, png::end_info::read(), and png::reader< istream >::reader().
Referenced by png::consumer< pixel, pixcon, info_holder, interlacing_supported >::read().
|
inline |
References png::io_base::m_info, and png::info::update().
Referenced by png::consumer< pixel, pixcon, info_holder, interlacing_supported >::read().