diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2010-04-06 06:10:12 +0000 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2010-04-06 06:10:12 +0000 |
commit | 18a6263c844532880939e36fb184055dedebca1b (patch) | |
tree | 72f58d18f58bf45f49c781365b8b03920b5fe699 /gs/base/gxidata.c | |
parent | e780028e0777d832d7ff69783ec16ec84dbaf697 (diff) |
Change so that link requests in the imaging code occur during initialization of the the image enumeration object. This avoids having the code request a link with every line processed. Also addition of faster code for handling ICC profiles in interpolated images. This avoids many of the conversions that were taking place within that code. Fixes also for rendering bugs that existed when we processed CIELAB colors in graphic fills and when we did interpolation of CIELAB images.
git-svn-id: http://svn.ghostscript.com/ghostscript/branches/icc_work@11020 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gxidata.c')
-rw-r--r-- | gs/base/gxidata.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gs/base/gxidata.c b/gs/base/gxidata.c index d18a1e09a..86f15ee93 100644 --- a/gs/base/gxidata.c +++ b/gs/base/gxidata.c @@ -19,6 +19,7 @@ #include "gxdevice.h" #include "gxcpath.h" #include "gximage.h" +#include "gsicccache.h" /* Forward declarations */ static void update_strip(gx_image_enum *penum); @@ -462,6 +463,9 @@ gx_image1_end_image(gx_image_enum_common_t * info, bool draw_last) (*scaler->template->release) ((stream_state *) scaler); gs_free_object(mem, scaler, "image scaler state"); } + if (penum->icc_link != NULL) { + gsicc_release_link(penum->icc_link); + } gs_free_object(mem, penum->line, "image line"); gs_free_object(mem, penum->buffer, "image buffer"); gx_image_free_enum(&info); |