.default_nonsolid_chunk_size = 131072,
.default_solid_chunk_size = 67108864,
},
+#ifdef WITH_ZSTD
+ [WIMLIB_COMPRESSION_TYPE_ZSTD] = {
+ .name = T("Zstandard"),
+ .min_chunk_size = 4096,
+ .max_chunk_size = 268435456,
+ .default_nonsolid_chunk_size = 131072,
+ .default_solid_chunk_size = 131072,
+ },
+#endif
};
/* Is the specified compression type valid? */
wim->compression_type = WIMLIB_COMPRESSION_TYPE_XPRESS;
} else if (wim->hdr.flags & WIM_HDR_FLAG_COMPRESS_LZMS) {
wim->compression_type = WIMLIB_COMPRESSION_TYPE_LZMS;
+#ifdef WITH_ZSTD
+ } else if (wim->hdr.flags & WIM_HDR_FLAG_COMPRESS_ZSTD) {
+ wim->compression_type = WIMLIB_COMPRESSION_TYPE_ZSTD;
+#endif
} else {
return WIMLIB_ERR_INVALID_COMPRESSION_TYPE;
}