Added read_chunk_at and read_chunk_to_buffer functions

This commit is contained in:
Alan Race committed 2022-07-07 15:25:01 +02:00
1 parent d5e3f4aa8a
commit 8c0c13f022
4 files changed
+72 -10

No files matched your search

+1 -1
View File
@@ -512,7 +512,7 @@ fn test_rows_per_strip() {
for i in 0..50 {
let img2 = [i; 2 * 100];
match decoder.read_strip().unwrap() {
match decoder.read_chunk().unwrap() {
DecodingResult::U8(data) => assert_eq!(&img2[..], &data[..]),
other => panic!("Incorrect strip type {:?}", other),
}