Skip to content

Commit

Permalink
Updated "bindings.rs" to correspond libheif 1.17.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Cykooz committed Nov 28, 2023
1 parent 6e00248 commit 3c2a09c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased] - ReleaseDate

- Updated "bindings.rs" to correspond `libheif 1.17.1`:
- Updated "bindings.rs" to correspond `libheif 1.17.4`:
- added new values into `heif_compression_format` "enum':
- `heif_compression_format_heif_compression_mask`
- added new values into `heif_brand` "enum':
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use-bindgen = ["dep:bindgen"]


[build-dependencies]
bindgen = { version = "0.68", optional = true }
bindgen = { version = "0.69", optional = true }
pkg-config = "0.3"


Expand All @@ -36,7 +36,7 @@ walkdir = "2"

[package.metadata.vcpkg]
git = "https://github.com/microsoft/vcpkg"
tag = "2023.10.19"
tag = "2023.11.20"
dependencies = ["libheif"]


Expand Down
17 changes: 9 additions & 8 deletions src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
/* automatically generated by rust-bindgen 0.68.1 */
/* automatically generated by rust-bindgen 0.69.1 */

extern "C" {
#[doc = " Version string of linked libheif library."]
pub fn heif_get_version() -> *const libc::c_char;
}
extern "C" {
#[doc = " Numeric version of linked libheif library, encoded as BCD 0xHHMMLL00 = HH.MM.LL.\n For example: 0x02143000 is version 2.14.30"]
#[doc = " Numeric version of linked libheif library, encoded as 0xHHMMLL00 = hh.mm.ll, where hh, mm, ll is the decimal representation of HH, MM, LL.\n For example: 0x02150300 is version 2.21.3"]
pub fn heif_get_version_number() -> u32;
}
extern "C" {
#[doc = " Numeric part \"HH\" from above. Returned as a decimal number (not BCD)."]
#[doc = " Numeric part \"HH\" from above. Returned as a decimal number."]
pub fn heif_get_version_number_major() -> libc::c_int;
}
extern "C" {
#[doc = " Numeric part \"MM\" from above. Returned as a decimal number (not BCD)."]
#[doc = " Numeric part \"MM\" from above. Returned as a decimal number."]
pub fn heif_get_version_number_minor() -> libc::c_int;
}
extern "C" {
#[doc = " Numeric part \"LL\" from above. Returned as a decimal number (not BCD)."]
#[doc = " Numeric part \"LL\" from above. Returned as a decimal number."]
pub fn heif_get_version_number_maintenance() -> libc::c_int;
}
#[repr(C)]
Expand Down Expand Up @@ -266,9 +266,9 @@ pub const heif_compression_format_heif_compression_AV1: heif_compression_format
pub const heif_compression_format_heif_compression_VVC: heif_compression_format = 5;
#[doc = " EVC compression. (Currently unused in libheif.)\n\n The compression format is defined in ISO/IEC 23094-1. This is equivalent to H.266.\n\n The encapsulation is defined in ISO/IEC 23008-12:2022 Annex M."]
pub const heif_compression_format_heif_compression_EVC: heif_compression_format = 6;
#[doc = " JPEG 2000 compression. (Currently unused in libheif.)\n\n The encapsulation of JPEG 2000 is specified in ISO/IEC 15444-16:2021.\n The core encoding is defined in ISO/IEC 15444-1, or ITU-T T.800."]
#[doc = " JPEG 2000 compression.\n\n The encapsulation of JPEG 2000 is specified in ISO/IEC 15444-16:2021.\n The core encoding is defined in ISO/IEC 15444-1, or ITU-T T.800."]
pub const heif_compression_format_heif_compression_JPEG2000: heif_compression_format = 7;
#[doc = " Uncompressed encoding.\n\n This is defined in ISO/IEC 23001-17:2023 (Draft International Standard)."]
#[doc = " Uncompressed encoding.\n\n This is defined in ISO/IEC 23001-17:2023 (Final Draft International Standard)."]
pub const heif_compression_format_heif_compression_uncompressed: heif_compression_format = 8;
#[doc = " Mask image encoding.\n\n See ISO/IEC 23008-12:2022 Section 6.10.2"]
pub const heif_compression_format_heif_compression_mask: heif_compression_format = 9;
Expand Down Expand Up @@ -339,10 +339,11 @@ fn bindgen_test_layout_heif_init_params() {
);
}
extern "C" {
#[doc = " You may pass nullptr to get default parameters. Currently, no parameters are supported."]
#[doc = " Initialise library.\n\n You should call heif_init() when you start using libheif and heif_deinit() when you are finished.\n These calls are reference counted. Each call to heif_init() should be matched by one call to heif_deinit().\n\n For backwards compatibility, it is not really necessary to call heif_init(), but some library memory objects\n will never be freed if you do not call heif_init()/heif_deinit().\n\n heif_init() will load the external modules installed in the default plugin path. Thus, you need it when you\n want to load external plugins from the default path.\n Codec plugins that are compiled into the library directly (selected by the compile-time parameters of libheif)\n will be available even without heif_init().\n\n Make sure that you do not have one part of your program use heif_init()/heif_deinit() and another part that does\n not use it as the latter may try to use an uninitialized library. If in doubt, enclose everything with init/deinit.\n\n You may pass nullptr to get default parameters. Currently, no parameters are supported."]
pub fn heif_init(arg1: *mut heif_init_params) -> heif_error;
}
extern "C" {
#[doc = " Deinitialise and clean up library.\n\n You should call heif_init() when you start using libheif and heif_deinit() when you are finished.\n These calls are reference counted. Each call to heif_init() should be matched by one call to heif_deinit().\n\n \\sa heif_init()"]
pub fn heif_deinit();
}
pub const heif_plugin_type_heif_plugin_type_encoder: heif_plugin_type = 0;
Expand Down

0 comments on commit 3c2a09c

Please sign in to comment.