nice commit, bro

This commit is contained in:
tonton th 2020-12-20 13:19:35 +01:00
parent 8f6d80da12
commit 2460d622b1
1 changed files with 1 additions and 18 deletions

View File

@ -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,