Browse Source

nice commit, bro

master
tonton th 2 years ago
parent
commit
2460d622b1
  1. 19
      Fonderie/crapulator.c

19
Fonderie/crapulator.c

@ -98,23 +98,6 @@ fimg_destroy(&img); @@ -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) { @@ -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,

Loading…
Cancel
Save