MCPcopy Index your code
hub / github.com/RustCV/RustCV / format

Method format

rustcv-core/src/builder.rs:51–54  ·  view source on GitHub ↗

添加像素格式要求 支持传入 PixelFormat 或 FourCC (会自动转换)

(mut self, fmt: T, p: Priority)

Source from the content-addressed store, hash-verified

49 /// 添加像素格式要求
50 /// 支持传入 PixelFormat 或 FourCC (会自动转换)
51 pub fn format<T: Into<PixelFormat>>(mut self, fmt: T, p: Priority) -> Self {
52 self.format_req.push((fmt.into(), p));
53 self
54 }
55
56 /// 设置缓冲区数量 (默认 3)
57 pub fn buffer_count(mut self, count: usize) -> Self {

Callers 8

mainFunction · 0.80
main_bodyFunction · 0.80
openFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected