summaryrefslogtreecommitdiff
path: root/render/thscreen.h
diff options
context:
space:
mode:
Diffstat (limited to 'render/thscreen.h')
-rwxr-xr-x[-rw-r--r--]render/thscreen.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/render/thscreen.h b/render/thscreen.h
index 9a504bc..f14a8a4 100644..100755
--- 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 */
);
/* ---------------------------- */