fn pixel_format_wl_to_fuchsia(wl_format: wl_shm::Format) -> Option<images::PixelFormat> {
    match wl_format {
        wl_shm::Format::Argb8888 | wl_shm::Format::Xrgb8888 => Some(images::PixelFormat::Bgra8),
        _ => None,
    }
}
/// Converts a wayland pixel format to the Fuchsia counterpart.
///
/// Returns `None` if the format is not supported.
Converts a wayland pixel format to the Fuchsia counterpart.
Returns `None` if the format is not supported.
Converts a wayland pixel format to the Fuchsia counterpart . Returns ` None ` if the format is not supported .
fn pixel_format_wl_to_fuchsia(wl_format: wl_shm::Format) -> Option<images::PixelFormat> {
    match wl_format {
        wl_shm::Format::Argb8888 | wl_shm::Format::Xrgb8888 => Some(images::PixelFormat::Bgra8),
        _ => None,
    }
}
fn pixel_format_wl_to_fuchsia ( wl_format : wl_shm :: Format ) -> Option < images :: PixelFormat > { match wl_format { wl_shm :: Format :: Argb8888 | wl_shm :: Format :: Xrgb8888 => Some ( images :: PixelFormat :: Bgra8 ) , _ => None , } }
Converts a wayland pixel format to the Fuchsia counterpart.
Converts a wayland pixel format to the Fuchsia counterpart .
wl_format
wl_shm::Format
wl_format
wl_shm::Format