summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/band-writer.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-07-12 21:18:45 +0100
committerRobin Watts <robin.watts@artifex.com>2017-07-19 19:41:23 +0100
commitd54763bcd644364c19d3a6a12f889127df583e01 (patch)
tree379843a30fbb263e811ac6cbe3d2a4abe13b6fb3 /include/mupdf/fitz/band-writer.h
parentd541fc4b9eced1b788377df8c7edfd9b8dea4094 (diff)
downloadmupdf-d54763bcd644364c19d3a6a12f889127df583e01.tar.xz
Update band writer (especially PSD) to cope with spots
PSD writer now outputs spot colors. Ensure subtractive colorspaces are stored with proper polarity. The CMYK and spot components need to be 255-X in the PSD format Store PSD format resources using correct Pascal style strings. Photoshop will fail to open if the the ICC profile resource name is not in proper format. (Incorporates fixes from Michael).
Diffstat (limited to 'include/mupdf/fitz/band-writer.h')
-rw-r--r--include/mupdf/fitz/band-writer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mupdf/fitz/band-writer.h b/include/mupdf/fitz/band-writer.h
index 95385d5f..e32d5185 100644
--- a/include/mupdf/fitz/band-writer.h
+++ b/include/mupdf/fitz/band-writer.h
@@ -25,11 +25,13 @@ struct fz_band_writer_s
int w;
int h;
int n;
+ int s;
int alpha;
int xres;
int yres;
int pagenum;
int line;
+ fz_separations *seps;
};
fz_band_writer *fz_new_band_writer_of_size(fz_context *ctx, size_t size, fz_output *out);
@@ -53,9 +55,11 @@ fz_band_writer *fz_new_band_writer_of_size(fz_context *ctx, size_t size, fz_outp
cs: Colorspace (NULL for bitmaps)
+ seps: Separation details (or NULL).
+
Throws exception if incompatible data format.
*/
-void fz_write_header(fz_context *ctx, fz_band_writer *writer, int w, int h, int n, int alpha, int xres, int yres, int pagenum, const fz_colorspace *cs);
+void fz_write_header(fz_context *ctx, fz_band_writer *writer, int w, int h, int n, int alpha, int xres, int yres, int pagenum, const fz_colorspace *cs, fz_separations *seps);
/*
fz_write_band: Cause a band writer to write the next band