Skip to content

Commit

Permalink
shaders/colorspace: explain origin of sigmoidization
Browse files Browse the repository at this point in the history
Both the method and the specific values are taken from the ImageMagick
documentation, so we should at least link to an explanation.
  • Loading branch information
haasn committed Oct 13, 2024
1 parent a546431 commit 9e16c86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/include/libplacebo/shaders/colorspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e16c86

Please sign in to comment.