Classes |
struct | color_t |
Typedefs |
typedef bool(* | notify_size_fn )(void *context, int width, int length, int max_val) |
typedef void(* | pgm_write_pixel_fn )(void *context, int x, int y, int height) |
Functions |
bool | readPgm (std::istream &in, notify_size_fn notify, pgm_write_pixel_fn write_pixel, 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 )(void *context, int x, int y) |
typedef color_t(* | ppm_pixel_fn )(void *context, int x, int y) |
void | writePgm (std::ostream &out,int width,int height,int max_gray,pgm_pixel_fn fn,void *context) |
| write a pgm file to an output stream
|
void | writePpm (std::ostream &out, int width, int height, int max_color, ppm_pixel_fn fn, void *context) |