From 6b04ee0bab3ebe6f2c487195bac7b86efadd58d3 Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Sun, 20 Jun 2021 19:43:03 +0200 Subject: 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. --- utils/delphi/lcms2dll.pas | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/delphi/lcms2dll.pas b/utils/delphi/lcms2dll.pas index 9af7a0d..9368fc9 100644 --- a/utils/delphi/lcms2dll.pas +++ b/utils/delphi/lcms2dll.pas @@ -3,7 +3,7 @@ //--------------------------------------------------------------------------------- // // Little Color Management System -// Copyright (c) 1998-2014 Marti Maria Saguer +// Copyright (c) 1998-2021 Marti Maria Saguer // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the "Software"), @@ -25,7 +25,7 @@ // //--------------------------------------------------------------------------------- // -// Version 2.6 +// Version 2.13 // UNIT lcms2dll; @@ -1659,6 +1659,9 @@ FUNCTION cmsDetectDestinationBlackPoint( BlackPoint: LPcmsCIEXYZ; hProfile: cmsH // Estimate total area coverage FUNCTION cmsDetectTAC(hProfile: cmsHPROFILE): cmsFloat64Number; StdCall; +// Estimate profile gamma +FUNCTION cmsDetectRGBProfileGamma(hProfile: cmsHPROFILE): cmsFloat64Number; StdCall; + // Poor man's gamut mapping FUNCTION cmsDesaturateLab(Lab: LPcmsCIELab; amax, amin, bmax, bmin: cmsFloat64Number): cmsBool; StdCall; -- cgit v1.2.3