From 459b4f39086cd807c0c357a0046e08e862c3e81f Mon Sep 17 00:00:00 2001 From: Andreas Molzer Date: Sun, 11 Oct 2020 15:07:56 +0200 Subject: [PATCH 1/4] Update meta data --- CHANGES.md | 10 +++++++++- Cargo.toml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 63533af..46d5911 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,11 +1,19 @@ # Version 0.6.0-alpha +New features: * Support for decoding BigTIFF with 64-bit offsets +* The value types byte, `f32`, `f64` are now recognized +* Support for Modern JPEG encoded images + +Improvements: * Better support for adding auxiliary tags before encoding image data +* Switched to lzw decoder library `weezl` for performance +* The `ColorType` trait now supports `SAMPLE_ENCODING` hints + +Fixes: * Fixed decoding of inline ASCII in tags * Fixed handling after null terminator in ASCII data * Recognize tile and sample format tags -* Note: these notes will be merged into 0.6.0 when it is released # Version 0.5.0 diff --git a/Cargo.toml b/Cargo.toml index 268e58a..35b19e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tiff" -version = "0.6.0-alpha" +version = "0.6.0" authors = [ "ccgn", "bvssvni ", From ed22865f041f141362c1ff6bd977860377f969fe Mon Sep 17 00:00:00 2001 From: Andreas Molzer Date: Sun, 11 Oct 2020 15:09:29 +0200 Subject: [PATCH 2/4] Remove unused and incorrect Wrapping impl This is used in the predictor and should be reversible but for floating point the simply addition is not. It should instead be some variant of byte casting but it hasn't been implemented yet. --- src/decoder/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index 4cc1bd7..033f2dd 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -237,18 +237,6 @@ impl Wrapping for u64 { } } -impl Wrapping for f32 { - fn wrapping_add(&self, other: Self) -> Self { - self + other - } -} - -impl Wrapping for f64 { - fn wrapping_add(&self, other: Self) -> Self { - self + other - } -} - fn rev_hpredict_nsamp(image: &mut [T], size: (u32, u32), samples: usize) -> TiffResult<()> where T: Copy + Wrapping, From 369c602952f4378137880ea2b8057a35ecb14e06 Mon Sep 17 00:00:00 2001 From: Andreas Molzer Date: Sun, 11 Oct 2020 18:17:53 +0200 Subject: [PATCH 3/4] Adjust supported features in Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b807724..7c660e8 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ TIFF decoding and encoding library in pure Rust ### Features - Baseline spec (other than formats and tags listed below as not supported) - Multipage +- BigTIFF - Incremental decoding ### Formats @@ -43,4 +44,3 @@ Formats and interpretations not listed above or with empty entries are unsupport - Baseline tags - `ExtraSamples` - Extension tags -- BigTIFF From 481ef3781a6f5f5d859b8ba27dbe7abdcc02fece Mon Sep 17 00:00:00 2001 From: Andreas Molzer Date: Mon, 12 Oct 2020 19:39:45 +0200 Subject: [PATCH 4/4] Fix changelog version --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 46d5911..33566e6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,4 @@ -# Version 0.6.0-alpha +# Version 0.6.0 New features: * Support for decoding BigTIFF with 64-bit offsets