From 9e16c86f9a37af7fb207241150c2fe7ba50e3471 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 12 Oct 2024 02:29:58 +0200 Subject: [PATCH] shaders/colorspace: explain origin of sigmoidization Both the method and the specific values are taken from the ImageMagick documentation, so we should at least link to an explanation. --- src/include/libplacebo/shaders/colorspace.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/libplacebo/shaders/colorspace.h b/src/include/libplacebo/shaders/colorspace.h index 8bd3e6f8..44c9f30f 100644 --- a/src/include/libplacebo/shaders/colorspace.h +++ b/src/include/libplacebo/shaders/colorspace.h @@ -90,6 +90,9 @@ PL_API extern const struct pl_sigmoid_params pl_sigmoid_default_params; // to neutral and away from the extremes. If `params` is NULL, it defaults to // &pl_sigmoid_default_params. // +// For more information about sigmoidization, see: +// https://imagemagick.org/Usage/resize/#resize_sigmoidal +// // Warning: This function clamps the input to the interval [0,1]; and as such // it should *NOT* be used on already-decoded high-dynamic range content. PL_API void pl_shader_sigmoidize(pl_shader sh, const struct pl_sigmoid_params *params);