Commit 5f1f8a9
authored
Align with KDFS 1.4.0 rounding update (#548)
Updates the codec rounding for sRGB to align with the KDFS 1.4.0
specification update, which reverts the alpha channel endpoint
expansion behavior to match an earlier version of the specification.
This changes the alpha channel to use the same method
((x << 8) | 0x80) as the RGB channels. The previous behavior for
alpha was doing ((x << 8) | x). The impact of this change is
differences in the LSB for sRGB images.
Fixes #5471 parent d66e8a1 commit 5f1f8a9
File tree
8 files changed
+607
-616
lines changed- Docs
- Source
- Test
- Images/Small
8 files changed
+607
-616
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
925 | 925 | | |
926 | 926 | | |
927 | 927 | | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
| 928 | + | |
| 929 | + | |
937 | 930 | | |
938 | 931 | | |
939 | 932 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1583 | 1583 | | |
1584 | 1584 | | |
1585 | 1585 | | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
| 1586 | + | |
| 1587 | + | |
1589 | 1588 | | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
1595 | | - | |
| 1589 | + | |
1596 | 1590 | | |
1597 | 1591 | | |
1598 | | - | |
| 1592 | + | |
1599 | 1593 | | |
1600 | 1594 | | |
1601 | 1595 | | |
| |||
Lines changed: 149 additions & 149 deletions
Large diffs are not rendered by default.
Lines changed: 149 additions & 149 deletions
Large diffs are not rendered by default.
Lines changed: 149 additions & 149 deletions
Large diffs are not rendered by default.
Lines changed: 149 additions & 149 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
0 commit comments