Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed Nov 27, 2024
1 parent 1699b88 commit 3dfddae
Show file tree
Hide file tree
Showing 2 changed files with 320 additions and 143 deletions.
13 changes: 12 additions & 1 deletion martin/src/cog/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,18 @@ pub enum CogError {
WriteToPngFailed(PathBuf, EncodingError),

#[error(
"The bit depth {} of the tiff file {1} is not accepted by png crate when encoding tif chunk data to png"
"The combination of bit depth {0} and colory typr {2:?} of the tiff file {1} is not accepted by png crate when encoding tif chunk data to png"
)]
PngBitDepthNotAccepted(u8, PathBuf, ColorType),

#[error(
"The color type {0:?} and its bit depth of the tiff file {1} is not supported by png crate"
)]
NotSupportedColorTypeAndBitDepth(tiff::ColorType, PathBuf),

#[error("Couldn't parse the {0} value in gdal metadata(tiff tag 42112) from {1}")]
ParseSTATISTICSValueFailed(String, PathBuf),

#[error("todo")]
InvalidGdalMetaData(String, PathBuf),
}
Loading

0 comments on commit 3dfddae

Please sign in to comment.