VideoTools
|
A read interface for libpng. More...
#include <grpng.h>
Public Types | |
typedef std::multimap < std::string, std::string > | Map |
Public Member Functions | |
PngReader (int scale=1, bool monochrome_out=false) | |
Constructor. | |
~PngReader () | |
Destructor. | |
void | setup (int scale, bool monochrome_out=false) |
Sets the decoding scale factor. | |
void | decode (ImageData &out, const G::Path &in) |
Decodes a png file into an image. Throws on error. | |
void | decode (ImageData &out, const char *p_in, size_t n) |
Decodes a png data buffer into an image. Throws on error. | |
void | decode (ImageData &out, const unsigned char *p_in, size_t n) |
Decodes a png data buffer into an image. Throws on error. | |
void | decode (ImageData &out, const ImageBuffer &) |
Decodes a png image buffer into an image. Throws on error. | |
Map | tags () const |
Returns the text tags from the last decode(). | |