added basic tiled-based decoding

This commit is contained in:
Tomáš Král committed 2021-04-04 18:15:28 +02:00
1 parent 91fe529859
commit b2a7e35c85
8 files changed
+524 -48

No files matched your search

+30
View File
@@ -215,3 +215,33 @@ fn issue_69() {
//let img_res = decoder.read_image();
//assert!(img_res.is_ok());
//}
#[test]
fn test_tiled_rgb_u8() {
test_image_sum_u8("tiled-rgb-u8.tif", ColorType::RGB(8), 93031606);
}
#[test]
fn test_tiled_rect_rgb_u8() {
test_image_sum_u8("tiled-rect-rgb-u8.tif", ColorType::RGB(8), 67915736);
}
/* #[test]
fn test_tiled_jpeg_rgb_u8() {
test_image_sum_u8("tiled-jpeg-rgb-u8.tif", ColorType::RGB(8), 93031606);
} */
#[test]
fn test_tiled_oversize_gray_u8() {
test_image_sum_u8("tiled-oversize-gray-u8.tif", ColorType::Gray(8), 7095522);
}
#[test]
fn test_tiled_predictor_gray_u8() {
test_image_sum_u8("tiled-predictor-gray-u8.tif", ColorType::Gray(8), 7095522);
}
#[test]
fn test_tiled_cmyk_i8() {
test_image_sum_i8("tiled-cmyk-i8.tif", ColorType::CMYK(8), 8156802);
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.