pub fn diff_rows(
prev: &[u8],
cur: &[u8],
w: usize,
h: usize,
) -> Option<(usize, usize)>Expand description
Compare two RGB565 byte buffers (same dimensions) and return the dirty row
range aligned to 8-pixel boundaries. Returns None when buffers are
identical.
prev and cur are raw byte views of w * h RGB565 pixels (2 bytes each,
stride = w * 2). The caller is responsible for providing matching-length
slices - typically via a rgb565_as_bytes helper on the pixel type.