Ink coverage tool

This commit is contained in:
Jakub Melka
2021-07-04 18:11:41 +02:00
parent 8e0ad73c4c
commit 91d7355a20
3 changed files with 65 additions and 26 deletions

View File

@ -728,9 +728,9 @@ int PDFLittleCMS::installCmsPlugins()
cmsBool PDFLittleCMS::optimizePipeline(cmsPipeline** Lut, cmsUInt32Number Intent, cmsUInt32Number* InputFormat, cmsUInt32Number* OutputFormat, cmsUInt32Number* dwFlags)
{
if (*dwFlags & cmsFLAGS_HIGHRESPRECALC)
if (!(*dwFlags & cmsFLAGS_LOWRESPRECALC))
{
// Do not optimize
// Optimize only on low resolution precalculation
return FALSE;
}
@ -811,7 +811,7 @@ cmsBool PDFLittleCMS::optimizePipeline(cmsPipeline** Lut, cmsUInt32Number Intent
for (cmsUInt32Number i = 0; i < gridPoints; ++i)
{
const cmsFloat32Number x = i * factor;
s2.SampledPoints[i] = cmsEvalToneCurveFloat(curve, x);
s2.SampledPoints[i] = cmsEvalToneCurveFloat(curve, interpolate(x, 0.0, 1.0, low, high));
}
s3.Type = type;