From 53268650a70b19053ede0e5b77ab1006e2856161 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 4 Aug 2008 21:50:02 +0000 Subject: [PATCH] * dbs.c: generate the initial halftone using random dithering instead of Floyd-Steinberg in order to avoid the energy level getting locally stuck around error diffusion structure artifacts. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2672 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi/dither/dbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipi/dither/dbs.c b/pipi/dither/dbs.c index 68b59ac..2322a0b 100644 --- a/pipi/dither/dbs.c +++ b/pipi/dither/dbs.c @@ -76,7 +76,7 @@ pipi_image_t *pipi_dither_dbs(pipi_image_t *img) tmp1p = pipi_getpixels(tmp1, PIPI_PIXELS_Y_F); tmp1data = (float *)tmp1p->pixels; - dst = pipi_dither_floydsteinberg(src, PIPI_SCAN_SERPENTINE); + dst = pipi_dither_random(src); dstp = pipi_getpixels(dst, PIPI_PIXELS_Y_F); dstdata = (float *)dstp->pixels;