From a4a406ba56e1bdd6a95e87c6555f1c4433b8ccbc Mon Sep 17 00:00:00 2001 From: RunDevelopment Date: Tue, 15 Jul 2025 16:42:39 +0200 Subject: [PATCH 1/5] Update changelog --- CHANGELOG.md | 5 ----- CHANGES.md | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) delete mode 100644 CHANGELOG.md create mode 100644 CHANGES.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 98793a4..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -# Changelog - -## Release 0.1.0 (2025-04-30) - -Initial release of the project. diff --git a/CHANGES.md b/CHANGES.md new file mode 100644 index 0000000..25d648d --- /dev/null +++ b/CHANGES.md @@ -0,0 +1,27 @@ +# Changes + +## Version 0.2.0 [Unreleased] + +Breaking: + +- Mipmap generation in `Encoder` is now controlled via the `mipmaps: MipmapOptions` field instead of a `WriteOptions` parameter. The parameter on `Encoder::write_surface_with` and `WriteOptions` have been removed. +- Renamed `Encoder::options` to `Encoder::encoding`. +- `decode_rect` and `Decoder::read_surface_rect` now take an `ImageViewMut` instead of a bare `&mut [u8]` + row pitch. +- Removed `DecodeError::RowPitchTooSmall` and `DecodeError::RectBufferTooSmall` errors. +- `ImageView` and `ImageViewMut` now support non-contiguous views. Consumers of those types need to adapt to. + +Added: + +- Added `DataLayout::is_{texture,texture_array,volume}()` methods to check the type of layout. +- Added `new_with`, `cropped`, and `is_contiguous` methods to `ImageView{,Mut}` for handling and using non-contiguous views. +- Added `DecodeError::UnexpectedRectSize` error for when the decoded rectangle size does not match the expected size. +- `R1_UNROM` now supports dithering. ([#63](https://github.com/image-rs/image-dds/pull/63)) +- Fuzz untrusted inputs. ([#60](https://github.com/image-rs/image-dds/pull/60)) + +Fixed: + +- Minimum supported version of `resize` now compiles with MSRV. + +## Version 0.1.0 (2025-04-30) + +Initial release of the project. From bbc418944dc539bf34d83252859b485523c32b6b Mon Sep 17 00:00:00 2001 From: RunDevelopment Date: Tue, 15 Jul 2025 16:42:44 +0200 Subject: [PATCH 2/5] Bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index caa6cf8..43fd19b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dds" -version = "0.1.0" +version = "0.2.0" edition = "2021" rust-version = "1.63.0" From bd120362ce334db5a622f111255613426c2a9de1 Mon Sep 17 00:00:00 2001 From: RunDevelopment Date: Tue, 15 Jul 2025 16:50:20 +0200 Subject: [PATCH 3/5] Update Cargo.toml `include` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 43fd19b..5c9207b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ include = [ "src/", "benches/", "README.md", - "CHANGELOG.md", + "CHANGES.md", "supported-formats.md", "LICENSE-APACHE", "LICENSE-MIT", From fe439f5e2f6f16dc649d7d846831eb84a2ba53ca Mon Sep 17 00:00:00 2001 From: RunDevelopment Date: Fri, 7 Nov 2025 17:21:22 +0100 Subject: [PATCH 4/5] Update changelog --- CHANGES.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 25d648d..3074232 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,19 +8,25 @@ Breaking: - Renamed `Encoder::options` to `Encoder::encoding`. - `decode_rect` and `Decoder::read_surface_rect` now take an `ImageViewMut` instead of a bare `&mut [u8]` + row pitch. - Removed `DecodeError::RowPitchTooSmall` and `DecodeError::RectBufferTooSmall` errors. -- `ImageView` and `ImageViewMut` now support non-contiguous views. Consumers of those types need to adapt to. +- `ImageView` and `ImageViewMut` now support non-contiguous views. Consumers of those types need to adapt too. +- Renamed `SplitSurface` to `SplitView`. `SplitView` also lazily computes fragments on the fly instead of precomputing them. ([#69](https://github.com/image-rs/image-dds/pull/69)) +- `Progress` tokens now support cancellation via the new `CancellationToken`s. ([#83](https://github.com/image-rs/image-dds/pull/83)) Added: -- Added `DataLayout::is_{texture,texture_array,volume}()` methods to check the type of layout. +- Added BC7 encoding. ([#86](https://github.com/image-rs/image-dds/pull/86)) +- Added `DataLayout::is_{texture,texture_array,volume}()` methods to check the kind of resource a layout holds. - Added `new_with`, `cropped`, and `is_contiguous` methods to `ImageView{,Mut}` for handling and using non-contiguous views. - Added `DecodeError::UnexpectedRectSize` error for when the decoded rectangle size does not match the expected size. - `R1_UNROM` now supports dithering. ([#63](https://github.com/image-rs/image-dds/pull/63)) +- All uncompressed formats (expect float32 formats) now support dithering. ([#63](https://github.com/image-rs/image-dds/pull/63)) - Fuzz untrusted inputs. ([#60](https://github.com/image-rs/image-dds/pull/60)) +- Faster and higher quality BC1-5 encoding. ([#72](https://github.com/image-rs/image-dds/pull/72), [#73](https://github.com/image-rs/image-dds/pull/73), [#75](https://github.com/image-rs/image-dds/pull/75), [#76](https://github.com/image-rs/image-dds/pull/76), [#78](https://github.com/image-rs/image-dds/pull/78), [#80](https://github.com/image-rs/image-dds/pull/80), [#84](https://github.com/image-rs/image-dds/pull/84), [#90](https://github.com/image-rs/image-dds/pull/90)) Fixed: - Minimum supported version of `resize` now compiles with MSRV. +- Handle allocation failures and fixed numeric overflow in decoders. ([#68](https://github.com/image-rs/image-dds/pull/68)) ## Version 0.1.0 (2025-04-30) From 4197cb2a88a0715bdea91c88a314f63a04ebca1f Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Mon, 10 Nov 2025 23:12:14 -0800 Subject: [PATCH 5/5] Update date --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 3074232..fba8960 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,6 @@ # Changes -## Version 0.2.0 [Unreleased] +## Version 0.2.0 (2025-11-10) Breaking: