diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-01 16:13:57 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-01 16:13:57 +0200 |
commit | 094535c010320967639e8e86f974d878e80baa72 (patch) | |
tree | efc3094b20355dcbeebb2c4ece4fcfc69bffedb5 /imdi/cctiff.c | |
parent | c07d0c2d2f6f7b0eb6e92cc6204bf05037957e82 (diff) |
Imported Upstream version 1.7.0upstream/1.7.0
Diffstat (limited to 'imdi/cctiff.c')
-rw-r--r-- | imdi/cctiff.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/imdi/cctiff.c b/imdi/cctiff.c index bb6ee0d..6c6f64f 100644 --- a/imdi/cctiff.c +++ b/imdi/cctiff.c @@ -17,6 +17,10 @@ /* TTBD: + Add dithered 8 bit output mode. Generate 16 bit + internally, then apply screening down to 8 bits + Use render/thrscreen to do the hard work. + Should special case jpeg noop used to embed profile in output, using jpeg_read_coefficients()/jpeg_write_coefficients() rather than jpeg_start_decompress(), jpeg_read_scanlines() etc. @@ -92,6 +96,7 @@ #include "icc.h" #include "xicc.h" #include "imdi.h" +#include "ui.h" #undef DEBUG /* Print detailed debug info */ @@ -1711,12 +1716,15 @@ main(int argc, char *argv[]) { } else { if (wphotometric == PHOTOMETRIC_SEPARATED) { - icc *c = su.profs[su.lclut].c; + icc *c = NULL; icmColorantTable *ct; int iset; int inlen; char *inames = NULL; + if (su.lclut >= 0 && su.lclut < su.nprofs) + c = su.profs[su.lclut].c; + iset = ColorSpaceSignature2TiffInkset(su.outs, &inlen, &inames); /* Use ICC profile ink names if they are available */ |