diff --git a/Fonderie/crapulator.c b/Fonderie/crapulator.c index ad53dc6..c02658b 100644 --- a/Fonderie/crapulator.c +++ b/Fonderie/crapulator.c @@ -200,6 +200,20 @@ if (verbosity > 1) fprintf(stderr, "in %s, pixelize H rnd -> %d\n", fimg_copy_data(&tmp, img); 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; } /* -------------------------------------------------------------- */ @@ -275,10 +289,13 @@ if (notused) { memset(&tmp, 0, sizeof(FloatImg)); fimg_clone(img, &tmp, 0); ret = poke_sup_rb_g(img, &tmp); +if (ret) { + fprintf(stderr, "%s: ret = %d\n", __func__, ret); + } fimg_copy_data(&tmp, img); fimg_destroy(&tmp); -return 0; +return ret; } /* -------------------------------------------------------------- */ /* @@ -488,6 +505,11 @@ switch (idFx) { retval = fimg_auto_thermique(image, image, 0); break; + case CR_triptyq: + /* added Mon Apr 1 15:52:32 UTC 2024*/ + retval = run_triptyq(image, 0); + break; + default : fprintf(stderr, "%s : effect #%d invalid\n", __func__, idFx); diff --git a/Fonderie/crapulors.liste b/Fonderie/crapulors.liste index 2cab3e0..7e0196f 100644 --- a/Fonderie/crapulors.liste +++ b/Fonderie/crapulors.liste @@ -45,4 +45,5 @@ 61 fluffy 1 0.12 62 suprbg 1 0 80 thermocol 1 0 +81 triptyq 1 0 -1 end 1 1.0