Determines the buffer layout from a pixel format.
(format: PixelFormat)
| 174 | impl BufferLayout { |
| 175 | /// Determines the buffer layout from a pixel format. |
| 176 | fn from_format(format: PixelFormat) -> Self { |
| 177 | match format { |
| 178 | PixelFormat::Known(FourCC::NV12) | PixelFormat::Known(FourCC::YV12) => Self::Planar, |
| 179 | _ => Self::Packed, |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | pub struct MsmfStream { |
nothing calls this directly
no outgoing calls
no test coverage detected