Integrate QOI codec completely

* Adds code for encoders and decoders
* Cleans up some obsolete QOI-related code
This commit is contained in:
robo-mop
2023-10-18 04:37:40 +05:30
parent 71f341923a
commit 003d5d125c
13 changed files with 88 additions and 82 deletions

View File

@@ -111,6 +111,9 @@ async function decodeImage(
if (mimeType === 'image/webp2') {
return await workerBridge.wp2Decode(signal, blob);
}
if (mimeType === 'image/qoi') {
return await workerBridge.qoiDecode(signal, blob);
}
}
// Otherwise fall through and try built-in decoding for a laugh.
return await builtinDecode(signal, blob);