Implement DEFLATE compression level control properly, with a semver break

This commit is contained in:
Sergey "Shnatsel" Davidoff committed 2026-03-05 17:59:18 +00:00
1 parent 37578add53
commit 0362e6e31d
5 files changed
+15 -27

No files matched your search

+1 -3
View File
@@ -38,8 +38,6 @@ use self::writer::*;
/// [Predictor::Horizontal] is for integer sample types.
/// [Predictor::FloatingPoint] is for floating-point sample types (f32, f64).
pub type Predictor = crate::tags::Predictor;
#[cfg(feature = "deflate")]
pub type DeflateLevel = compression::DeflateLevel;
#[derive(Clone, Copy, PartialEq, Default)]
pub enum Compression {
@@ -48,7 +46,7 @@ pub enum Compression {
#[cfg(feature = "lzw")]
Lzw,
#[cfg(feature = "deflate")]
Deflate(DeflateLevel),
Deflate(u8),
Packbits,
}