summaryrefslogtreecommitdiff
path: root/xps/ghostxps.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2007-09-24 13:21:23 +0000
committerTor Andersson <tor.andersson@artifex.com>2007-09-24 13:21:23 +0000
commitf6c44828f9c9cbb3f5b3060da4d84a5a35588294 (patch)
treefc3e4e7c37dd8cf5183435548414fbf52837115a /xps/ghostxps.h
parentb9b4636a0436e0a3f724294cff4651f8ec3b616f (diff)
Parse ICC profiles (not working). Find dependencies on ICC profile resources when parsing relations from content. Periodically free cached resources.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2919 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'xps/ghostxps.h')
-rw-r--r--xps/ghostxps.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/xps/ghostxps.h b/xps/ghostxps.h
index 2447c641c..6456a16ef 100644
--- a/xps/ghostxps.h
+++ b/xps/ghostxps.h
@@ -223,11 +223,14 @@ struct xps_part_s
xps_font_t *font; /* parsed font resource */
xps_image_t *image; /* parsed and decoded image resource */
gs_color_space *icc; /* parsed icc profile resource */
+
+ int deobfuscated; /* have we deobfuscated the font data? */
};
xps_part_t *xps_new_part(xps_context_t *ctx, char *name, int capacity);
xps_part_t *xps_find_part(xps_context_t *ctx, char *name);
void xps_free_part(xps_context_t *ctx, xps_part_t *part);
+void xps_free_part_caches(xps_context_t *ctx, xps_part_t *part);
int xps_add_relation(xps_context_t *ctx, char *source, char *target, char *type);
@@ -356,9 +359,9 @@ int xps_unclip(xps_context_t *ctx, gs_rect *saved_bounds);
int xps_fill(xps_context_t *ctx);
void xps_bounds_in_user_space(xps_context_t *ctx, gs_rect *user);
-void xps_parse_color(xps_context_t *ctx, char *hexstring, gs_color_space **csp, float *samples);
-void xps_set_color(xps_context_t *ctx, gs_color_space *colorspace, float *samples);
-int xps_parse_icc_profile(xps_context_t *ctx, gs_color_space **csp, byte *data, int length);
+int xps_parse_color(xps_context_t *ctx, char *hexstring, gs_color_space **csp, float *samples);
+int xps_set_color(xps_context_t *ctx, gs_color_space *colorspace, float *samples);
+int xps_parse_icc_profile(xps_context_t *ctx, gs_color_space **csp, byte *data, int length, int ncomp);
/*
* Static XML resources.