MCPcopy Create free account
hub / github.com/RustCV/RustCV / default_backend

Function default_backend

rustcv/src/videoio/backend.rs:40–48  ·  view source on GitHub ↗

辅助:获取首选后端类型

()

Source from the content-addressed store, hash-verified

38
39/// 辅助:获取首选后端类型
40pub fn default_backend() -> BackendType {
41 if cfg!(target_os = "linux") {
42 BackendType::V4L2
43 } else if cfg!(target_os = "macos") {
44 BackendType::AVFoundation
45 } else {
46 BackendType::Dummy
47 }
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected