diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-01-27 15:49:00 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-01-27 18:03:34 +0000 |
commit | 4623d8d77b3b971208d93b61ebcb6e2de153c110 (patch) | |
tree | 3b03311b6b8a6d4da666f55bb13909a1ec8b77bd /fitz/filt_dctd.c | |
parent | 50923a2d9da9023e846bacdf8cc5cc7961c17f7d (diff) | |
download | mupdf-4623d8d77b3b971208d93b61ebcb6e2de153c110.tar.xz |
Remove dependency on fz_obj from the filter creation parameters.
Diffstat (limited to 'fitz/filt_dctd.c')
-rw-r--r-- | fitz/filt_dctd.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fitz/filt_dctd.c b/fitz/filt_dctd.c index 650adac6..03dfe87c 100644 --- a/fitz/filt_dctd.c +++ b/fitz/filt_dctd.c @@ -212,12 +212,12 @@ skip: fz_free(ctx, state); } +/* Default: color_transform = -1 (unset) */ fz_stream * -fz_open_dctd(fz_stream *chain, fz_obj *params) +fz_open_dctd(fz_stream *chain, int color_transform) { - fz_dctd *state = NULL; - fz_obj *obj; fz_context *ctx = chain->ctx; + fz_dctd *state = NULL; fz_var(state); @@ -227,12 +227,8 @@ fz_open_dctd(fz_stream *chain, fz_obj *params) memset(state, 0, sizeof(fz_dctd)); state->ctx = ctx; state->chain = chain; - state->color_transform = -1; /* unset */ + state->color_transform = color_transform; state->init = 0; - - obj = fz_dict_gets(params, "ColorTransform"); - if (obj) - state->color_transform = fz_to_int(obj); } fz_catch(ctx) { |