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. 11
      libweston/color-lcms/color-profile.c

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

Loading…
Cancel
Save