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

Method new

rustcv-core/src/builder.rs:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26impl CameraConfig {
27 pub fn new() -> Self {
28 Self {
29 resolution_req: vec![],
30 fps_req: None,
31 format_req: vec![],
32 buffer_count: 3,
33 align_stride: Some(256), // 默认对齐以利于 SIMD
34 }
35 }
36
37 /// 添加分辨率要求
38 pub fn resolution(mut self, w: u32, h: u32, p: Priority) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected