Function rustracer::hdrimage::parse_img_shape
source · fn parse_img_shape(line: &str) -> Result<(u32, u32), HdrImageErr>
Expand description
Parse image shape, u32
tuple, from string.
Width and height inside string must be separated by one (or more spaces).
If parse fails, the std::result::Result
will be an HdrImageErr
error variant.