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
| 449 | /// - The frame rate |
| 450 | /// - The Media Foundation media type for configuring the source reader |
| 451 | pub 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected