Skip to main content

validate_host_screenshot

Function validate_host_screenshot 

Source
pub(crate) fn validate_host_screenshot(
    frame: &HostCpuFrame,
    width: i32,
    height: i32,
) -> Result<ScreenshotPixelFormat, String>
Expand description

Reject truncated host mappings instead of retaining pixels from an earlier frame.