Implement HTMLImageElement decode

Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
Bentaimia Haddadi 2024-02-06 10:11:24 +01:00
parent 98057799ac
commit ba359083e5
4 changed files with 33 additions and 0 deletions

View file

@ -41,6 +41,7 @@ use crate::resource_thread::CoreResourceThreadPool;
// ======================================================================
fn decode_bytes_sync(key: LoadKey, bytes: &[u8], cors: CorsStatus) -> DecoderMsg {
// decode
let image = load_from_memory(bytes, cors);
DecoderMsg { key, image }
}