~/talk

On the fly WebP decoding with Web Assembly and Service Workers (Main Stage)

Talkat Cold Front 2018 · on Wednesday, 2018-11-14· [webassembly, web-performance]
slides:none on file

Demonstrates a concrete pipeline: compile a WebP C decoder to WebAssembly with Emscripten, load it in a Service Worker, intercept .webp requests, decode in the WASM heap, copy pixels into JavaScript, and emit PNG/BMP responses so browsers without native WebP render images. Notes practical hurdles: canvas not available in workers so off‑screen canvas is behind flags and inconsistent, and a custom BMP encoder replaces slower data URLs. AutoCAD and Google Earth examples show real legacy codebases running this way.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17The Web
  3. 2:35Web Assembly
  4. 4:23JavaScript
  5. 5:06Use Cases
  6. 6:23Why WebP
  7. 8:46The code
  8. 10:24Testing
  9. 11:40Different approaches
  10. 13:01How Web Assembly works
  11. 14:16My mini library
  12. 15:36WebP decoder
  13. 16:37Get info
  14. 17:09Copy info
  15. 17:56Generate image data
  16. 20:17C decoder RGB
  17. 20:41Wrap up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.