[Ohrrpgce] SVN: teeemcee/11130 Changes to gif.h for better dithering and nearest-color matching

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Mon Apr 15 21:49:22 PDT 2019


teeemcee
2019-04-15 21:49:22 -0700 (Mon, 15 Apr 2019)
870
Changes to gif.h for better dithering and nearest-color matching

Upstream:
https://github.com/rversteegen/gif-h/commit/f813dd0

Two most interesting commits:

commit 2b913a3d5b901ad9d697c17f2cd9f2d3b6684fa2
Author: Ralph Versteegen <teeemcee at gmail.com>
Date:   Mon Apr 15 20:38:10 2019 +1200

    Cap the accumulated F-S error directly rather than the color, reducing color bleeding

    This adds the kGifMaxAccumError constant which is a useful tunable - you can
    reduce the amount of color bleeding futher or set it really low to reduce the
    amount of dither noise.

    This does decrease dithering speed by about 1%.

commit a84796653577e9d40a4ed3012f8ca614c023daeb
Author: Ralph Versteegen <teeemcee at gmail.com>
Date:   Mon Apr 15 20:20:35 2019 +1200

    Use a better color distance measure - often produces far better results... and strangely is faster too
---
U   wip/lib/gif.h


More information about the Ohrrpgce mailing list