d5df37afb3
To avoid PNG-encoding every frame of every video for example. If it needs to be converted to a base64 "data:" URL anyway, compute it lazily and cache it behind a RefCell. Raw pixel manipulation can be done through temporary ImageData objects. The potential to use an image element is retained, so the native JPEG decoder of the browser can still be utilized. |
||
---|---|---|
.. | ||
canvas | ||
common_tess | ||
webgl | ||
wgpu |