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

Function is_format_supported

rustcv-backend-msmf/examples/camera_view/convert.rs:98–103  ·  view source on GitHub ↗
(format: PixelFormat)

Source from the content-addressed store, hash-verified

96}
97
98pub fn is_format_supported(format: PixelFormat) -> bool {
99 matches!(
100 format,
101 PixelFormat::Known(FourCC::YUYV) | PixelFormat::Known(FourCC::NV12)
102 )
103}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected