Realm

oa::image::decode_file_on

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

FnRust public API

Function Documentation

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