This commit is contained in:
Danny Robson 2015-06-02 22:59:48 +10:00
parent b43a2284fc
commit 221e658ad4

View File

@ -67,6 +67,7 @@ namespace util {
} }
// Portable GrayMap: single component greyscale.
struct pgm { struct pgm {
static image::buffer<uint8_t> read (const boost::filesystem::path&); static image::buffer<uint8_t> read (const boost::filesystem::path&);
@ -80,6 +81,7 @@ namespace util {
const boost::filesystem::path &path); const boost::filesystem::path &path);
}; };
/// Portable PixMap: 3-component colour images.
struct ppm { struct ppm {
static void write (const uint8_t *restrict pixels, static void write (const uint8_t *restrict pixels,
size_t width, size_t width,