Support ZSTD compression method for reading (#256)

This commit is contained in:
Stefan Schake authored and GitHub committed 2024-12-20 12:50:34 -08:00
1 parent ff52aea06e
commit a19cf37587
6 files changed
+20 -1

No files matched your search

+7
View File
@@ -515,3 +515,10 @@ fn test_predictor_3_rgb_f32() {
fn test_predictor_3_gray_f32() {
test_image_sum_f32("predictor-3-gray-f32.tif", ColorType::Gray(32), 20008.275);
}
#[test]
#[cfg(feature = "zstd")]
fn test_zstd_compression() {
// gdal_translate -co COMPRESS=ZSTD -co ZSTD_LEVEL=20 int16.tif int16_zstd.tif
test_image_sum_i16("int16_zstd.tif", ColorType::Gray(16), 354396);
}