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

Method new

rustcv-camera/src/config.rs:69–77  ·  view source on GitHub ↗

Create a new configuration with sensible defaults. 使用合理的默认值创建新配置。

()

Source from the content-addressed store, hash-verified

67 /// Create a new configuration with sensible defaults.
68 /// 使用合理的默认值创建新配置。
69 pub fn new() -> Self {
70 Self {
71 width: None,
72 height: None,
73 fps: None,
74 pixel_format: None,
75 buffer_count: 5,
76 }
77 }
78
79 /// Set the desired resolution.
80 /// 设置期望的分辨率。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected