diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-06 14:44:19 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-19 19:41:23 +0100 |
commit | d541fc4b9eced1b788377df8c7edfd9b8dea4094 (patch) | |
tree | ac1f1ee61ceb7fbf93fe4fe642bd65536222fddb /source/fitz/colorspace-imp.h | |
parent | 5242318aae6b46777326eb4b10514aabd21d7eea (diff) | |
download | mupdf-d541fc4b9eced1b788377df8c7edfd9b8dea4094.tar.xz |
Extend fz_colorspaces to better cope with DeviceN.
We now keep a list of colorant names for every colorspace,
along with a an 'is_device_n' flag, set for all separation
and deviceN spaces.
Diffstat (limited to 'source/fitz/colorspace-imp.h')
-rw-r--r-- | source/fitz/colorspace-imp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/fitz/colorspace-imp.h b/source/fitz/colorspace-imp.h index fb10bf80..b2d266da 100644 --- a/source/fitz/colorspace-imp.h +++ b/source/fitz/colorspace-imp.h @@ -27,14 +27,16 @@ struct fz_colorspace_s fz_storable storable; size_t size; char name[24]; - int n; - int is_subtractive; + unsigned char n; + unsigned char is_subtractive; + unsigned char is_device_n; fz_colorspace_convert_fn *to_ccs; fz_colorspace_convert_fn *from_ccs; fz_colorspace_clamp_fn *clamp; fz_colorspace_base_fn *get_base; fz_colorspace_destruct_fn *free_data; void *data; + char *colorant[FZ_MAX_COLORS]; }; struct fz_iccprofile_s |