From ccfe50e838ae0f025e2b9601c4794a820f12b4be Mon Sep 17 00:00:00 2001 From: tonton th Date: Sun, 10 Jan 2021 16:40:49 +0100 Subject: [PATCH] + qsortrgb --- Fonderie/crapulator.c | 7 ++++++- Fonderie/crapulors.liste | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Fonderie/crapulator.c b/Fonderie/crapulator.c index f1fcf34c..2125f8bf 100644 --- a/Fonderie/crapulator.c +++ b/Fonderie/crapulator.c @@ -225,8 +225,13 @@ switch (idFx) { retval = multilines_shift_0(image, 11, 120); break; + case CR_qsortrgb: + // fprintf(stderr, "!!! %d !!!\n", idFx); + retval = fimg_qsort_rgb_b(image, image, 0); + break; + case CR_message: - fprintf(stderr, "### message from pid %d, fv=%f ###\n", + fprintf(stderr, "### msg from pid %d, fval=%f ###\n", getpid(), fval); retval = 0; break; diff --git a/Fonderie/crapulors.liste b/Fonderie/crapulors.liste index a4660b3d..fdcf635c 100644 --- a/Fonderie/crapulors.liste +++ b/Fonderie/crapulors.liste @@ -24,6 +24,7 @@ 25 vsglitch 1 1.0 26 rndblks 1 1.0 27 shiftln0 1 1.0 +28 qsortrgb 2 1.0 42 nothing 42 3.14159 99 message 1 1.0 -1 end 1 1.0