Changeset 3082 for libpipi/trunk
- Timestamp:
- Oct 24, 2008, 1:49:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/examples/histogram.c
r2902 r3082 11 11 char *srcname = NULL, *dstname = NULL; 12 12 pipi_image_t *img, *newimg, *tmp; 13 pipi_histogram_t* histogram ;13 pipi_histogram_t* histogram = NULL; 14 14 int ret = 0; 15 15 if(argc < 2) … … 38 38 pipi_get_image_histogram(tmp, histogram, PIPI_COLOR_R|PIPI_COLOR_G|PIPI_COLOR_B); 39 39 40 pipi_render_histogram(tmp, histogram, PIPI_COLOR_R|PIPI_COLOR_G|PIPI_COLOR_B); 40 41 41 pipi_ render_histogram(tmp, histogram, PIPI_COLOR_R|PIPI_COLOR_G|PIPI_COLOR_B);42 pipi_free_histogram(histogram); 42 43 43 44 pipi_save(tmp, dstname); 44 45 pipi_free(newimg); 45 46 pipi_free(tmp); 46 47 return ret; 47 48 }
Note: See TracChangeset
for help on using the changeset viewer.