summaryrefslogtreecommitdiff
path: root/src/eom-metadata-reader-jpg.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-09-26 10:24:01 +0200
committerStefano Karapetsas <[email protected]>2013-09-26 10:24:01 +0200
commit94214db85381f246290cfebb61de02aea2a441b3 (patch)
tree8f6871f7bfc8fcc2f5bf0334c37e6982ba24c3aa /src/eom-metadata-reader-jpg.c
parent144066a7196fb19e1cb976d7ff7bdee353818fd5 (diff)
downloadeom-94214db85381f246290cfebb61de02aea2a441b3.tar.bz2
eom-94214db85381f246290cfebb61de02aea2a441b3.tar.xz
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
Diffstat (limited to 'src/eom-metadata-reader-jpg.c')
-rw-r--r--src/eom-metadata-reader-jpg.c8
1 files changed, 3 insertions, 5 deletions
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");