Skip to content

Commit

Permalink
Prepare to release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cykooz committed Nov 28, 2023
1 parent 2197bf7 commit 94b28ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
- Added `ImageHandle` methods:
- `metadata_item_uri_type`
- `all_metadata`
- `item_metadata`
- `preferred_decoding_colorspace`

### Changes
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/image_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ColorSpace> {
Expand Down

0 comments on commit 94b28ef

Please sign in to comment.