summaryrefslogtreecommitdiff
path: root/fitz/res_colorspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/res_colorspace.c')
-rw-r--r--fitz/res_colorspace.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fitz/res_colorspace.c b/fitz/res_colorspace.c
index 2076f348..a2ce19b8 100644
--- a/fitz/res_colorspace.c
+++ b/fitz/res_colorspace.c
@@ -194,6 +194,12 @@ fz_find_device_colorspace(fz_context *ctx, char *name)
return NULL;
}
+int
+fz_colorspace_is_indexed(fz_colorspace *cs)
+{
+ return (cs && !strcmp(cs->name, "Indexed"));
+}
+
/* Fast pixmap color conversions */
static void fast_gray_to_rgb(fz_pixmap *dst, fz_pixmap *src)