summaryrefslogtreecommitdiff
path: root/gs/psi
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2011-09-14 12:40:48 -0700
committerChris Liddell <chris.liddell@artifex.com>2012-03-15 11:54:01 +0000
commit8b1c6769277d872efbb01e3bbf51dfb3deafbc13 (patch)
tree463da0e25bdc5a4ed4da3aa6a2198a22327bcdef /gs/psi
parent7292c6155b2b15115ba72a9af0dd2219b4fde320 (diff)
Fix for bug 692323. Performs color management before spatial interpolation with enlargements.
This avoids expensive color management operations when we are doing spatial interpolation. Also a code reduction with this commit.
Diffstat (limited to 'gs/psi')
-rw-r--r--gs/psi/zfimscale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/psi/zfimscale.c b/gs/psi/zfimscale.c
index 4c3dca747..a69525706 100644
--- a/gs/psi/zfimscale.c
+++ b/gs/psi/zfimscale.c
@@ -46,7 +46,8 @@ z_imscale_d(i_ctx_t * i_ctx_p)
if (dict_int_param(op, "Height", 0, 1<<24, -1, &height) < 0)
return_error(e_rangecheck);
- state.params.Colors = 1;
+ state.params.spp_decode = 1;
+ state.params.spp_interp = 1;
state.params.BitsPerComponentIn = 1;
state.params.MaxValueIn = 1;
state.params.WidthIn = width;