#include <reader.hpp>
Public Member Functions | |
reader (istream &stream) | |
Constructs a reader prepared to read PNG image from a stream. | |
~reader () | |
void | read_png () |
Reads the whole PNG data stream into memory. Not particularly useful. | |
void | read_info () |
Reads info about PNG image. | |
void | read_row (byte *bytes) |
Reads a row of image data at a time. | |
void | read_end_info () |
Reads endinig info about PNG image. | |
void | update_info () |
The istream
template parameter specifies the type of input stream to work with. The istream
class should implement the minimum of the following interface:
class my_istream { public: void read(char*, size_t); bool good(); };
With the semantics similar to the std::istream
. Naturally, std::istream
fits this requirement and can be used with the reader class as is.
png::reader< istream >::reader | ( | istream & | stream | ) | [inline, explicit] |
png::reader< istream >::~reader | ( | ) | [inline] |
void png::reader< istream >::read_png | ( | ) | [inline] |
Reads the whole PNG data stream into memory. Not particularly useful.
void png::reader< istream >::read_info | ( | ) | [inline] |
void png::reader< istream >::read_row | ( | byte * | bytes | ) | [inline] |
Reads a row of image data at a time.
void png::reader< istream >::read_end_info | ( | ) | [inline] |
void png::reader< istream >::update_info | ( | ) | [inline] |