#include "common/common.h"
#include <iostream>
Go to the source code of this file.
Classes | |
struct | pgmppm::color_t |
Namespaces | |
namespace | pgmppm |
Typedefs | |
typedef bool(* | pgmppm::notify_size_fn )(IN void *context, IN int width, IN int length, IN int max_val) |
typedef void(* | pgmppm::pgm_write_pixel_fn )(IN void *context, IN int x, IN int y, IN int height) |
Functions | |
bool | pgmppm::readPgm (IO std::istream &in, IN notify_size_fn notify, IN pgm_write_pixel_fn write_pixel, IN void *context) |
| |
typedef int(* | pgmppm::pgm_pixel_fn )(IN void *context, IN int x, IN int y) |
typedef color_t(* | pgmppm::ppm_pixel_fn )(IN void *context, IN int x, IN int y) |
void | pgmppm::writePgm (IO std::ostream &out, IN int width, IN int height, IN int max_gray,IN pgm_pixel_fn fn, IN void *context) |
write a pgm file to an output stream | |
void | pgmppm::writePpm (IO std::ostream &out, IN int width, IN int height, IN int max_color, IN ppm_pixel_fn fn, IN void *context) |