opencv 0.76.3

Rust bindings for OpenCV
Documentation
#![cfg(ocvrs_has_module_imgproc)]

use matches::assert_matches;

use opencv::{core, videoio::VideoWriter, Error, Result};

#[test]
fn fourcc() -> Result<()> {
	let fourcc = VideoWriter::fourcc('a', 'v', 'c', '1')?;
	assert_eq!(fourcc, 0x31637661);
	let fourcc_error = VideoWriter::fourcc('😀', 'v', 'c', '1');
	assert_matches!(
		fourcc_error,
		Err(Error {
			code: core::StsBadArg,
			..
		})
	);
	Ok(())
}