add triptyq effect to fonderie

This commit is contained in:
tTh 2024-04-01 18:04:40 +02:00
parent a433176c54
commit 79f4e011a5
2 changed files with 24 additions and 1 deletions

View File

@ -200,6 +200,20 @@ if (verbosity > 1) fprintf(stderr, "in %s, pixelize H rnd -> %d\n",
fimg_copy_data(&tmp, img); fimg_copy_data(&tmp, img);
fimg_destroy(&tmp); fimg_destroy(&tmp);
return ret;
}
/* -------------------------------------------------------------- */
/* added Mon Apr 1 15:56:54 UTC 2024 */
static int run_triptyq(FloatImg *img, int k)
{
FloatImg tmp;
int ret;
memset(&tmp, 0, sizeof(FloatImg));
fimg_clone(img, &tmp, 0);
ret = fimg_make_triptyq(img, &tmp, k);
fimg_copy_data(&tmp, img);
fimg_destroy(&tmp);
return ret; return ret;
} }
/* -------------------------------------------------------------- */ /* -------------------------------------------------------------- */
@ -275,10 +289,13 @@ if (notused) {
memset(&tmp, 0, sizeof(FloatImg)); memset(&tmp, 0, sizeof(FloatImg));
fimg_clone(img, &tmp, 0); fimg_clone(img, &tmp, 0);
ret = poke_sup_rb_g(img, &tmp); ret = poke_sup_rb_g(img, &tmp);
if (ret) {
fprintf(stderr, "%s: ret = %d\n", __func__, ret);
}
fimg_copy_data(&tmp, img); fimg_copy_data(&tmp, img);
fimg_destroy(&tmp); fimg_destroy(&tmp);
return 0; return ret;
} }
/* -------------------------------------------------------------- */ /* -------------------------------------------------------------- */
/* /*
@ -488,6 +505,11 @@ switch (idFx) {
retval = fimg_auto_thermique(image, image, 0); retval = fimg_auto_thermique(image, image, 0);
break; break;
case CR_triptyq:
/* added Mon Apr 1 15:52:32 UTC 2024*/
retval = run_triptyq(image, 0);
break;
default : default :
fprintf(stderr, "%s : effect #%d invalid\n", fprintf(stderr, "%s : effect #%d invalid\n",
__func__, idFx); __func__, idFx);

View File

@ -45,4 +45,5 @@
61 fluffy 1 0.12 61 fluffy 1 0.12
62 suprbg 1 0 62 suprbg 1 0
80 thermocol 1 0 80 thermocol 1 0
81 triptyq 1 0
-1 end 1 1.0 -1 end 1 1.0