mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
simplify clifford test image to greyscale U8
This commit is contained in:
parent
e9224cf4ae
commit
81ebb74b58
1 changed files with 1 additions and 8 deletions
|
|
@ -191,14 +191,7 @@ fn clifford() -> Img {
|
|||
buf[i] -= 1;
|
||||
}
|
||||
}
|
||||
let mut rgb = vec![0u8; 3 * buf.len()];
|
||||
let mut i: usize = 0;
|
||||
while i < buf.len() {
|
||||
let j = 3 * i;
|
||||
(rgb[j], rgb[j + 1], rgb[j + 2]) = (buf[i], buf[i], buf[i]);
|
||||
i += 1;
|
||||
}
|
||||
Img::new(rgb, SIZE.try_into().unwrap(), PixelType::U8x3)
|
||||
Img::new(buf, SIZE.try_into().unwrap(), PixelType::U8)
|
||||
}
|
||||
|
||||
fn test_validator(input: TextEntryPayload) -> Option<xous_ipc::String<256>> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue