summaryrefslogtreecommitdiff
path: root/include/mupdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-09-04 12:18:54 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-09-05 12:52:06 +0200
commit173216938390389c68af78518f3f521434cb66a9 (patch)
tree84e890a0ffc90dcebddeff8e0baa020c94a7097b /include/mupdf
parentf825e989dc7e7e339ca525b52ea46d6ffacbacdf (diff)
downloadmupdf-173216938390389c68af78518f3f521434cb66a9.tar.xz
Use colorspace type enum instead of magic profile names.
Diffstat (limited to 'include/mupdf')
-rw-r--r--include/mupdf/fitz/colorspace.h6
-rw-r--r--include/mupdf/fitz/font.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/mupdf/fitz/colorspace.h b/include/mupdf/fitz/colorspace.h
index f027ce2e..aad1c2e1 100644
--- a/include/mupdf/fitz/colorspace.h
+++ b/include/mupdf/fitz/colorspace.h
@@ -209,9 +209,9 @@ struct fz_cal_colorspace_s {
/*
icc methods
*/
-fz_colorspace *fz_new_icc_colorspace(fz_context *ctx, const char *name, int num, fz_buffer *buf);
-fz_colorspace *fz_new_icc_colorspace_from_file(fz_context *ctx, const char *name, const char *path);
-fz_colorspace *fz_new_icc_colorspace_from_stream(fz_context *ctx, const char *name, fz_stream *in);
+fz_colorspace *fz_new_icc_colorspace(fz_context *ctx, enum fz_colorspace_type type, fz_buffer *buf);
+fz_colorspace *fz_new_icc_colorspace_from_file(fz_context *ctx, enum fz_colorspace_type type, const char *path);
+fz_colorspace *fz_new_icc_colorspace_from_stream(fz_context *ctx, enum fz_colorspace_type type, fz_stream *in);
fz_colorspace *fz_new_cal_colorspace(fz_context *ctx, const char *name, float *wp, float *bp, float *gamma, float *matrix);
fz_buffer *fz_new_icc_data_from_cal_colorspace(fz_context *ctx, fz_cal_colorspace *cal);
fz_buffer *fz_icc_data_from_icc_colorspace(fz_context *ctx, const fz_colorspace *cs);
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h
index aaa02552..7aaee3d7 100644
--- a/include/mupdf/fitz/font.h
+++ b/include/mupdf/fitz/font.h
@@ -275,7 +275,7 @@ const unsigned char *fz_lookup_base14_font(fz_context *ctx, const char *name, in
Returns a pointer to the icc file data, or NULL if not present.
*/
-const unsigned char *fz_lookup_icc(fz_context *ctx, const char *name, size_t *len);
+const unsigned char *fz_lookup_icc(fz_context *ctx, enum fz_colorspace_type name, size_t *len);
/*
fz_lookup_cjk_font: Search the builtin cjk fonts for a match.