|
VideoTools
|
A static interface for reading portable-anymap (pnm) files. More...
#include <grpnm.h>
Public Member Functions | |
| PnmReader (int scale=1, bool monochrome_out=false) | |
| Constructor. | |
| void | setup (int scale, bool monochrome_out=false) |
| Sets the decoding scale factor. | |
| void | decode (ImageData &out, const G::Path &in) |
| Decodes a pnm file into an image. Throws on error. | |
| void | decode (ImageData &out, std::istream &in) |
| Decodes a pnm stream into an image. Throws on error. | |
| void | decode (ImageData &out, const char *p_in, size_t n_in) |
| Decodes a pnm buffer into an image. Throws on error. | |
| void | decode (ImageData &out, const ImageBuffer &) |
| Decodes a pnm image buffer into an image. Throws on error. | |
| const PnmInfo & | info () const |
| Returns the pnm header info, ignoring scaling. | |