瀏覽代碼

- added special case for preferred cmmtype LINO

tags/v0.3.0
Andreas Romeyke 3 年之前
父節點
當前提交
e9de63bf49
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. +4
    -0
      README.compile
  2. +3
    -0
      src/validate_icc/check_icc_header.c

+ 4
- 0
README.compile 查看文件

@@ -6,6 +6,10 @@ mkdir build
cd build
cmake ../src/ -DCMAKE_C_FLAGS="-W -Wall -Wextra -ansi -pedantic -O2 -Wno-unused-function"
make
###
# if you want to allow preferred CMM type "LINO", you should use the cmake-call
# cmake ../src/ -DCMAKE_C_FLAGS="-DALLOW_CMMTYPE_LINO -W -Wall -Wextra -ansi -pedantic -O2 -Wno-unused-function"

########################################################
# alternatively for windows crosscompiling using mingw
########################################################


+ 3
- 0
src/validate_icc/check_icc_header.c 查看文件

@@ -58,6 +58,9 @@ icc_returncode_t parse_icc_header_v240_v430(unsigned long iccsize, char * iccdat
(0 != strncmp("TCMM", preferredcmmtype, 4)) &&
(0 != strncmp("32BT", preferredcmmtype, 4)) &&
(0 != strncmp("WTG ", preferredcmmtype, 4)) &&
#ifdef ALLOW_CMMTYPE_LINO
(0 != strncmp("LINO", preferredcmmtype, 4)) &&
#endif
(0 != strncmp("zc00", preferredcmmtype, 4))

) FAIL(icc_error_preferredcmmtype, "preferred cmmtype ('%s') should be empty or (possibly, because ICC validation is alpha code) one of following strings: 'ADBE' 'ACMS' 'appl' 'CCMS' 'UCCM' 'UCMS' 'EFI ' 'FF ' 'EXAC' 'HCMM' 'argl' 'LgoS' 'HDM ' 'lcms' 'KCMS' 'MCML' 'WCS ' 'SIGN' 'RGMS' 'SICC' 'TCMM' '32BT' 'WTG ' 'zc00'", preferredcmmtype);


Loading…
取消
儲存