alpha2 0.4.5 → 0.5.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 +5 -4
- package/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/abort.d.ts +12 -0
- package/dist/abort.js +48 -0
- package/dist/active-clock.d.ts +35 -0
- package/dist/active-clock.js +99 -0
- package/dist/assets.d.ts +28 -22
- package/dist/assets.js +8 -12
- package/dist/audio-layout.d.ts +52 -74
- package/dist/audio-layout.js +114 -148
- package/dist/audio-timeline.d.ts +89 -117
- package/dist/audio-timeline.js +102 -118
- package/dist/audio-worker.d.ts +12 -21
- package/dist/audio-worker.js +8 -13
- package/dist/audio-worklet-processor.js +45 -58
- package/dist/audio-worklet.d.ts +45 -76
- package/dist/audio-worklet.js +44 -79
- package/dist/audio.d.ts +15 -23
- package/dist/audio.js +9 -13
- package/dist/builder.d.ts +45 -63
- package/dist/builder.js +49 -45
- package/dist/capabilities.d.ts +99 -16
- package/dist/capabilities.js +2 -2
- package/dist/captions.d.ts +45 -22
- package/dist/captions.js +60 -15
- package/dist/chroma-siting.d.ts +24 -41
- package/dist/chroma-siting.js +38 -71
- package/dist/containers.d.ts +41 -30
- package/dist/containers.js +59 -27
- package/dist/decoder-fallback.d.ts +13 -0
- package/dist/decoder-fallback.js +38 -0
- package/dist/decoder-order.d.ts +24 -39
- package/dist/decoder-order.js +28 -42
- package/dist/edit.d.ts +77 -154
- package/dist/edit.js +98 -180
- package/dist/effects.d.ts +109 -173
- package/dist/effects.js +7 -9
- package/dist/export-destination.d.ts +25 -41
- package/dist/export-destination.js +20 -32
- package/dist/export-failure.d.ts +34 -59
- package/dist/export-failure.js +54 -48
- package/dist/export-metrics.d.ts +116 -0
- package/dist/export-metrics.js +74 -0
- package/dist/export-retry.d.ts +46 -29
- package/dist/export-retry.js +86 -51
- package/dist/exporter.d.ts +67 -116
- package/dist/exporter.js +133 -133
- package/dist/extensions.d.ts +69 -115
- package/dist/extensions.js +55 -82
- package/dist/frame-intake.d.ts +92 -0
- package/dist/frame-intake.js +114 -0
- package/dist/frame-supply.d.ts +98 -157
- package/dist/frame-supply.js +191 -162
- package/dist/generated/project-schema.d.ts +742 -464
- package/dist/generated/project-schema.js +63 -2
- package/dist/generated/project-shape.js +663 -118
- package/dist/geometry.d.ts +28 -34
- package/dist/geometry.js +18 -23
- package/dist/gpu-recovery.d.ts +92 -0
- package/dist/gpu-recovery.js +135 -0
- package/dist/hdr-frames.d.ts +88 -62
- package/dist/hdr-frames.js +123 -46
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/json-text.d.ts +13 -23
- package/dist/json-text.js +10 -20
- package/dist/layout-values.d.ts +14 -22
- package/dist/layout-values.js +18 -21
- package/dist/layout.d.ts +55 -55
- package/dist/layout.js +37 -36
- package/dist/loudness.d.ts +27 -32
- package/dist/loudness.js +19 -23
- package/dist/media.d.ts +85 -237
- package/dist/media.js +133 -287
- package/dist/mediabunny.d.ts +173 -237
- package/dist/mediabunny.js +943 -518
- package/dist/physical-frames.d.ts +5 -17
- package/dist/physical-frames.js +4 -11
- package/dist/player.d.ts +56 -47
- package/dist/player.js +155 -40
- package/dist/presented-frames.d.ts +2 -7
- package/dist/presented-frames.js +3 -8
- package/dist/project.d.ts +83 -110
- package/dist/project.js +421 -447
- package/dist/rate-control.d.ts +9 -23
- package/dist/rate-control.js +7 -18
- package/dist/renderer-choice.d.ts +41 -0
- package/dist/renderer-choice.js +82 -0
- package/dist/repacked-bytes.d.ts +0 -2
- package/dist/repacked-bytes.js +2 -5
- package/dist/robustness.d.ts +25 -37
- package/dist/robustness.js +71 -54
- package/dist/sha256.d.ts +5 -13
- package/dist/sha256.js +9 -24
- package/dist/text.d.ts +106 -63
- package/dist/text.js +44 -69
- package/dist/video-frames.d.ts +7 -25
- package/dist/video-frames.js +12 -29
- package/dist/waveform.d.ts +5 -11
- package/dist/waveform.js +4 -9
- package/dist/worker-error.d.ts +5 -20
- package/dist/worker-error.js +8 -25
- package/dist/worker.d.ts +82 -92
- package/dist/worker.js +239 -144
- package/package.json +26 -2
- package/wasm/alpha2_audio_worklet.wasm +0 -0
- package/wasm/alpha2_extensions.d.ts +26 -47
- package/wasm/alpha2_extensions.js +26 -47
- package/wasm/alpha2_extensions_bg.wasm +0 -0
- package/wasm/alpha2_wasm.d.ts +487 -543
- package/wasm/alpha2_wasm.js +669 -572
- package/wasm/alpha2_wasm_bg.wasm +0 -0
- package/wasm/alpha2_wasm_bg.wasm.d.ts +20 -8
- package/wasm/rust-crate-licenses.md +2 -2
- package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline1.js +1 -0
- package/wasm/snippets/alpha2-wasm-1313375d424845c0/inline2.js +82 -0
- package/wasm/snippets/alpha2-wasm-57b04ecc6db57e1f/inline2.js +0 -52
- /package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline0.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline3.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alpha2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "JavaScript bindings for the standalone alpha2 media engine.",
|
|
6
6
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "npm run build:wasm && npm run build:js",
|
|
24
|
-
"build:js": "
|
|
24
|
+
"build:js": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json",
|
|
25
25
|
"build:wasm": "node scripts/build-wasm.mjs"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"types": "./dist/export-destination.d.ts",
|
|
46
46
|
"import": "./dist/export-destination.js"
|
|
47
47
|
},
|
|
48
|
+
"./export-metrics": {
|
|
49
|
+
"types": "./dist/export-metrics.d.ts",
|
|
50
|
+
"import": "./dist/export-metrics.js"
|
|
51
|
+
},
|
|
48
52
|
"./export-retry": {
|
|
49
53
|
"types": "./dist/export-retry.d.ts",
|
|
50
54
|
"import": "./dist/export-retry.js"
|
|
@@ -57,6 +61,26 @@
|
|
|
57
61
|
"types": "./dist/frame-supply.d.ts",
|
|
58
62
|
"import": "./dist/frame-supply.js"
|
|
59
63
|
},
|
|
64
|
+
"./gpu-recovery": {
|
|
65
|
+
"types": "./dist/gpu-recovery.d.ts",
|
|
66
|
+
"import": "./dist/gpu-recovery.js"
|
|
67
|
+
},
|
|
68
|
+
"./renderer-choice": {
|
|
69
|
+
"types": "./dist/renderer-choice.d.ts",
|
|
70
|
+
"import": "./dist/renderer-choice.js"
|
|
71
|
+
},
|
|
72
|
+
"./worker-error": {
|
|
73
|
+
"types": "./dist/worker-error.d.ts",
|
|
74
|
+
"import": "./dist/worker-error.js"
|
|
75
|
+
},
|
|
76
|
+
"./abort": {
|
|
77
|
+
"types": "./dist/abort.d.ts",
|
|
78
|
+
"import": "./dist/abort.js"
|
|
79
|
+
},
|
|
80
|
+
"./active-clock": {
|
|
81
|
+
"types": "./dist/active-clock.d.ts",
|
|
82
|
+
"import": "./dist/active-clock.js"
|
|
83
|
+
},
|
|
60
84
|
"./assets": {
|
|
61
85
|
"types": "./dist/assets.d.ts",
|
|
62
86
|
"import": "./dist/assets.js"
|
|
Binary file
|
|
@@ -10,13 +10,11 @@ export class ExtensionRegistry {
|
|
|
10
10
|
free(): void;
|
|
11
11
|
[Symbol.dispose](): void;
|
|
12
12
|
/**
|
|
13
|
-
* Forgets every registered font
|
|
14
|
-
* they opened with.
|
|
13
|
+
* Forgets every registered font; open sources keep theirs.
|
|
15
14
|
*/
|
|
16
15
|
clearFonts(): void;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
* array of locators: those it does not already hold.
|
|
17
|
+
* Locators rendering at a source tick reads that the source does not hold, as a JSON array.
|
|
20
18
|
*
|
|
21
19
|
* # Errors
|
|
22
20
|
* When the handle is not open.
|
|
@@ -27,27 +25,25 @@ export class ExtensionRegistry {
|
|
|
27
25
|
*/
|
|
28
26
|
constructor();
|
|
29
27
|
/**
|
|
30
|
-
*
|
|
31
|
-
* JSON array of locators: an image sequence's first frame.
|
|
28
|
+
* Locators opening a provider source (JSON) reads, as a JSON array.
|
|
32
29
|
*
|
|
33
30
|
* # Errors
|
|
34
31
|
* When the provider source is not valid JSON.
|
|
35
32
|
*/
|
|
36
33
|
openNeeds(provider: string): string;
|
|
37
34
|
/**
|
|
38
|
-
* Opens a
|
|
39
|
-
*
|
|
35
|
+
* Opens a provider source (JSON) with its bytes (none for an image sequence) and returns a
|
|
36
|
+
* handle.
|
|
40
37
|
*
|
|
41
38
|
* # Errors
|
|
42
|
-
*
|
|
39
|
+
* If the source cannot be opened.
|
|
43
40
|
*/
|
|
44
41
|
open(provider: string, bytes?: Uint8Array | null): number;
|
|
45
42
|
/**
|
|
46
|
-
*
|
|
47
|
-
* `{ provider, report }`, or `undefined` when none does.
|
|
43
|
+
* The first claiming provider's result as JSON `{ provider, report }`, or `undefined`.
|
|
48
44
|
*
|
|
49
45
|
* # Errors
|
|
50
|
-
*
|
|
46
|
+
* If a claiming provider cannot read the bytes.
|
|
51
47
|
*/
|
|
52
48
|
probe(bytes: Uint8Array): string | undefined;
|
|
53
49
|
/**
|
|
@@ -55,27 +51,21 @@ export class ExtensionRegistry {
|
|
|
55
51
|
*/
|
|
56
52
|
providers(): string;
|
|
57
53
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* and every other reader made from either, and decodes on its own. The
|
|
62
|
-
* readers stay valid when the source they were made from is released.
|
|
63
|
-
* `undefined` for a source that draws any time as cheaply, which a
|
|
64
|
-
* page shares instead.
|
|
54
|
+
* A handle to another independently positioned reader that shares the source's decoded
|
|
55
|
+
* data. It stays valid after the original is closed. `undefined` when any time is equally
|
|
56
|
+
* cheap to draw, so the page should share the source.
|
|
65
57
|
*
|
|
66
58
|
* # Errors
|
|
67
59
|
* When the handle is not open.
|
|
68
60
|
*/
|
|
69
61
|
reader(handle: number): number | undefined;
|
|
70
62
|
/**
|
|
71
|
-
* Registers a font
|
|
72
|
-
* before. A source reads the fonts when it opens.
|
|
63
|
+
* Registers a font for SVG text. Sources read fonts when they open.
|
|
73
64
|
*/
|
|
74
65
|
registerFont(bytes: Uint8Array): void;
|
|
75
66
|
/**
|
|
76
|
-
* Registers bytes under a locator
|
|
77
|
-
*
|
|
78
|
-
* a page may register them only for that call (see [`Self::needs`]).
|
|
67
|
+
* Registers bytes under a locator. Sources read them only during open or render, so a page
|
|
68
|
+
* may register them just for that call (see [`Self::needs`]).
|
|
79
69
|
*/
|
|
80
70
|
registerResource(locator: string, bytes: Uint8Array): void;
|
|
81
71
|
/**
|
|
@@ -87,9 +77,8 @@ export class ExtensionRegistry {
|
|
|
87
77
|
*/
|
|
88
78
|
release(handle: number): void;
|
|
89
79
|
/**
|
|
90
|
-
* The frame
|
|
91
|
-
*
|
|
92
|
-
* own size).
|
|
80
|
+
* The frame at a source tick. Vector sources rasterize to fit `fit_width` by `fit_height`
|
|
81
|
+
* (0 by 0 for their own size).
|
|
93
82
|
*
|
|
94
83
|
* # Errors
|
|
95
84
|
* When the handle is not open or the frame cannot be produced.
|
|
@@ -103,22 +92,18 @@ export class ExtensionRegistry {
|
|
|
103
92
|
*/
|
|
104
93
|
report(handle: number): string;
|
|
105
94
|
/**
|
|
106
|
-
*
|
|
107
|
-
* and images, its last rendered frame, its file's bytes when it keeps
|
|
108
|
-
* them. A page that bounds what its open sources hold counts this.
|
|
95
|
+
* Bytes an open source holds between renders (cached frames, images, and file bytes).
|
|
109
96
|
*
|
|
110
97
|
* # Errors
|
|
111
98
|
* When the handle is not open.
|
|
112
99
|
*/
|
|
113
100
|
residentBytes(handle: number): number;
|
|
114
101
|
/**
|
|
115
|
-
*
|
|
102
|
+
* Total bytes registered under locators.
|
|
116
103
|
*/
|
|
117
104
|
resourceBytes(): number;
|
|
118
105
|
/**
|
|
119
|
-
*
|
|
120
|
-
* made from it ([`Self::reader`]): the same bytes for each, which a page
|
|
121
|
-
* counts once.
|
|
106
|
+
* The part of [`Self::resident_bytes`] shared with [`Self::reader`] readers, counted once.
|
|
122
107
|
*
|
|
123
108
|
* # Errors
|
|
124
109
|
* When the handle is not open.
|
|
@@ -138,18 +123,16 @@ export class RenderedFrame {
|
|
|
138
123
|
free(): void;
|
|
139
124
|
[Symbol.dispose](): void;
|
|
140
125
|
/**
|
|
141
|
-
*
|
|
126
|
+
* Diagnostics, as a JSON array.
|
|
142
127
|
*/
|
|
143
128
|
readonly diagnostics: string;
|
|
144
129
|
/**
|
|
145
|
-
* The first source tick it no longer shows at, or `undefined` for the
|
|
146
|
-
* last frame.
|
|
130
|
+
* The first source tick it no longer shows at, or `undefined` for the last frame.
|
|
147
131
|
*/
|
|
148
132
|
readonly endTicks: bigint | undefined;
|
|
149
133
|
/**
|
|
150
|
-
* Premultiplied linear-light RGBA half
|
|
151
|
-
*
|
|
152
|
-
* as [`Self::pixels`] is.
|
|
134
|
+
* Premultiplied linear-light RGBA half-float bits, BT.709 primaries, rows packed; empty for
|
|
135
|
+
* another precision.
|
|
153
136
|
*/
|
|
154
137
|
readonly halfPixels: Uint16Array;
|
|
155
138
|
/**
|
|
@@ -161,19 +144,15 @@ export class RenderedFrame {
|
|
|
161
144
|
*/
|
|
162
145
|
readonly index: number;
|
|
163
146
|
/**
|
|
164
|
-
* Premultiplied, sRGB-encoded RGBA8 rows
|
|
165
|
-
* precision. Copied once, from the pixels the source shares, straight
|
|
166
|
-
* into a new JavaScript array.
|
|
147
|
+
* Premultiplied, sRGB-encoded, packed RGBA8 rows; empty for another precision.
|
|
167
148
|
*/
|
|
168
149
|
readonly pixels: Uint8Array;
|
|
169
150
|
/**
|
|
170
|
-
*
|
|
171
|
-
* for [`Self::half_pixels`].
|
|
151
|
+
* `rgba8` for [`Self::pixels`], `linear_f16` for [`Self::half_pixels`].
|
|
172
152
|
*/
|
|
173
153
|
readonly precision: string;
|
|
174
154
|
/**
|
|
175
|
-
* The first source tick it shows at; 0 for the first frame
|
|
176
|
-
* answers every earlier time.
|
|
155
|
+
* The first source tick it shows at; 0 for the first frame.
|
|
177
156
|
*/
|
|
178
157
|
readonly startTicks: bigint;
|
|
179
158
|
/**
|
|
@@ -19,8 +19,7 @@ export class ExtensionRegistry {
|
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Forgets every registered font
|
|
23
|
-
* they opened with.
|
|
22
|
+
* Forgets every registered font; open sources keep theirs.
|
|
24
23
|
*/
|
|
25
24
|
clearFonts() {
|
|
26
25
|
if (this.__wbg_inst !== undefined && this.__wbg_inst !== __wbg_instance_id) {
|
|
@@ -30,8 +29,7 @@ export class ExtensionRegistry {
|
|
|
30
29
|
wasm.extensionregistry_clearFonts(this.__wbg_ptr);
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
|
-
*
|
|
34
|
-
* array of locators: those it does not already hold.
|
|
32
|
+
* Locators rendering at a source tick reads that the source does not hold, as a JSON array.
|
|
35
33
|
*
|
|
36
34
|
* # Errors
|
|
37
35
|
* When the handle is not open.
|
|
@@ -76,8 +74,7 @@ export class ExtensionRegistry {
|
|
|
76
74
|
return this;
|
|
77
75
|
}
|
|
78
76
|
/**
|
|
79
|
-
*
|
|
80
|
-
* JSON array of locators: an image sequence's first frame.
|
|
77
|
+
* Locators opening a provider source (JSON) reads, as a JSON array.
|
|
81
78
|
*
|
|
82
79
|
* # Errors
|
|
83
80
|
* When the provider source is not valid JSON.
|
|
@@ -111,11 +108,11 @@ export class ExtensionRegistry {
|
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
110
|
/**
|
|
114
|
-
* Opens a
|
|
115
|
-
*
|
|
111
|
+
* Opens a provider source (JSON) with its bytes (none for an image sequence) and returns a
|
|
112
|
+
* handle.
|
|
116
113
|
*
|
|
117
114
|
* # Errors
|
|
118
|
-
*
|
|
115
|
+
* If the source cannot be opened.
|
|
119
116
|
* @param {string} provider
|
|
120
117
|
* @param {Uint8Array | null} [bytes]
|
|
121
118
|
* @returns {number}
|
|
@@ -137,11 +134,10 @@ export class ExtensionRegistry {
|
|
|
137
134
|
return ret[0] >>> 0;
|
|
138
135
|
}
|
|
139
136
|
/**
|
|
140
|
-
*
|
|
141
|
-
* `{ provider, report }`, or `undefined` when none does.
|
|
137
|
+
* The first claiming provider's result as JSON `{ provider, report }`, or `undefined`.
|
|
142
138
|
*
|
|
143
139
|
* # Errors
|
|
144
|
-
*
|
|
140
|
+
* If a claiming provider cannot read the bytes.
|
|
145
141
|
* @param {Uint8Array} bytes
|
|
146
142
|
* @returns {string | undefined}
|
|
147
143
|
*/
|
|
@@ -187,13 +183,9 @@ export class ExtensionRegistry {
|
|
|
187
183
|
}
|
|
188
184
|
}
|
|
189
185
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* and every other reader made from either, and decodes on its own. The
|
|
194
|
-
* readers stay valid when the source they were made from is released.
|
|
195
|
-
* `undefined` for a source that draws any time as cheaply, which a
|
|
196
|
-
* page shares instead.
|
|
186
|
+
* A handle to another independently positioned reader that shares the source's decoded
|
|
187
|
+
* data. It stays valid after the original is closed. `undefined` when any time is equally
|
|
188
|
+
* cheap to draw, so the page should share the source.
|
|
197
189
|
*
|
|
198
190
|
* # Errors
|
|
199
191
|
* When the handle is not open.
|
|
@@ -213,8 +205,7 @@ export class ExtensionRegistry {
|
|
|
213
205
|
return ret[0] === Number.MAX_SAFE_INTEGER ? undefined : ret[0];
|
|
214
206
|
}
|
|
215
207
|
/**
|
|
216
|
-
* Registers a font
|
|
217
|
-
* before. A source reads the fonts when it opens.
|
|
208
|
+
* Registers a font for SVG text. Sources read fonts when they open.
|
|
218
209
|
* @param {Uint8Array} bytes
|
|
219
210
|
*/
|
|
220
211
|
registerFont(bytes) {
|
|
@@ -227,9 +218,8 @@ export class ExtensionRegistry {
|
|
|
227
218
|
wasm.extensionregistry_registerFont(this.__wbg_ptr, ptr0, len0);
|
|
228
219
|
}
|
|
229
220
|
/**
|
|
230
|
-
* Registers bytes under a locator
|
|
231
|
-
*
|
|
232
|
-
* a page may register them only for that call (see [`Self::needs`]).
|
|
221
|
+
* Registers bytes under a locator. Sources read them only during open or render, so a page
|
|
222
|
+
* may register them just for that call (see [`Self::needs`]).
|
|
233
223
|
* @param {string} locator
|
|
234
224
|
* @param {Uint8Array} bytes
|
|
235
225
|
*/
|
|
@@ -269,9 +259,8 @@ export class ExtensionRegistry {
|
|
|
269
259
|
wasm.extensionregistry_release(this.__wbg_ptr, handle);
|
|
270
260
|
}
|
|
271
261
|
/**
|
|
272
|
-
* The frame
|
|
273
|
-
*
|
|
274
|
-
* own size).
|
|
262
|
+
* The frame at a source tick. Vector sources rasterize to fit `fit_width` by `fit_height`
|
|
263
|
+
* (0 by 0 for their own size).
|
|
275
264
|
*
|
|
276
265
|
* # Errors
|
|
277
266
|
* When the handle is not open or the frame cannot be produced.
|
|
@@ -326,9 +315,7 @@ export class ExtensionRegistry {
|
|
|
326
315
|
}
|
|
327
316
|
}
|
|
328
317
|
/**
|
|
329
|
-
*
|
|
330
|
-
* and images, its last rendered frame, its file's bytes when it keeps
|
|
331
|
-
* them. A page that bounds what its open sources hold counts this.
|
|
318
|
+
* Bytes an open source holds between renders (cached frames, images, and file bytes).
|
|
332
319
|
*
|
|
333
320
|
* # Errors
|
|
334
321
|
* When the handle is not open.
|
|
@@ -348,7 +335,7 @@ export class ExtensionRegistry {
|
|
|
348
335
|
return ret[0] >>> 0;
|
|
349
336
|
}
|
|
350
337
|
/**
|
|
351
|
-
*
|
|
338
|
+
* Total bytes registered under locators.
|
|
352
339
|
* @returns {number}
|
|
353
340
|
*/
|
|
354
341
|
resourceBytes() {
|
|
@@ -361,9 +348,7 @@ export class ExtensionRegistry {
|
|
|
361
348
|
return ret >>> 0;
|
|
362
349
|
}
|
|
363
350
|
/**
|
|
364
|
-
*
|
|
365
|
-
* made from it ([`Self::reader`]): the same bytes for each, which a page
|
|
366
|
-
* counts once.
|
|
351
|
+
* The part of [`Self::resident_bytes`] shared with [`Self::reader`] readers, counted once.
|
|
367
352
|
*
|
|
368
353
|
* # Errors
|
|
369
354
|
* When the handle is not open.
|
|
@@ -426,7 +411,7 @@ export class RenderedFrame {
|
|
|
426
411
|
|
|
427
412
|
}
|
|
428
413
|
/**
|
|
429
|
-
*
|
|
414
|
+
* Diagnostics, as a JSON array.
|
|
430
415
|
* @returns {string}
|
|
431
416
|
*/
|
|
432
417
|
get diagnostics() {
|
|
@@ -448,8 +433,7 @@ export class RenderedFrame {
|
|
|
448
433
|
}
|
|
449
434
|
}
|
|
450
435
|
/**
|
|
451
|
-
* The first source tick it no longer shows at, or `undefined` for the
|
|
452
|
-
* last frame.
|
|
436
|
+
* The first source tick it no longer shows at, or `undefined` for the last frame.
|
|
453
437
|
* @returns {bigint | undefined}
|
|
454
438
|
*/
|
|
455
439
|
get endTicks() {
|
|
@@ -462,9 +446,8 @@ export class RenderedFrame {
|
|
|
462
446
|
return ret[0] === 0 ? undefined : ret[1];
|
|
463
447
|
}
|
|
464
448
|
/**
|
|
465
|
-
* Premultiplied linear-light RGBA half
|
|
466
|
-
*
|
|
467
|
-
* as [`Self::pixels`] is.
|
|
449
|
+
* Premultiplied linear-light RGBA half-float bits, BT.709 primaries, rows packed; empty for
|
|
450
|
+
* another precision.
|
|
468
451
|
* @returns {Uint16Array}
|
|
469
452
|
*/
|
|
470
453
|
get halfPixels() {
|
|
@@ -503,9 +486,7 @@ export class RenderedFrame {
|
|
|
503
486
|
return ret >>> 0;
|
|
504
487
|
}
|
|
505
488
|
/**
|
|
506
|
-
* Premultiplied, sRGB-encoded RGBA8 rows
|
|
507
|
-
* precision. Copied once, from the pixels the source shares, straight
|
|
508
|
-
* into a new JavaScript array.
|
|
489
|
+
* Premultiplied, sRGB-encoded, packed RGBA8 rows; empty for another precision.
|
|
509
490
|
* @returns {Uint8Array}
|
|
510
491
|
*/
|
|
511
492
|
get pixels() {
|
|
@@ -518,8 +499,7 @@ export class RenderedFrame {
|
|
|
518
499
|
return ret;
|
|
519
500
|
}
|
|
520
501
|
/**
|
|
521
|
-
*
|
|
522
|
-
* for [`Self::half_pixels`].
|
|
502
|
+
* `rgba8` for [`Self::pixels`], `linear_f16` for [`Self::half_pixels`].
|
|
523
503
|
* @returns {string}
|
|
524
504
|
*/
|
|
525
505
|
get precision() {
|
|
@@ -541,8 +521,7 @@ export class RenderedFrame {
|
|
|
541
521
|
}
|
|
542
522
|
}
|
|
543
523
|
/**
|
|
544
|
-
* The first source tick it shows at; 0 for the first frame
|
|
545
|
-
* answers every earlier time.
|
|
524
|
+
* The first source tick it shows at; 0 for the first frame.
|
|
546
525
|
* @returns {bigint}
|
|
547
526
|
*/
|
|
548
527
|
get startTicks() {
|
|
Binary file
|