fix bad parameters

This commit is contained in:
tTh 2023-02-13 17:43:08 +01:00
parent e00423ed9b
commit 36d30b76d7
1 changed files with 8 additions and 3 deletions

View File

@ -195,6 +195,8 @@ int ret;
memset(&tmp, 0, sizeof(FloatImg));
fimg_clone(img, &tmp, 0);
ret = fimg_pixelize_h_rnd(img, &tmp, k);
if (verbosity > 1) fprintf(stderr, "in %s, pixelize H rnd -> %d\n",
__func__, ret);
fimg_copy_data(&tmp, img);
fimg_destroy(&tmp);
@ -434,9 +436,12 @@ switch (idFx) {
case CR_pixelizh:
retval = run_pixelize_0(image, 8);
break;
case CR_pixelizv:
retval = run_pixelize_0(image, 32);
break;
case CR_pixelrand:
retval = run_pixelize_random(image, -1);
retval = run_pixelize_random(image, 16);
break;
case CR_splitlevel:
@ -444,10 +449,10 @@ switch (idFx) {
break;
case CR_decrgbzc:
retval = run_decomprgbz_color(image, -1);
retval = run_decomprgbz_color(image, 0);
break;
case CR_decrgbzg:
retval = run_decomprgbz_gray(image, -1);
retval = run_decomprgbz_gray(image, 0);
break;
case CR_hilightr: