opencv-binding-generator 0.101.0

Binding generator for opencv crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::HashMap;

use EnumBitfield::NotBitfield;

use crate::enumeration::EnumBitfield;
use crate::SupportedModule;

pub type EnumBitfieldOverride = HashMap<&'static str, EnumBitfield>;

/// cpp_name(Reference)
pub fn enum_bitfield_override_factory(module: SupportedModule) -> EnumBitfieldOverride {
	match module {
		SupportedModule::Core => HashMap::from([("cv::RotateFlags", NotBitfield)]),
		SupportedModule::ImgCodecs => HashMap::from([("cv::ImwriteEXRTypeFlags", NotBitfield)]),
		_ => HashMap::new(),
	}
}