From 94214db85381f246290cfebb61de02aea2a441b3 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 26 Sep 2013 10:24:01 +0200 Subject: Migration to lcms2 Closes #25 https://github.com/mate-desktop/mate-image-viewer/issues/25 See https://git.gnome.org/browse/eog/commit/?id=3c3a835 --- src/eom-metadata-reader-jpg.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/eom-metadata-reader-jpg.c') diff --git a/src/eom-metadata-reader-jpg.c b/src/eom-metadata-reader-jpg.c index 5d6a79c..9fc79b7 100644 --- a/src/eom-metadata-reader-jpg.c +++ b/src/eom-metadata-reader-jpg.c @@ -513,8 +513,6 @@ eom_metadata_reader_jpg_get_icc_profile (EomMetadataReaderJpg *emr) priv = emr->priv; if (priv->icc_chunk) { - cmsErrorAction (LCMS_ERROR_SHOW); - profile = cmsOpenProfileFromMem(priv->icc_chunk + 14, priv->icc_len - 14); if (profile) { @@ -562,7 +560,7 @@ eom_metadata_reader_jpg_get_icc_profile (EomMetadataReaderJpg *emr) { cmsCIExyY whitepoint; cmsCIExyYTRIPLE primaries; - LPGAMMATABLE gamma[3]; + cmsToneCurve *gamma[3]; double gammaValue; ExifRational r; @@ -619,11 +617,11 @@ eom_metadata_reader_jpg_get_icc_profile (EomMetadataReaderJpg *emr) gammaValue = 2.2; } - gamma[0] = gamma[1] = gamma[2] = cmsBuildGamma (256, gammaValue); + gamma[0] = gamma[1] = gamma[2] = cmsBuildGamma (NULL, gammaValue); profile = cmsCreateRGBProfile (&whitepoint, &primaries, gamma); - cmsFreeGamma(gamma[0]); + cmsFreeToneCurve(gamma[0]); eom_debug_message (DEBUG_LCMS, "JPEG is calibrated"); -- cgit v1.2.1