0.67.0 Regenerate bindings
MODIFY
Cargo.toml
Cargo.toml
@@ -6,7 +6,7 @@ repository = "https://github.com/twistedfall/opencv-rust"
readme = "README.md"
keywords = ["opencv", "vision"]
license = "MIT"
-version = "0.66.0"
+version = "0.67.0"
edition = "2018"
authors = ["Pro <twisted.fall@gmail.com>", "Mathieu Poumeyrol <kali@zoy.org>"]
autoexamples = false # not all examples compile on just any system
@@ -60,7 +60,7 @@ once_cell = "1"
rgb = { version = "0.8.20", features = ["argb"], optional = true }
[build-dependencies]
-binding-generator = { package = "opencv-binding-generator", version = "0.45.0", path = "binding-generator" }
+binding-generator = { package = "opencv-binding-generator", version = "0.46.0", path = "binding-generator" }
cc = { version = "1", features = ["parallel"] }
clang = { version = "2", features = ["clang_6_0", "runtime"] }
dunce = "1"

MODIFY
binding-generator/Cargo.toml
binding-generator/Cargo.toml
name = "opencv-binding-generator"
description = "Binding generator for opencv crate"
repository = "https://github.com/twistedfall/opencv-rust"
-version = "0.45.0"
+version = "0.46.0"
license = "MIT"
authors = ["Pro <twisted.fall@gmail.com>"]
edition = "2018"

MODIFY
src/opencv/hub/videoio.rs
src/opencv/hub/videoio.rs
@@ -1950,9 +1950,9 @@ impl VideoWriter {
/// This static method constructs the fourcc code of the codec to be used in the constructor
/// VideoWriter::VideoWriter or VideoWriter::open.
#[inline]
- pub fn fourcc(c1: i8, c2: i8, c3: i8, c4: i8) -> Result<i32> {
+ pub fn fourcc(c1: char, c2: char, c3: char, c4: char) -> Result<i32> {
return_send!(via ocvrs_return);
- unsafe { sys::cv_VideoWriter_fourcc_char_char_char_char(c1, c2, c3, c4, ocvrs_return.as_mut_ptr()) };
+ unsafe { sys::cv_VideoWriter_fourcc_char_char_char_char(u8::try_from(c1)? as i8, u8::try_from(c2)? as i8, u8::try_from(c3)? as i8, u8::try_from(c4)? as i8, ocvrs_return.as_mut_ptr()) };
return_receive!(unsafe ocvrs_return => ret);
let ret = ret.into_result()?;
Ok(ret)

0.67.0 Regenerate bindings