summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2021-06-20 19:43:03 +0200
committerMarti Maria <marti.maria@littlecms.com>2021-06-20 19:43:03 +0200
commit6b04ee0bab3ebe6f2c487195bac7b86efadd58d3 (patch)
tree6361af079f5ebbebd5e0e8e6c19efa183e010b69 /include
parent8564c9b4fbf07d23062bbbbd87d5eb10dd92073f (diff)
downloadlcms2-6b04ee0bab3ebe6f2c487195bac7b86efadd58d3.tar.gz
Add automatic linear space detection
- Added a function to estimate gamma space of RGB profiles (only a subset). This function is still undocumented. - Lcms now automatically turns off optimizations when 16-bit on RGB and input linear space is found.
Diffstat (limited to 'include')
-rw-r--r--include/lcms2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/lcms2.h b/include/lcms2.h
index c748e51..61e2ab3 100644
--- a/include/lcms2.h
+++ b/include/lcms2.h
@@ -1907,6 +1907,8 @@ CMSAPI cmsBool CMSEXPORT cmsDetectDestinationBlackPoint(cmsCIEXYZ* Blac
// Estimate total area coverage
CMSAPI cmsFloat64Number CMSEXPORT cmsDetectTAC(cmsHPROFILE hProfile);
+// Estimate gamma space, alwasys positive. Returns -1 on error.
+CMSAPI cmsFloat64Number CMSEXPORT cmsDetectRGBProfileGamma(cmsHPROFILE hProfile, cmsFloat64Number thereshold);
// Poor man's gamut mapping
CMSAPI cmsBool CMSEXPORT cmsDesaturateLab(cmsCIELab* Lab,