From 94b28ef746be1d084a73c98e0fdc00af3afe28c4 Mon Sep 17 00:00:00 2001 From: Kirill Kuzminykh Date: Wed, 29 Nov 2023 00:46:35 +0300 Subject: [PATCH] Prepare to release. --- CHANGELOG.md | 1 - README.md | 6 +++--- src/image_handle.rs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c1bacd..e8017af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,6 @@ - Added `ImageHandle` methods: - `metadata_item_uri_type` - `all_metadata` - - `item_metadata` - `preferred_decoding_colorspace` ### Changes diff --git a/README.md b/README.md index bec9b2c..4331c0e 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ Safe wrapper around the libheif-sys crate for parsing heif/heic files. ## System dependencies -- `libheif-dev` >= 1.16.0 +- `libheif-dev` >= 1.17.0 - `clang` - to generate rust bindings for `libheif` in `libheif-sys` crate. [See bindgen requirements.](https://rust-lang.github.io/rust-bindgen/requirements.html) `clang` wouldn't be needed if you disable `use-bindgen` feature. In this case the pre-generated file `bindings.rs` will be used -instead of generating it on the fly with help of `binden` crate. +instead of generating it on the fly with help of `bindgen` crate. Warning: `bindings.rs` file was generated under x64 linux and may not work as expected under x32 architectures or other operating systems. @@ -38,7 +38,7 @@ packages from scratch. It merges package requirements specified in the `Cargo.toml` of crates in the dependency tree. PS: I tried build `libheif` for Windows, but `libheif-rs` tests -filed because `libheif` does not have any encoder plugins available. +filed because `libheif` doesn't have any encoder plugins available. ## Examples diff --git a/src/image_handle.rs b/src/image_handle.rs index b00adb2..b15e0f8 100644 --- a/src/image_handle.rs +++ b/src/image_handle.rs @@ -283,7 +283,7 @@ impl ImageHandle { /// Return the colorspace that `libheif` proposes to use for decoding. /// Usually, these will be either [YCbCr](ColorSpace::YCbCr) /// or [Monochrome](ColorSpace::Monochrome), but it may also - /// propose [RGB](ColorSpace::RGB) for images encoded with `matrix_coefficients=0`. + /// propose [Rgb](ColorSpace::Rgb) for images encoded with `matrix_coefficients=0`. /// It may also return [Undefined](ColorSpace::Undefined) if the file misses /// relevant information to determine this without decoding. pub fn preferred_decoding_colorspace(&self) -> Result {