get_number_of_cp_us -> get_number_of_cpus
MODIFY
gen_rust.py
gen_rust.py
@@ -143,6 +143,7 @@ renamed_funcs = { # todo check if any "new" is required
"cv_split_Mat_m_VectorOfMat_mv": "split",
"cv_split_Mat_src_Mat_mvbegin": "split_at",
"cv_vconcat_Mat_src_size_t_nsrc_Mat_dst": "-",
+ "cv_getNumberOfCPUs": "get_number_of_cpus",
# features2d
"cv_AGAST_Mat_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression": "AGAST",
"cv_AGAST_Mat_image_VectorOfKeyPoint_keypoints_int_threshold_bool_nonmaxSuppression_int_type": "AGAST_with_type",

MODIFY
tests/get_tick_count.rs
tests/get_tick_count.rs
-extern crate libc;
-extern crate opencv;
use opencv::core;
#[test]
@@ -8,7 +6,7 @@ fn test_primitives() {
assert!(ticks > 10000);
let freq = core::get_tick_frequency().unwrap();
assert!(freq > 1000f64);
- let cpus = core::get_number_of_cp_us().unwrap();
+ let cpus = core::get_number_of_cpus().unwrap();
assert!(cpus > 0);
core::set_use_optimized(true).unwrap();
let optims = core::use_optimized().unwrap();

get_number_of_cp_us -> get_number_of_cpus