Added read_chunk_at and read_chunk_to_buffer functions
This commit is contained in:
1 parent
d5e3f4aa8a
commit
8c0c13f022
4 files changed
+72
-10
No files matched your search
@@ -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),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user