This website requires JavaScript.
Explore
Help
Sign in
fries
/
blurhash-c-wasm
Watch
1
Star
0
Fork
You've already forked blurhash-c-wasm
0
Code
Issues
Pull requests
Projects
Releases
Packages
1
Wiki
Activity
main
blurhash-c-wasm
/
.gitignore
6 lines
58 B
Text
Raw
Permalink
Normal View
History
Unescape
Escape
create a wasm js wrapper for blurhash
2023-08-12 09:14:14 +00:00
node_modules
src/blurhash-decode.wasm
dist
change up api, and bump down version the api now requires you to call an async function initWasm to make the functions work instead of using top level await. i also optimized the wasm module to have O3 and fast-math (which the original blurhash makefile had and the results do seem to be the same with the javascript blurhash). I also gave the wasm instance functions inside typescript types and i fixed a bug where i didnt free the pointers in order so if you called decode too many times, you will run out of memory.
2023-08-15 02:24:20 +00:00
*.tgz
change api and fix incorrect caclulation i changed the api to not have a global wasm instance anymore. now initWasm returns a WASM instance you have to pass down to the functions. i feel like this is the best as it means you wont deal with a race condition if you're messing with it more then once at the same time, like i'm doing with tests. i also accounted for the height given as that was the original calculation that the Blurhash C implmentation used, not width * width, width * height.
2023-08-22 01:58:23 +00:00
coverage
Reference in a new issue
Copy permalink