@monogrid/gainmap-js 1.0.2
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/CHANGELOG.md +17 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/CONTRIBUTING.md +130 -0
- package/LICENSE +21 -0
- package/README.md +149 -0
- package/dist/_commonjsHelpers-1789f0cf.js +12 -0
- package/dist/compress-a4b59cab.js +82 -0
- package/dist/decode.d.ts +37 -0
- package/dist/encode-utils/compress.d.ts +12 -0
- package/dist/encode-utils/find-texture-min-max.d.ts +15 -0
- package/dist/encode-utils/get-gainmap.d.ts +13 -0
- package/dist/encode-utils/get-sdr-rendition.d.ts +16 -0
- package/dist/encode.d.ts +117 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +976 -0
- package/dist/index.umd.js +1069 -0
- package/dist/libultrahdr-esm.wasm +0 -0
- package/dist/libultrahdr.d.ts +129 -0
- package/dist/libultrahdr.js +6728 -0
- package/dist/libultrahdr.umd.js +6740 -0
- package/dist/materials/GainMapDecoderMaterial.d.ts +26 -0
- package/dist/materials/GainMapEncoderMaterial.d.ts +43 -0
- package/dist/materials/SDRMaterial.d.ts +35 -0
- package/dist/materials/index.d.ts +3 -0
- package/dist/types.d.ts +252 -0
- package/dist/utils/QuadRenderer.d.ts +73 -0
- package/dist/utils/get-data-texture.d.ts +14 -0
- package/dist/worker-interface.d.ts +26 -0
- package/dist/worker-interface.js +501 -0
- package/dist/worker-interface.umd.js +516 -0
- package/dist/worker-types.d.ts +24 -0
- package/dist/worker.d.ts +1 -0
- package/dist/worker.js +123 -0
- package/dist/worker.umd.js +207 -0
- package/examples/README.md +3 -0
- package/examples/compress.ts +43 -0
- package/examples/decode-from-jpeg.ts +40 -0
- package/examples/decode-from-separate-data.ts +41 -0
- package/examples/decode-to-datatexture.ts +65 -0
- package/examples/encode-and-compress.ts +29 -0
- package/examples/encode-jpeg-metadata.ts +57 -0
- package/examples/encode.ts +28 -0
- package/examples/globals.d.ts +6 -0
- package/examples/worker.ts +41 -0
- package/libultrahdr-wasm/LICENSE +202 -0
- package/libultrahdr-wasm/README.md +99 -0
- package/libultrahdr-wasm/build/libultrahdr-debug.js +7156 -0
- package/libultrahdr-wasm/build/libultrahdr-debug.wasm +0 -0
- package/libultrahdr-wasm/build/libultrahdr-esm.js +6633 -0
- package/libultrahdr-wasm/build/libultrahdr-esm.wasm +0 -0
- package/libultrahdr-wasm/build/libultrahdr.d.ts +30 -0
- package/libultrahdr-wasm/build/libultrahdr.js +6591 -0
- package/libultrahdr-wasm/build/libultrahdr.wasm +0 -0
- package/package.json +143 -0
- package/reports/eslint-examples.json +1 -0
- package/reports/eslint-src.json +1 -0
- package/reports/eslint-tests.json +1 -0
- package/reports/junit.xml +35 -0
- package/reports/typecheck-examples.log +0 -0
- package/reports/typecheck-tests.log +0 -0
- package/reports/typecheck.log +0 -0
|
Binary file
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type JPEGRInfo = {
|
|
2
|
+
width: number,
|
|
3
|
+
height: number
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type UltraHDRMetadata = {
|
|
7
|
+
version: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string,
|
|
8
|
+
gamma: number,
|
|
9
|
+
hdrCapacityMax: number,
|
|
10
|
+
hdrCapacityMin: number,
|
|
11
|
+
maxContentBoost: number,
|
|
12
|
+
minContentBoost: number,
|
|
13
|
+
offsetHdr: number,
|
|
14
|
+
offsetSdr: number
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type UltraHDRUnpacked = {
|
|
18
|
+
metadata: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string,
|
|
19
|
+
success: boolean,
|
|
20
|
+
errorMessage: any,
|
|
21
|
+
sdr: any,
|
|
22
|
+
gainMap: any
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export interface MainModule {
|
|
26
|
+
getExceptionMessage(_0: number): ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string;
|
|
27
|
+
getJPEGRInfo(_0: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, _1: number): JPEGRInfo;
|
|
28
|
+
extractJpegR(_0: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, _1: number): UltraHDRUnpacked;
|
|
29
|
+
appendGainMap(_0: number, _1: number, _2: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, _3: number, _4: ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string, _5: number, _6: number, _7: number, _8: number, _9: number, _10: number, _11: number, _12: number): any;
|
|
30
|
+
}
|