Skip to main content

load_image_pair

Function load_image_pair 

Source
pub fn load_image_pair<P1: AsRef<Path> + Sync, P2: AsRef<Path> + Sync>(
    path1: P1,
    path2: P2,
) -> Result<(Image, Image), ImageError>
Expand description

Load two images in parallel, picking each decoder from its file extension.

When both share a format this delegates to that codec’s paired loader, which is a plain rayon::join — cheaper than the iterator machinery below for a two-task workload.