mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 07:38:22 +02:00
color-lcms: replace comments in ensure_output_profile_adds_icc()
I did not understand the old comments. The new comments explain what happens here. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
547dc2738a
commit
570b348f45
1 changed files with 6 additions and 4 deletions
|
|
@ -198,8 +198,10 @@ ensure_output_profile_extract_icc(struct cmlcms_output_profile_extract *extract,
|
|||
|
||||
if (cmsIsMatrixShaper(hProfile)) {
|
||||
/**
|
||||
* Optimization for matrix-shaper profile
|
||||
* May have 1DLUT->3x3->3x3->1DLUT, 1DLUT->3x3->1DLUT
|
||||
* Matrix-shaper profiles contain TRC and MatrixColumn tags.
|
||||
* Assumes that AToB or DToB tags do not exist or are
|
||||
* equivalent to TRC + MatrixColumn.
|
||||
* We can take the TRC curves straight as EOTF.
|
||||
*/
|
||||
for (i = 0 ; i < 3; i++) {
|
||||
curve = cmsReadTag(hProfile, tags[i]);
|
||||
|
|
@ -215,8 +217,8 @@ ensure_output_profile_extract_icc(struct cmlcms_output_profile_extract *extract,
|
|||
}
|
||||
} else {
|
||||
/**
|
||||
* Linearization of cLUT profile may have 1DLUT->3DLUT->1DLUT,
|
||||
* 1DLUT->3DLUT, 3DLUT
|
||||
* Any other kind of profile goes through approximate
|
||||
* linearization that produces sampled curves.
|
||||
*/
|
||||
if (!build_eotf_from_clut_profile(lcms_ctx, hProfile,
|
||||
extract->eotf, num_points)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue