forked from tTh/FloatImg
fix bad parameters
This commit is contained in:
parent
e00423ed9b
commit
36d30b76d7
@ -195,6 +195,8 @@ int ret;
|
|||||||
memset(&tmp, 0, sizeof(FloatImg));
|
memset(&tmp, 0, sizeof(FloatImg));
|
||||||
fimg_clone(img, &tmp, 0);
|
fimg_clone(img, &tmp, 0);
|
||||||
ret = fimg_pixelize_h_rnd(img, &tmp, k);
|
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_copy_data(&tmp, img);
|
||||||
fimg_destroy(&tmp);
|
fimg_destroy(&tmp);
|
||||||
|
|
||||||
@ -434,9 +436,12 @@ switch (idFx) {
|
|||||||
case CR_pixelizh:
|
case CR_pixelizh:
|
||||||
retval = run_pixelize_0(image, 8);
|
retval = run_pixelize_0(image, 8);
|
||||||
break;
|
break;
|
||||||
|
case CR_pixelizv:
|
||||||
|
retval = run_pixelize_0(image, 32);
|
||||||
|
break;
|
||||||
|
|
||||||
case CR_pixelrand:
|
case CR_pixelrand:
|
||||||
retval = run_pixelize_random(image, -1);
|
retval = run_pixelize_random(image, 16);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CR_splitlevel:
|
case CR_splitlevel:
|
||||||
@ -444,10 +449,10 @@ switch (idFx) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CR_decrgbzc:
|
case CR_decrgbzc:
|
||||||
retval = run_decomprgbz_color(image, -1);
|
retval = run_decomprgbz_color(image, 0);
|
||||||
break;
|
break;
|
||||||
case CR_decrgbzg:
|
case CR_decrgbzg:
|
||||||
retval = run_decomprgbz_gray(image, -1);
|
retval = run_decomprgbz_gray(image, 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CR_hilightr:
|
case CR_hilightr:
|
||||||
|
Loading…
Reference in New Issue
Block a user