open-ultrahdr-wasm 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -4
- package/package.json +9 -7
- package/pkg/open_ultrahdr.d.ts +78 -575
- package/pkg/open_ultrahdr.js +11 -1332
- package/pkg/open_ultrahdr.wasm +0 -0
- package/pkg/README.md +0 -17
- package/pkg/open_ultrahdr_bg.wasm +0 -0
- package/pkg/open_ultrahdr_bg.wasm.d.ts +0 -98
- package/pkg/package.json +0 -31
package/README.md
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
# Open UltraHDR WASM
|
|
2
2
|
|
|
3
|
-
WebAssembly module for UltraHDR (ISO 21496-1) gain map
|
|
3
|
+
WebAssembly module for UltraHDR (ISO 21496-1) gain map encoding/decoding,
|
|
4
|
+
built from upstream [`google/libultrahdr`](https://github.com/google/libultrahdr)
|
|
5
|
+
via Emscripten/embind.
|
|
4
6
|
|
|
5
|
-
This is the low-level WASM package. For most use cases, use the `open-ultrahdr`
|
|
7
|
+
This is the low-level WASM package. For most use cases, use the `open-ultrahdr`
|
|
8
|
+
package instead, which provides a higher-level TypeScript API.
|
|
6
9
|
|
|
7
10
|
## Building
|
|
8
11
|
|
|
9
|
-
Requires
|
|
12
|
+
Requires Emscripten SDK (`emcc`, `emcmake`) and CMake 3.20+:
|
|
10
13
|
|
|
11
14
|
```bash
|
|
15
|
+
source /path/to/emsdk/emsdk_env.sh
|
|
12
16
|
npm run build
|
|
13
17
|
```
|
|
14
18
|
|
|
19
|
+
The build vendors libultrahdr from the `third_party/libultrahdr` submodule and
|
|
20
|
+
links Emscripten's `libjpeg` port (no `UHDR_BUILD_DEPS` path).
|
|
21
|
+
|
|
15
22
|
## License
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
Dual-licensed under `Apache-2.0 OR MIT`. See the project root [LICENSE](../LICENSE) for details.
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-ultrahdr-wasm",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "UltraHDR (ISO 21496-1) gain map WASM implementation",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "UltraHDR (ISO 21496-1) gain map WASM implementation, built from upstream libultrahdr via Emscripten/embind",
|
|
5
5
|
"author": "Adam Silverstein",
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "Apache-2.0 OR MIT",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"ultrahdr",
|
|
9
9
|
"hdr",
|
|
10
10
|
"gain-map",
|
|
11
11
|
"iso-21496",
|
|
12
12
|
"wasm",
|
|
13
|
-
"webassembly"
|
|
13
|
+
"webassembly",
|
|
14
|
+
"libultrahdr"
|
|
14
15
|
],
|
|
15
16
|
"homepage": "https://github.com/adamsilverstein/lib-open-ultrahdr",
|
|
16
17
|
"repository": {
|
|
@@ -41,9 +42,10 @@
|
|
|
41
42
|
"./package.json": "./package.json"
|
|
42
43
|
},
|
|
43
44
|
"scripts": {
|
|
44
|
-
"build": "
|
|
45
|
-
"build:release": "
|
|
46
|
-
"
|
|
45
|
+
"build": "rm -rf build && emcmake cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j && cp build/open_ultrahdr.js build/open_ultrahdr.wasm pkg/",
|
|
46
|
+
"build:release": "npm run build",
|
|
47
|
+
"clean": "rm -rf build pkg/open_ultrahdr.js pkg/open_ultrahdr.wasm",
|
|
48
|
+
"test": "echo 'WASM tests run via the JS package (cd ../js && npm test)'"
|
|
47
49
|
},
|
|
48
50
|
"publishConfig": {
|
|
49
51
|
"access": "public"
|