You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add DEFAULT_FOREGROUND color in Color.ts
- removed DimensionDecoder (now part of wasm code)
- removed SixelDecoderL2 (now part of wasm code)
- fix prolly undefined palette color in encoder
- wasm decoder:
- changed to handle only one band at a time
- static fixed memory with upper max band width
- optimize with bulk-memory
- added normal M1 for level 1 images or non truncating
- cleanup emscripten install & wam build scripts
- python wasmer example
- wasm-simd proof of concept implementation
- moved WasmDecoder.ts to Decoder.ts
- Decoder.ts prepared as new main decoder
- convenient decode functions
- add new decoder to benchmarks
- cleanup imports/export in index.ts
- better build scripts:
- remove the need for json imports
- add UMD/ESM bundles for browser/webpack
@@ -73,19 +73,6 @@ Properties of `DefaultDecoder`:
73
73
meaning as in the constructor, explicit setting it to 0 will leave non encoded pixels unaltered (pixels, that were not colored in the SIXEL data). This can be used for a transparency like effect (background/previous pixel value will remain). Returns the altered `target`.
74
74
75
75
76
-
#### WasmDecoder
77
-
78
-
The `WasmDecoder` is a level 2 only decoder written in C and compiled to WebAssembly. While it can decode image data much faster (see benchmarks below), it imposes several usage restrictions:
79
-
80
-
- limited to 1536 x 1536 pixels and 4096 palette colors (compile time settings)
81
-
- level 2 only, needs proper pixel dimensions (can be obtained from raster attributes with `DimensionDecoder`)
82
-
- always truncates images to pixel dimensions (not spec conform)
83
-
84
-
Other than the default decoder, `WasmDecoder` is meant to be re-used with follow-up images, which lowers the need to spawn webassembly instances.
0 commit comments