@openheart/tavio-renderer 2.2.12-without-wasm → 2.3.1-withWasm

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.
@@ -1,31 +1,38 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const decodeTavio: (a: number, b: number, c: number) => number;
5
- export const main: () => void;
4
+ export const decodePly: (a: number, b: number, c: number) => number;
5
+ export const encodePly: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
6
6
  export const registerEventHandler: (a: number) => number;
7
+ export const decodeSog: (a: number, b: number, c: number) => number;
8
+ export const decodeTavio: (a: number, b: number, c: number) => number;
9
+ export const encodeTavio: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
10
+ export const decodeSplat: (a: number, b: number, c: number) => number;
11
+ export const decodeSpz: (a: number, b: number, c: number) => number;
12
+ export const encodeSplat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
13
+ export const encodeSpz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
7
14
  export const sort: (a: number, b: number, c: number) => number;
8
- export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
9
- export const intounderlyingsource_cancel: (a: number) => void;
10
- export const intounderlyingsource_pull: (a: number, b: number) => number;
15
+ export const main: () => void;
11
16
  export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
12
- export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
13
17
  export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
14
18
  export const intounderlyingbytesource_cancel: (a: number) => void;
15
19
  export const intounderlyingbytesource_pull: (a: number, b: number) => number;
16
20
  export const intounderlyingbytesource_start: (a: number, b: number) => void;
17
21
  export const intounderlyingbytesource_type: (a: number) => number;
22
+ export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
23
+ export const intounderlyingsource_cancel: (a: number) => void;
24
+ export const intounderlyingsource_pull: (a: number, b: number) => number;
25
+ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
18
26
  export const intounderlyingsink_abort: (a: number, b: number) => number;
19
27
  export const intounderlyingsink_close: (a: number) => number;
20
28
  export const intounderlyingsink_write: (a: number, b: number) => number;
21
- export const __wasm_bindgen_func_elem_388: (a: number, b: number) => void;
22
- export const __wasm_bindgen_func_elem_741: (a: number, b: number) => void;
23
- export const __wasm_bindgen_func_elem_730: (a: number, b: number, c: number, d: number) => void;
24
- export const __wasm_bindgen_func_elem_1624: (a: number, b: number, c: number, d: number) => void;
25
- export const __wasm_bindgen_func_elem_400: (a: number, b: number, c: number) => void;
29
+ export const __wasm_bindgen_func_elem_2673: (a: number, b: number, c: number, d: number) => void;
30
+ export const __wasm_bindgen_func_elem_2675: (a: number, b: number, c: number, d: number) => void;
31
+ export const __wasm_bindgen_func_elem_955: (a: number, b: number, c: number) => void;
26
32
  export const __wbindgen_export: (a: number, b: number) => number;
27
33
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
28
34
  export const __wbindgen_export3: (a: number) => void;
29
35
  export const __wbindgen_export4: (a: number, b: number, c: number) => void;
36
+ export const __wbindgen_export5: (a: number, b: number) => void;
30
37
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
31
38
  export const __wbindgen_start: () => void;
@@ -8,14 +8,6 @@
8
8
 
9
9
  type ReadableStreamType = "bytes";
10
10
 
11
- interface DecodeOptions {
12
- decodeMode?: "sync" | "parallel";
13
- maxDecodePoints?: number;
14
- useSphericalHarmonics?: boolean;
15
- }
16
-
17
-
18
-
19
11
  export class IntoUnderlyingByteSource {
20
12
  private constructor();
21
13
  free(): void;
@@ -44,7 +36,23 @@ export class IntoUnderlyingSource {
44
36
  pull(controller: ReadableStreamDefaultController): Promise<any>;
45
37
  }
46
38
 
47
- export function decodeTavio(url: string, decode_options: DecodeOptions): Promise<void>;
39
+ export function decodePly(url: string, decode_options: any): Promise<void>;
40
+
41
+ export function decodeSog(url: string, decode_options: any): Promise<void>;
42
+
43
+ export function decodeSplat(url: string, decode_options: any): Promise<void>;
44
+
45
+ export function decodeSpz(url: string, decode_options: any): Promise<void>;
46
+
47
+ export function decodeTavio(url: string, decode_options: any): Promise<void>;
48
+
49
+ export function encodePly(point_count: number, gaussian_buffer: Uint8Array, sh_buffer: Float32Array | null | undefined, scale_min_values: Float32Array, scale_max_values: Float32Array, alpha_min_value: number, alpha_max_value: number): Uint8Array;
50
+
51
+ export function encodeSplat(point_count: number, gaussian_buffer: Uint8Array, scale_min_values: Float32Array, scale_max_values: Float32Array, alpha_min_value: number, alpha_max_value: number): Uint8Array;
52
+
53
+ export function encodeSpz(point_count: number, gaussian_buffer: Uint8Array, sh_buffer: Float32Array | null | undefined, scale_min_values: Float32Array, scale_max_values: Float32Array, alpha_min_value: number, alpha_max_value: number): Uint8Array;
54
+
55
+ export function encodeTavio(point_count: number, gaussian_buffer: Uint8Array, _sh_buffer: Float32Array | null | undefined, scale_min_values: Float32Array, scale_max_values: Float32Array, alpha_min_value: number, alpha_max_value: number): Uint8Array;
48
56
 
49
57
  export function initThreadPool(num_threads: number): Promise<any>;
50
58
 
@@ -68,40 +76,47 @@ export function wbg_rayon_start_worker(receiver: number): void;
68
76
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
69
77
 
70
78
  export interface InitOutput {
79
+ readonly decodeSog: (a: number, b: number, c: number) => number;
71
80
  readonly decodeTavio: (a: number, b: number, c: number) => number;
81
+ readonly encodeTavio: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
82
+ readonly main: () => void;
83
+ readonly decodePly: (a: number, b: number, c: number) => number;
84
+ readonly encodePly: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
72
85
  readonly registerEventHandler: (a: number) => number;
73
86
  readonly sort: (a: number, b: number, c: number) => number;
74
- readonly main: () => void;
87
+ readonly decodeSplat: (a: number, b: number, c: number) => number;
88
+ readonly decodeSpz: (a: number, b: number, c: number) => number;
89
+ readonly encodeSplat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
90
+ readonly encodeSpz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
75
91
  readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
76
92
  readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
77
93
  readonly intounderlyingbytesource_cancel: (a: number) => void;
78
94
  readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
79
95
  readonly intounderlyingbytesource_start: (a: number, b: number) => void;
80
96
  readonly intounderlyingbytesource_type: (a: number) => number;
81
- readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
82
- readonly intounderlyingsource_cancel: (a: number) => void;
83
- readonly intounderlyingsource_pull: (a: number, b: number) => number;
84
97
  readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
85
98
  readonly intounderlyingsink_abort: (a: number, b: number) => number;
86
99
  readonly intounderlyingsink_close: (a: number) => number;
87
100
  readonly intounderlyingsink_write: (a: number, b: number) => number;
101
+ readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
102
+ readonly intounderlyingsource_cancel: (a: number) => void;
103
+ readonly intounderlyingsource_pull: (a: number, b: number) => number;
88
104
  readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
105
+ readonly initThreadPool: (a: number) => number;
89
106
  readonly wbg_rayon_poolbuilder_build: (a: number) => void;
90
107
  readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
91
108
  readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
92
109
  readonly wbg_rayon_start_worker: (a: number) => void;
93
- readonly initThreadPool: (a: number) => number;
94
- readonly __wasm_bindgen_func_elem_600: (a: number, b: number) => void;
95
- readonly __wasm_bindgen_func_elem_664: (a: number, b: number) => void;
96
- readonly __wasm_bindgen_func_elem_692: (a: number, b: number, c: number, d: number) => void;
97
- readonly __wasm_bindgen_func_elem_1664: (a: number, b: number, c: number, d: number) => void;
98
- readonly __wasm_bindgen_func_elem_575: (a: number, b: number, c: number) => void;
99
- readonly __wasm_bindgen_func_elem_693: (a: number, b: number, c: number) => void;
110
+ readonly __wasm_bindgen_func_elem_2707: (a: number, b: number, c: number, d: number) => void;
111
+ readonly __wasm_bindgen_func_elem_2710: (a: number, b: number, c: number, d: number) => void;
112
+ readonly __wasm_bindgen_func_elem_1035: (a: number, b: number, c: number) => void;
113
+ readonly __wasm_bindgen_func_elem_2709: (a: number, b: number, c: number) => void;
100
114
  readonly memory: WebAssembly.Memory;
101
115
  readonly __wbindgen_export: (a: number, b: number) => number;
102
116
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
103
117
  readonly __wbindgen_export3: (a: number) => void;
104
118
  readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
119
+ readonly __wbindgen_export5: (a: number, b: number) => void;
105
120
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
106
121
  readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
107
122
  readonly __wbindgen_start: (a: number) => void;