diff --git a/Fonderie/crapulator.c b/Fonderie/crapulator.c index 6266cc52..146d3cc8 100644 --- a/Fonderie/crapulator.c +++ b/Fonderie/crapulator.c @@ -98,23 +98,6 @@ fimg_destroy(&img); return retval; } /* -------------------------------------------------------------- */ -static int desaturate(FloatImg *pimg) -{ -FloatImg img; -int retval; -fimg_clone(pimg, &img, 0); -retval = fimg_desaturate(pimg, &img, 0); -if (retval) { - fprintf(stderr, "%s : err desaturate %d\n", - __func__, retval); - exit(1); - } -fimg_copy_data(&img, pimg); -fimg_destroy(&img); - -return 0; -} -/* -------------------------------------------------------------- */ /* * This is the main filter engine used both for input and * output processing. It can be called by the filterstack @@ -193,7 +176,7 @@ switch (idFx) { retval = insitu_filtre3x3(image, 0); break; case 14: - retval = desaturate(image); + retval = fimg_desaturate(image, image, 0); break; case 15: retval = kill_a_few_lines(image, fval,