summaryrefslogtreecommitdiff
path: root/imdi/cctiff.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-05-01 16:24:15 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-05-01 16:24:15 +0200
commita30ba67504ffd12c4db499adbb5ce47a7d1f6036 (patch)
tree9ae1a7e3849dda6bbb5c578232f6f2fa5b2e7e7e /imdi/cctiff.c
parent89e99e8a827859729729dfc92d74be4a8f96f1a4 (diff)
parent094535c010320967639e8e86f974d878e80baa72 (diff)
New release 1.7.0
Diffstat (limited to 'imdi/cctiff.c')
-rw-r--r--imdi/cctiff.c10
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 */