Browse Source

* sample.c : fix comment

master
Alex 'AdUser' Z 10 years ago
parent
commit
5584d215cb
  1. 8
      src/sample.c

8
src/sample.c

@ -36,9 +36,9 @@ imdb_sample(imdb_rec_t * const rec,
/* TODO: color maps */ /* TODO: color maps */
/* 2 -> 256 : number of colors */ /* 2 -> 256 : number of colors */
/* 3 -> 0 : treedepth -> auto */ /* 4 -> 0 : treedepth -> auto */
/* 4 -> 0 : dither -> none */ /* 5 -> 0 : dither -> none */
/* 5 -> 0 : measure_error -> none */ /* 6 -> 0 : measure_error -> none */
if (status == MagickPass) if (status == MagickPass)
status = MagickQuantizeImage(wand, 256, GRAYColorspace, 0, 0, 0); status = MagickQuantizeImage(wand, 256, GRAYColorspace, 0, 0, 0);
@ -90,7 +90,7 @@ imdb_sample(imdb_rec_t * const rec,
memcpy(&rec->data[REC_OFF_BM], buf, BITMAP_SIZE); memcpy(&rec->data[REC_OFF_BM], buf, BITMAP_SIZE);
} else { } else {
description = MagickGetException(wand, &severity); description = MagickGetException(wand, &severity);
fprintf(stderr, "%03d %.1024s\n", severity, description); /* FIXME */ fprintf(stderr, "%03d %.1024s\n", severity, description);
} }
DestroyMagickWand(wand); DestroyMagickWand(wand);

Loading…
Cancel
Save