// Scalar implementations of PNG filters — non-wasm.
///|
/// Decode-side Up reconstruction: buf[i] = (row[i] + prev[i]) mod 256.
fn reconstruct_filter_up_impl(
row : Bytes,
prev : Bytes,
buf : FixedArray[Byte],
) -> Unit {
let len = row.length()
for i in 0.. FixedArray[Byte] {
let len = row.length()
let buf = FixedArray::make(len, b'\x00')
for i in 0.. FixedArray[Byte] {
let len = row.length()
let buf = FixedArray::make(len, b'\x00')
for i in 0..= bpp { row[i - bpp].to_int() } else { 0 }
buf[i] = ((raw_val - a + 256) % 256).to_byte()
}
buf
}