summaryrefslogtreecommitdiff
path: root/Ports/stb
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-05-31 09:08:26 -0400
committerAndreas Kling <kling@serenityos.org>2023-05-31 16:22:49 +0200
commit830a3a25dc6d1422caf31aa88b381ce2e63471ef (patch)
tree34572959eba9cb461fd41971328d6cd4186e3854 /Ports/stb
parent40e1ec6cf9b27644456963f3a549d07c8ec29b85 (diff)
downloadserenity-830a3a25dc6d1422caf31aa88b381ce2e63471ef.zip
WebP/Lossy: Add a missing clamp() in `TM_PRED` prediction
The spec has that clamp at the end of https://datatracker.ietf.org/doc/html/rfc6386#section-12.2: The exact algorithm is as follows: [...] b[r][c] = clamp255(L[r]+ A[c] - P); For the test images I'm looking at, it doesn't seem to make a dramatic difference, but omitting it in `B_TM_PRED` did make a dramatic difference, so add it. (Also, the spec demands it.)
Diffstat (limited to 'Ports/stb')
0 files changed, 0 insertions, 0 deletions