mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 01:58:03 +02:00
color-lcms: rewrite misleading comment
Update a comment explaining what we may do in the future when cmsSmoothToneCurve() fails. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
4393bec40a
commit
e6289aee68
1 changed files with 3 additions and 3 deletions
|
|
@ -1464,7 +1464,7 @@ build_shaper(cmsContext lcms_ctx, cmsHTRANSFORM cmap_3dlut,
|
|||
/**
|
||||
* We use cmsSmoothToneCurve() for:
|
||||
*
|
||||
* a) checking monotonicity and degenerated curves;
|
||||
* a) trying to ensure monotonicity;
|
||||
* b) getting rid of abrupt changes;
|
||||
*
|
||||
* A lambda between 0.0 and 1.0 is usually enough. 1.0 means moderate to
|
||||
|
|
@ -1493,8 +1493,8 @@ build_shaper(cmsContext lcms_ctx, cmsHTRANSFORM cmap_3dlut,
|
|||
}
|
||||
|
||||
/**
|
||||
* TODO: that should fail if the curves are not monotonic. Try
|
||||
* to make curve monotonic if possible before calling this.
|
||||
* TODO: that should fail if the produced curves are not
|
||||
* monotonic. Try to smooth harder if that happens.
|
||||
*/
|
||||
ret = cmsSmoothToneCurve(tc[ch], smoothing_param);
|
||||
if (!ret)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue