From 2460d622b11ab13d86ae1ede5c7a35e5fe8c67fc Mon Sep 17 00:00:00 2001 From: tonton th Date: Sun, 20 Dec 2020 13:19:35 +0100 Subject: [PATCH] nice commit, bro --- Fonderie/crapulator.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/Fonderie/crapulator.c b/Fonderie/crapulator.c index 6266cc5..146d3cc 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,