diff options
-rw-r--r-- | docs/dither.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/dither.txt b/docs/dither.txt index c19336d2..1b36fc1b 100644 --- a/docs/dither.txt +++ b/docs/dither.txt @@ -129,6 +129,12 @@ principle it should be scaled according to the number of bits in the destination format, but the whole point of sRGB is that the number of bits varies with luminance. +An observation is that dithering can be done by converting from linear +to sRGB, then rounding *down* to the nearest sRGB step, and then +making a decision whether to increase the least-significant bit or +not. That final decision could probably be made by comparing the +linear value to a precomputed matrix. + Old algorithm: |