mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Fix Paeth for bit depth < 8.
This commit is contained in:
@@ -1362,7 +1362,7 @@ defilter_less_than_8 :: proc(params: ^Filter_Params) -> (ok: bool) #no_bounds_ch
|
|||||||
dest[i] = (src[i] + paeth) & 255;
|
dest[i] = (src[i] + paeth) & 255;
|
||||||
}
|
}
|
||||||
for k in 0..nk {
|
for k in 0..nk {
|
||||||
paeth := filter_paeth(dest[k], up[channels], up[k]);
|
paeth := filter_paeth(dest[k], up[channels+k], up[k]);
|
||||||
dest[channels+k] = (src[channels+k] + paeth) & 255;
|
dest[channels+k] = (src[channels+k] + paeth) & 255;
|
||||||
}
|
}
|
||||||
case:
|
case:
|
||||||
|
|||||||
Reference in New Issue
Block a user