From c0b89ac5bfb90835ef01573267020e42d4fe070c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 23 Aug 2015 12:17:05 +0200 Subject: Imported Upstream version 1.8.0 --- render/thscreen.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 render/thscreen.h (limited to 'render/thscreen.h') diff --git a/render/thscreen.h b/render/thscreen.h old mode 100644 new mode 100755 index 9a504bc..f14a8a4 --- a/render/thscreen.h +++ b/render/thscreen.h @@ -59,7 +59,8 @@ struct _thscreens { /* ebuf[][-1] is used for next pixel error */ void (*quant)(void *qcntx, double *out, double *in); /* optional quantization func. for edif */ - void *qcntx; /* Context for quant */ + void *qcntx; /* Context for quant */ + double mxerr; /* if != 0, max error to propogate */ sobol *so; /* Random number generator for error diffusion */ @@ -99,7 +100,8 @@ thscreens *new_thscreens( double (**lutfunc)(void *cntx, double in), /* List of callback function, NULL if none */ int edif, /* nz if using error diffusion */ void (*quant)(void *qcntx, double *out, double *in), /* optional quantization func. for edif */ - void *qcntx + void *qcntx, + double mxerr /* If error diffusion anf != 0, max error to propogate */ ); /* ---------------------------- */ -- cgit v1.2.3