summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <soren.sandmann@gmail.com>2016-03-29 12:06:10 -0400
committerSøren Sandmann Pedersen <soren.sandmann@gmail.com>2016-03-29 12:06:10 -0400
commit442b1d603d83279eec248ac30b1baccc8eef4d70 (patch)
treebc8ad64e532dad34740c292e01871cfc1729dceb
parent0d181671637b13b96155b64315660720e3cea180 (diff)
dither and gamma
-rw-r--r--docs/dither.txt6
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: