Add horizontal predictor support (#240)

This commit is contained in:
Jean-Baptiste Skutnik authored and GitHub committed 2024-09-23 19:45:45 +01:00
1 parent de6d9cf131
commit e28ad564d9
7 files changed
+475 -77

No files matched your search

+12
View File
@@ -236,6 +236,9 @@ impl fmt::Display for TiffUnsupportedError {
pub enum UsageError {
InvalidChunkType(ChunkType, ChunkType),
InvalidChunkIndex(u32),
PredictorCompressionMismatch,
PredictorIncompatible,
PredictorUnavailable,
}
impl fmt::Display for UsageError {
@@ -250,6 +253,15 @@ impl fmt::Display for UsageError {
)
}
InvalidChunkIndex(index) => write!(fmt, "Image chunk index ({}) requested.", index),
PredictorCompressionMismatch => write!(
fmt,
"The requested predictor is not compatible with the requested compression"
),
PredictorIncompatible => write!(
fmt,
"The requested predictor is not compatible with the image's format"
),
PredictorUnavailable => write!(fmt, "The requested predictor is not available"),
}
}
}