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

Class NegotiatedFormat

rustcv-backend-msmf/src/device.rs:451–463  ·  view source on GitHub ↗

Represents a negotiated video format between application requirements and device capabilities. This struct is produced by the format negotiation process and contains: - The selected resolution (width × height) - The pixel format (e.g., YUYV, NV12) - The frame rate - The Media Foundation media type for configuring the source reader

Source from the content-addressed store, hash-verified

449/// - The frame rate
450/// - The Media Foundation media type for configuring the source reader
451pub struct NegotiatedFormat {
452 /// Frame width in pixels.
453 pub width: u32,
454 /// Frame height in pixels.
455 pub height: u32,
456 /// Pixel format (e.g., YUYV, NV12).
457 pub format: PixelFormat,
458 /// Frame rate in frames per second.
459 #[allow(dead_code)]
460 pub fps: u32,
461 /// The Media Foundation media type for the source reader.
462 pub media_type: IMFMediaType,
463}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected