color-lcms: Always use cmsContext for LCMS API which has THR suffix

Fix a typo. No CM functional change, just redirect LCMS error
into  created cmsContext which output into weston log.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
dev
Vitaly Prosyak 3 years ago
parent e2ee2b56f9
commit 87f2d09f18
  1. 7
      libweston/color-lcms/color-profile.c

@ -74,12 +74,13 @@ build_eotf_from_clut_profile(cmsContext lcms_ctx,
curve_array[1] = red + num_points;
curve_array[2] = red + 2 * num_points;
xyz_profile = cmsCreateXYZProfile();
xyz_profile = cmsCreateXYZProfileTHR(lcms_ctx);
if (!xyz_profile)
goto release;
transform_rgb_to_xyz = cmsCreateTransform(profile, TYPE_RGB_FLT,
xyz_profile, TYPE_XYZ_FLT,
transform_rgb_to_xyz = cmsCreateTransformTHR(lcms_ctx, profile,
TYPE_RGB_FLT, xyz_profile,
TYPE_XYZ_FLT,
INTENT_ABSOLUTE_COLORIMETRIC,
0);
if (!transform_rgb_to_xyz)

Loading…
Cancel
Save