辅助:获取首选后端类型
()
| 38 | |
| 39 | /// 辅助:获取首选后端类型 |
| 40 | pub 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected