feat: complete multichannel (5-7ch) ICC profile generation & verification
- Profile Creation & Inversion (profout.c, xlut.c, mchan_inv.c):
* Unify BtoA CLUT resolutions for devchan >= 5 (9/17/25/33) to provide dense PCS inversion grids
* Guard all reverse simplicial ops in xlut.c with within_restrictedsize() to prevent SIGSEGV when di > 4 (MXRI cap)
* Enhance Powell optimizer in mchan_inv.c with multi-candidate starting strategy and scaled deltaE^2 Lab coordinates
* Allow icSigColorantTableTag in V2 profiles for devchan >= 5 in icc.c
- Numerical & Geometry Stability (scat.c, gamut.c):
* Fix SIGSEGV in rspl scat.c sparse matrix solver caused by assumption of sorted xcol in 4x unrolled loops
* Add null pointer and tag checks in gamut.c radial_point_triang
- Test Targets & Verification (test_multichannel/):
* Add synthetic .ti1 and .ti3 targets for 5-channel (CMYKO), 6-channel (CMYKOG), and 7-channel (CMYKOGV) workflows
* Add ti1_to_ti3 conversion script and verify_roundtrip.py round-trip verification utility
* Verified end-to-end:
- 5-channel: avg dE = 2.38, max dE = 6.27
- 6-channel: avg dE = 1.90, max dE = 5.40
- 7-channel: avg dE = 2.15, max dE = 5.54
- Build & Housekeeping:
* Add .gitignore for compiled executables, autotools outputs, and generated ICC profiles
* Update MULTICHANNEL_IMPLEMENTATION_PLAN.md with verification results
This commit is contained in:
@@ -10301,9 +10301,11 @@ static int icc_check_sig(
|
||||
&& rdff)
|
||||
warn = 1;
|
||||
|
||||
/* Special case for backwards compatibility */
|
||||
if (ttype != icSigColorantTableType
|
||||
|| p->op != icmSnWrite || getenv("ARGYLL_CREATE_V2COLORANT_TABLE") == NULL) {
|
||||
/* Special case for backwards compatibility and multichannel */
|
||||
if ((ttype != icSigColorantTableType && ttype != icmSigAltColorantTableType)
|
||||
|| p->op != icmSnWrite
|
||||
|| (getenv("ARGYLL_CREATE_V2COLORANT_TABLE") == NULL
|
||||
&& (p->header == NULL || icmCSSig2nchan(p->header->colorSpace) < 5))) {
|
||||
|
||||
if (icmVersionWarning(p, ICM_VER_TYPEVERS, warn,
|
||||
"Tag Type '%s' is not valid for file version %s (valid %s)\n",
|
||||
@@ -10337,9 +10339,10 @@ static int icc_check_sig(
|
||||
|| (p->cflags & icmCFlagAllowWrVersion) == 0
|
||||
|| !icmVersOverlap(&p->tagsigtable[i].vrange, &p->vcrange))) {
|
||||
|
||||
/* Special case for backwards compatibility */
|
||||
/* Special case for backwards compatibility and multichannel */
|
||||
if ((sig != icSigColorantTableTag && sig != icSigColorantTableOutTag)
|
||||
|| getenv("ARGYLL_CREATE_V2COLORANT_TABLE") == NULL) {
|
||||
|| (getenv("ARGYLL_CREATE_V2COLORANT_TABLE") == NULL
|
||||
&& (p->header == NULL || icmCSSig2nchan(p->header->colorSpace) < 5))) {
|
||||
/* Allow MediaBlackPointTag if quirks allowed */
|
||||
if (sig == icSigMediaBlackPointTag
|
||||
&& (p->cflags & icmCFlagAllowQuirks) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user