Skip to content

Commit

Permalink
get rid of a big profile thet is not used
Browse files Browse the repository at this point in the history
Recover space
  • Loading branch information
mm2 committed Jan 19, 2025
1 parent 5aab1ba commit 08f4abb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Binary file removed testbed/TestCLT.icc
Binary file not shown.
2 changes: 1 addition & 1 deletion testbed/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ testcms_srcs = files(

# copy all iccs to the build dir and run the tests there
iccs = [
'bad.icc', 'crayons.icc', 'new.icc', 'test2.icc', 'test4.icc', 'TestCLT.icc',
'bad.icc', 'crayons.icc', 'new.icc', 'test2.icc', 'test4.icc',
'bad_mpe.icc', 'ibm-t61.icc', 'test1.icc', 'test3.icc', 'test5.icc',
'toosmall.icc'
]
Expand Down
2 changes: 1 addition & 1 deletion testbed/testcms2.c
Original file line number Diff line number Diff line change
Expand Up @@ -9828,7 +9828,7 @@ int main(int argc, char* argv[])
Check("Rendering intent plugin", CheckIntentPlugin);
Check("Full transform plugin", CheckTransformPlugin);
Check("Mutex plugin", CheckMutexPlugin);

Check("Double from float", CheckMethodPackDoublesFromFloat);
}


Expand Down
9 changes: 6 additions & 3 deletions testbed/testplugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ cmsInt32Number CheckMethodPackDoublesFromFloat(void)
if (l_pFakeProfileLAB == NULL)
return 0;

OutputCMYKProfile = cmsOpenProfileFromFileTHR(ctx, "TestCLT.icc", "r");
OutputCMYKProfile = cmsOpenProfileFromFileTHR(ctx, "test2.icc", "r");

if (OutputCMYKProfile == NULL)
return 0;
Expand Down Expand Up @@ -1569,12 +1569,15 @@ cmsInt32Number CheckMethodPackDoublesFromFloat(void)
memset(l_D_OutputColorArrayBlue, 0, sizeof(l_D_OutputColorArrayBlue));

cmsDoTransform(xform, &LabInBlack, l_D_OutputColorArrayBlack, 1);
cmsDoTransform(xform, &LabInBlue, l_D_OutputColorArrayBlue, 1);

cmsDoTransform(xform, &LabInBlue, l_D_OutputColorArrayBlue, 1);

cmsDeleteTransform(xform);
cmsDeleteContext(ctx);

if (l_D_OutputColorArrayBlack[0] < 85 ||
l_D_OutputColorArrayBlue[0] < 90)
Fail("Ink amount is not right");

return 1;
}

0 comments on commit 08f4abb

Please sign in to comment.