opencv_binding_generator/settings/
element_exclude_kind.rs

1use std::collections::HashMap;
2use std::sync::LazyLock;
3
4use crate::element::ExcludeKind;
5
6/// cpp_name(Reference)
7pub static ELEMENT_EXCLUDE_KIND: LazyLock<HashMap<&str, ExcludeKind>> = LazyLock::new(|| {
8	HashMap::from([
9		("cv::face::FacemarkLBF::BBox", ExcludeKind::Excluded), // not used, not exported in windows dll
10		("CV_DEPRECATED", ExcludeKind::Ignored),
11		("CV_EXPORTS", ExcludeKind::Ignored),
12		("CV_IMPL", ExcludeKind::Ignored),
13		("CV_MAKE_TYPE", ExcludeKind::Ignored),
14		("FILE", ExcludeKind::Ignored),
15		("HG_AUTOSIZE", ExcludeKind::Ignored), // 3.4
16		("cv::ErrorCallback", ExcludeKind::Ignored),
17		("cv::MatAllocator", ExcludeKind::Ignored),         // doesn't handle cpp part too well
18		("cv::MatExpr::op", ExcludeKind::Ignored),          // fixme implement PointerOf types
19		("cv::NAryMatIterator", ExcludeKind::Ignored),      // uses pointers of pointers
20		("cv::Node", ExcludeKind::Ignored),                 // template class
21		("cv::gapi::own::Mat", ExcludeKind::Ignored),       // internal alias to Mat
22		("cv::text::ERStat::pixels", ExcludeKind::Ignored), // fixme: reference to a vector, we don't handle it too well yet
23		("std::exception_ptr", ExcludeKind::Ignored),
24		("std::random_access_iterator_tag", ExcludeKind::Ignored),
25	])
26});