Realm

oa::image::decode_file_on

Decode a JPEG, PNG, WebP, BMP, TGA, or TIFF file and upload normalized planar FP32 pixels on a particular runtime. This is the decode_file contract evaluated on runtime instead of this thread’s default runtime. Errors Returns the same errors as decode_file.

FnRust public API

Function Documentation

pub fn decode_file_on( runtime: &Runtime, path: impl AsRef<Path>, format: ImageFormat ) -> Result<Image>
Decode a JPEG, PNG, WebP, BMP, TGA, or TIFF file and upload normalized planar FP32 pixels on a particular runtime. This is the decode_file contract evaluated on runtime instead of this thread’s default runtime. Errors Returns the same errors as decode_file.