Classes |
struct | color_t |
Typedefs |
typedef bool(* | notify_size_fn )(IN void *context, IN int width, IN int length, IN int max_val) |
typedef void(* | pgm_write_pixel_fn )(IN void *context, IN int x, IN int y, IN int height) |
Functions |
bool | readPgm (IO std::istream &in, IN notify_size_fn notify, IN pgm_write_pixel_fn write_pixel, IN void *context) |
Variables |
static const int | s_maxGray = 256 |
static const int | s_maxColor = 256 |
static const char * | s_magicPGM = "P5" |
static const char * | s_magicPPM = "P6" |
|
typedef int(* | pgm_pixel_fn )(IN void *context, IN int x, IN int y) |
typedef color_t(* | ppm_pixel_fn )(IN void *context, IN int x, IN int y) |
void | 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 | writePpm (IO std::ostream &out, IN int width, IN int height, IN int max_color, IN ppm_pixel_fn fn, IN void *context) |