Add QoiDecoder, handle padding properly + refactor
This commit is contained in:
parent
acdd29060c
commit
0eb8a7ade7
4 changed files with 87 additions and 45 deletions
|
|
@ -98,7 +98,7 @@ fn test_reference_images() -> Result<()> {
|
|||
let encoded = qoi_encode_to_vec(&img.data, img.width, img.height, img.channels, 0)?;
|
||||
let expected = fs::read(qoi_path)?;
|
||||
compare_slices(&png_name, "encoding", &encoded, &expected)?;
|
||||
let (_header, decoded) = qoi_decode_to_vec(&expected, img.channels)?;
|
||||
let (_header, decoded) = qoi_decode_to_vec(&expected)?;
|
||||
compare_slices(&png_name, "decoding", &decoded, &img.data)?;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue