aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-01-26 17:23:01 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-01-26 17:25:04 +0100
commit96189b70b85f939401a40364b222b91f905d291a (patch)
treef96acb0f05dcc098768051ebbfd3440151492e2c
parent67433f377693d1598a14da8bbb82136247dd5810 (diff)
downloadfiv-96189b70b85f939401a40364b222b91f905d291a.tar.gz
fiv-96189b70b85f939401a40364b222b91f905d291a.tar.xz
fiv-96189b70b85f939401a40364b222b91f905d291a.zip
Mark places where lcms2 should use contexts
-rw-r--r--fiv-io.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fiv-io.c b/fiv-io.c
index a526b2e..2ed5d39 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -297,7 +297,7 @@ FivIoProfile
fiv_io_profile_new(const void *data, size_t len)
{
#ifdef HAVE_LCMS2
- return cmsOpenProfileFromMem(data, len);
+ return cmsOpenProfileFromMemTHR(NULL, data, len);
#else
(void) data;
(void) len;
@@ -309,7 +309,7 @@ FivIoProfile
fiv_io_profile_new_sRGB(void)
{
#ifdef HAVE_LCMS2
- return cmsCreate_sRGBProfile();
+ return cmsCreate_sRGBProfileTHR(NULL);
#else
return NULL;
#endif
@@ -439,7 +439,7 @@ fiv_io_profile_cmyk(
#else
cmsHTRANSFORM transform = NULL;
if (source && target) {
- transform = cmsCreateTransform(source, TYPE_CMYK_8_REV, target,
+ transform = cmsCreateTransformTHR(NULL, source, TYPE_CMYK_8_REV, target,
FIV_IO_PROFILE_ARGB32, INTENT_PERCEPTUAL, 0);
}
if (transform) {
@@ -471,11 +471,11 @@ fiv_io_profile_rgb_direct(unsigned char *data, int w, int h,
// TODO(p): We should make this optional.
cmsHPROFILE src_fallback = NULL;
if (target && !source)
- source = src_fallback = cmsCreate_sRGBProfile();
+ source = src_fallback = cmsCreate_sRGBProfileTHR(NULL);
cmsHTRANSFORM transform = NULL;
if (source && target) {
- transform = cmsCreateTransform(
+ transform = cmsCreateTransformTHR(NULL,
source, source_format, target, target_format, INTENT_PERCEPTUAL, 0);
}
if (transform) {