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/wasm/alpha2_wasm.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Converts one source's audio to the project rate. Positions are sample
|
|
6
|
-
*
|
|
5
|
+
* Converts one source's audio to the project rate. Positions are sample indexes: the source's
|
|
6
|
+
* at its own rate, the output's at the project rate.
|
|
7
7
|
*/
|
|
8
8
|
export class AudioResampler {
|
|
9
9
|
free(): void;
|
|
@@ -12,13 +12,13 @@ export class AudioResampler {
|
|
|
12
12
|
* A converter from `source_rate` to `target_rate`.
|
|
13
13
|
*
|
|
14
14
|
* # Errors
|
|
15
|
-
* Rejects a rate of zero or above 768 kHz, and a source rate more than
|
|
16
|
-
*
|
|
15
|
+
* Rejects a rate of zero or above 768 kHz, and a source rate more than 8192 times the
|
|
16
|
+
* target rate.
|
|
17
17
|
*/
|
|
18
18
|
constructor(source_rate: number, target_rate: number);
|
|
19
19
|
/**
|
|
20
|
-
* `frames` outputs from `target_start`, from `input`, whose first sample
|
|
21
|
-
*
|
|
20
|
+
* `frames` outputs from `target_start`, from `input`, whose first sample is source sample
|
|
21
|
+
* `input_start`. The source is silent outside `input`.
|
|
22
22
|
*
|
|
23
23
|
* # Errors
|
|
24
24
|
* Rejects a position that is not a whole sample index.
|
|
@@ -96,9 +96,8 @@ export class LoudnessMeter {
|
|
|
96
96
|
*/
|
|
97
97
|
constructor(sample_rate: number, channels: number);
|
|
98
98
|
/**
|
|
99
|
-
* Adds one block
|
|
100
|
-
*
|
|
101
|
-
* silence.
|
|
99
|
+
* Adds one block of planar samples, channel after channel, all of one length. NaN or
|
|
100
|
+
* infinite samples measure as silence.
|
|
102
101
|
*
|
|
103
102
|
* # Errors
|
|
104
103
|
* Rejects a block whose length is not a multiple of the channel count.
|
|
@@ -132,20 +131,18 @@ export class PlaybackClock {
|
|
|
132
131
|
*/
|
|
133
132
|
static audible(policy: string, rate: number): boolean;
|
|
134
133
|
/**
|
|
135
|
-
* A clock starting at `tick` at wall time `now_ms`, playing at `rate`
|
|
136
|
-
*
|
|
137
|
-
* `
|
|
134
|
+
* A clock starting at `tick` at wall time `now_ms`, playing at `rate` under `policy`
|
|
135
|
+
* (`drop_video_keep_audio`, `preserve_every_video_frame`, `silent_scrub`, or
|
|
136
|
+
* `offline_exact`).
|
|
138
137
|
*
|
|
139
138
|
* # Errors
|
|
140
|
-
* Rejects an unknown policy, an invalid frame rate, or a rate or tick
|
|
141
|
-
* that is not finite.
|
|
139
|
+
* Rejects an unknown policy, an invalid frame rate, or a non-finite rate or tick.
|
|
142
140
|
*/
|
|
143
141
|
constructor(policy: string, frame_rate_num: number, frame_rate_den: number, rate: number, tick: number, now_ms: number);
|
|
144
142
|
/**
|
|
145
|
-
* The time to show at wall time `now_ms`. `heard` is the audio output's
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* the clock last asked for has been shown.
|
|
143
|
+
* The time to show at wall time `now_ms`. `heard` is the audio output's position in ticks
|
|
144
|
+
* while it runs, else `undefined` (positions before the clock's start clamp to it);
|
|
145
|
+
* `presented` says whether the frame last asked for has been shown.
|
|
149
146
|
*
|
|
150
147
|
* # Errors
|
|
151
148
|
* Rejects a `heard` that is not an integer tick.
|
|
@@ -161,8 +158,13 @@ export class RasterizedText {
|
|
|
161
158
|
free(): void;
|
|
162
159
|
[Symbol.dispose](): void;
|
|
163
160
|
/**
|
|
164
|
-
* Copies out the
|
|
165
|
-
*
|
|
161
|
+
* Copies out the background boxes split off by `splitBackground`, packed like the
|
|
162
|
+
* pixels. Empty when not split, or after `takePixels`.
|
|
163
|
+
*/
|
|
164
|
+
takeBackground(): Uint8Array;
|
|
165
|
+
/**
|
|
166
|
+
* Copies out the pixels as tightly packed premultiplied RGBA8 rows and releases them and
|
|
167
|
+
* the background; a second call returns an empty array.
|
|
166
168
|
*/
|
|
167
169
|
takePixels(): Uint8Array;
|
|
168
170
|
/**
|
|
@@ -172,14 +174,20 @@ export class RasterizedText {
|
|
|
172
174
|
}
|
|
173
175
|
|
|
174
176
|
/**
|
|
175
|
-
* Measures text generators
|
|
176
|
-
*
|
|
177
|
-
* a renderer draws with, in the same order, it answers for that
|
|
178
|
-
* renderer's frames.
|
|
177
|
+
* Measures where text generators draw on the canvas, without a GPU. Given the same fonts in
|
|
178
|
+
* the same order as a renderer, it answers for that renderer's frames.
|
|
179
179
|
*/
|
|
180
180
|
export class WasmTextMeasurer {
|
|
181
181
|
free(): void;
|
|
182
182
|
[Symbol.dispose](): void;
|
|
183
|
+
/**
|
|
184
|
+
* Appends every face of an OpenType font file (each weight of a `.ttc`) to the fallback
|
|
185
|
+
* stack in file order, all checked before any is added.
|
|
186
|
+
*
|
|
187
|
+
* # Errors
|
|
188
|
+
* Rejects malformed font bytes; no face is added.
|
|
189
|
+
*/
|
|
190
|
+
addFontFile(family: string, bytes: Uint8Array): void;
|
|
183
191
|
/**
|
|
184
192
|
* Appends an OpenType font to the fallback stack.
|
|
185
193
|
*
|
|
@@ -192,37 +200,34 @@ export class WasmTextMeasurer {
|
|
|
192
200
|
*/
|
|
193
201
|
clearFonts(): void;
|
|
194
202
|
/**
|
|
195
|
-
* Where each node of the layout generator `generator_json`
|
|
196
|
-
*
|
|
197
|
-
* `
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
* `
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* picture's size when they are omitted.
|
|
203
|
+
* Where each node of the layout generator `generator_json` (`{ "type": "layout",
|
|
204
|
+
* "root" }`) lies on a `width` by `height` picture at `time` (ticks), as JSON
|
|
205
|
+
* `{ nodes }`.
|
|
206
|
+
*
|
|
207
|
+
* Nodes are in preorder as `{ at, border, content, overflow, lineCount, baselines }`,
|
|
208
|
+
* boxes `{ left, top, right, bottom }` in picture fractions before the clip's transform
|
|
209
|
+
* and node visuals. `lineCount` is `null` for a node without text, and `baselines`
|
|
210
|
+
* (`{ first, last }`, fractions of picture height) also for empty text. `"<n>px"`
|
|
211
|
+
* lengths are project canvas pixels (`canvasWidth` by `canvasHeight`, defaulting to the
|
|
212
|
+
* picture size).
|
|
206
213
|
*
|
|
207
214
|
* # Errors
|
|
208
|
-
* Rejects
|
|
209
|
-
*
|
|
210
|
-
* measurer without fonts for a layout with text.
|
|
215
|
+
* Rejects an invalid layout generator, an empty picture or canvas, a time that is not
|
|
216
|
+
* whole ticks, and a measurer without fonts for a layout with text.
|
|
211
217
|
*/
|
|
212
218
|
measureLayout(generator_json: string, width: number, height: number, time: number, canvas_width?: number | null, canvas_height?: number | null): string;
|
|
213
219
|
/**
|
|
214
|
-
* Where the text generator `generator_json` (`{ "type": "text",
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
220
|
+
* Where the text generator `generator_json` (`{ "type": "text", "text", "style" }`)
|
|
221
|
+
* lies on a `width` by `height` canvas, as JSON `{ layout, content, ink, lineCount,
|
|
222
|
+
* baselines }`.
|
|
223
|
+
*
|
|
224
|
+
* Rectangles are `{ left, top, right, bottom }` in canvas fractions, before the clip's
|
|
225
|
+
* transform; `ink` is `null` when nothing draws. `baselines` is `{ first, last }`, the
|
|
226
|
+
* first and last alphabetic baselines as fractions of canvas height. Measure at the
|
|
227
|
+
* project canvas size, since another size can break lines elsewhere.
|
|
222
228
|
*
|
|
223
229
|
* # Errors
|
|
224
|
-
* Rejects
|
|
225
|
-
* a measurer without fonts.
|
|
230
|
+
* Rejects an invalid text generator, an empty canvas, and a measurer without fonts.
|
|
226
231
|
*/
|
|
227
232
|
measure(generator_json: string, width: number, height: number): string;
|
|
228
233
|
/**
|
|
@@ -237,6 +242,14 @@ export class WasmTextMeasurer {
|
|
|
237
242
|
export class WasmTextRasterizer {
|
|
238
243
|
free(): void;
|
|
239
244
|
[Symbol.dispose](): void;
|
|
245
|
+
/**
|
|
246
|
+
* Appends every face of an OpenType font file (each weight of a `.ttc`) to the fallback
|
|
247
|
+
* stack in file order, all checked before any is added.
|
|
248
|
+
*
|
|
249
|
+
* # Errors
|
|
250
|
+
* Rejects malformed font bytes; no face is added.
|
|
251
|
+
*/
|
|
252
|
+
addFontFile(family: string, bytes: Uint8Array): void;
|
|
240
253
|
/**
|
|
241
254
|
* Appends an OpenType font to the fallback stack.
|
|
242
255
|
*
|
|
@@ -257,14 +270,12 @@ export class WasmTextRasterizer {
|
|
|
257
270
|
*/
|
|
258
271
|
constructor();
|
|
259
272
|
/**
|
|
260
|
-
* Shapes, lays out, and rasterizes one request, or returns the cached
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
* least recently used past it.
|
|
273
|
+
* Shapes, lays out, and rasterizes one request, or returns the cached result for its
|
|
274
|
+
* content version. The cache keeps `alpha2_text::DEFAULT_TEXT_CACHE_BYTES` of results,
|
|
275
|
+
* least recently used first out.
|
|
264
276
|
*
|
|
265
277
|
* # Errors
|
|
266
|
-
* Rejects a malformed or out-of-range request, or a rasterizer
|
|
267
|
-
* without fonts.
|
|
278
|
+
* Rejects a malformed or out-of-range request, or a rasterizer without fonts.
|
|
268
279
|
*/
|
|
269
280
|
rasterize(request_json: string, content_version: bigint): RasterizedText;
|
|
270
281
|
/**
|
|
@@ -274,8 +285,7 @@ export class WasmTextRasterizer {
|
|
|
274
285
|
}
|
|
275
286
|
|
|
276
287
|
/**
|
|
277
|
-
* Builds a multi-resolution waveform summary from planar samples streamed in
|
|
278
|
-
* blocks.
|
|
288
|
+
* Builds a multi-resolution waveform summary from planar samples streamed in blocks.
|
|
279
289
|
*/
|
|
280
290
|
export class WaveformBuilder {
|
|
281
291
|
free(): void;
|
|
@@ -288,20 +298,19 @@ export class WaveformBuilder {
|
|
|
288
298
|
*/
|
|
289
299
|
finish(): WaveformResult;
|
|
290
300
|
/**
|
|
291
|
-
* A builder for `channels` channels, `bucket_samples` samples per finest
|
|
292
|
-
*
|
|
301
|
+
* A builder for `channels` channels, `bucket_samples` samples per finest bucket, and
|
|
302
|
+
* `levels` zoom levels, each four times coarser.
|
|
293
303
|
*
|
|
294
304
|
* # Errors
|
|
295
305
|
* Rejects zero channels, a zero bucket, or 0 or more than 16 levels.
|
|
296
306
|
*/
|
|
297
307
|
constructor(channels: number, bucket_samples: number, levels: number);
|
|
298
308
|
/**
|
|
299
|
-
* Adds one block
|
|
300
|
-
* channel, all of one length.
|
|
309
|
+
* Adds one block of planar samples, channel after channel, all of one length.
|
|
301
310
|
*
|
|
302
311
|
* # Errors
|
|
303
|
-
* Rejects a block whose length is not a multiple of the channel count,
|
|
304
|
-
*
|
|
312
|
+
* Rejects a block whose length is not a multiple of the channel count, or a finished
|
|
313
|
+
* builder.
|
|
305
314
|
*/
|
|
306
315
|
push(planar: Float32Array): void;
|
|
307
316
|
}
|
|
@@ -318,8 +327,8 @@ export class WaveformResult {
|
|
|
318
327
|
*/
|
|
319
328
|
bucketSamples(level: number): number;
|
|
320
329
|
/**
|
|
321
|
-
* One channel's buckets at `level` as `[min, max, rms]` triples; empty
|
|
322
|
-
*
|
|
330
|
+
* One channel's buckets at `level` as `[min, max, rms]` triples; empty past the last level
|
|
331
|
+
* or channel.
|
|
323
332
|
*/
|
|
324
333
|
buckets(level: number, channel: number): Float32Array;
|
|
325
334
|
/**
|
|
@@ -335,14 +344,21 @@ export class WaveformResult {
|
|
|
335
344
|
/**
|
|
336
345
|
* The browser renderer that draws on the CPU, for a page with no GPU.
|
|
337
346
|
*
|
|
338
|
-
* It answers the calls `WebEffectRegistry`
|
|
339
|
-
*
|
|
340
|
-
* renderer, byte for byte. Effects registered at run time are refused.
|
|
347
|
+
* It answers the same preview, export, text and audio calls as `WebEffectRegistry` and draws
|
|
348
|
+
* byte-identical pictures to the native CPU renderer. Runtime effects are refused.
|
|
341
349
|
*/
|
|
342
350
|
export class WebCpuRenderer {
|
|
343
351
|
private constructor();
|
|
344
352
|
free(): void;
|
|
345
353
|
[Symbol.dispose](): void;
|
|
354
|
+
/**
|
|
355
|
+
* Appends every face of an OpenType font file (each weight of a `.ttc`) to the fallback
|
|
356
|
+
* stack in file order, all checked before any is added.
|
|
357
|
+
*
|
|
358
|
+
* # Errors
|
|
359
|
+
* Returns an error for malformed font bytes; no face is added.
|
|
360
|
+
*/
|
|
361
|
+
addFontFile(family: string, bytes: Uint8Array): void;
|
|
346
362
|
/**
|
|
347
363
|
* Appends an OpenType font to the fallback stack text draws with.
|
|
348
364
|
*
|
|
@@ -354,8 +370,8 @@ export class WebCpuRenderer {
|
|
|
354
370
|
* `WebEffectRegistry.aliasVideoFrame`.
|
|
355
371
|
*
|
|
356
372
|
* # Errors
|
|
357
|
-
* Refuses an alias that would
|
|
358
|
-
*
|
|
373
|
+
* Refuses an alias that would push the export frame's sources over the uploaded-frame
|
|
374
|
+
* budget.
|
|
359
375
|
*/
|
|
360
376
|
aliasVideoFrame(source_id: string, existing_media_time_ticks: bigint, requested_media_time_ticks: bigint): boolean;
|
|
361
377
|
/**
|
|
@@ -396,18 +412,16 @@ export class WebCpuRenderer {
|
|
|
396
412
|
*/
|
|
397
413
|
audioSampleRate(): number;
|
|
398
414
|
/**
|
|
399
|
-
* `WebEffectRegistry.beginExportAt`: one exact timeline timestamp at
|
|
400
|
-
*
|
|
415
|
+
* `WebEffectRegistry.beginExportAt`: one exact timeline timestamp at export quality, with
|
|
416
|
+
* `readback` already settled.
|
|
401
417
|
*
|
|
402
418
|
* # Errors
|
|
403
|
-
* Returns an error without a loaded project, for an unknown codec or an
|
|
404
|
-
*
|
|
405
|
-
* or when the frame cannot be drawn.
|
|
419
|
+
* Returns an error without a loaded project, for an unknown codec or odd size, an effect
|
|
420
|
+
* that does not draw on the CPU (`EFFECT_ERROR`), or when the frame cannot be drawn.
|
|
406
421
|
*/
|
|
407
|
-
beginExportAt(time_ticks: bigint, codec: string): any;
|
|
422
|
+
beginExportAt(time_ticks: bigint, codec: string, pixels?: string | null): any;
|
|
408
423
|
/**
|
|
409
|
-
* `WebEffectRegistry.beginExportFrame
|
|
410
|
-
* settled.
|
|
424
|
+
* `WebEffectRegistry.beginExportFrame`, with `readback` already settled.
|
|
411
425
|
*
|
|
412
426
|
* # Errors
|
|
413
427
|
* As [`Self::export_frame`].
|
|
@@ -417,20 +431,17 @@ export class WebCpuRenderer {
|
|
|
417
431
|
* `WebEffectRegistry.beginExport`, drawing on the CPU.
|
|
418
432
|
*
|
|
419
433
|
* # Errors
|
|
420
|
-
* Returns an error without a loaded project, for an empty range, an
|
|
421
|
-
*
|
|
434
|
+
* Returns an error without a loaded project, for an empty range, an invalid frame rate, or
|
|
435
|
+
* an unknown codec.
|
|
422
436
|
*/
|
|
423
437
|
beginExport(start_ticks: bigint, end_ticks: bigint, rate_num: number, rate_den: number, codec: string): void;
|
|
424
438
|
/**
|
|
425
|
-
* The engine's effect and transition authoring catalog
|
|
426
|
-
* draws on the CPU.
|
|
439
|
+
* The engine's effect and transition authoring catalog; every built-in draws on the CPU.
|
|
427
440
|
*/
|
|
428
441
|
builtinCatalog(): string;
|
|
429
442
|
/**
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
* `features` says `renderer.cpu` is available, `renderer.gpu` is not,
|
|
433
|
-
* and runtime effects (`effects.runtime`) do not run.
|
|
443
|
+
* The shared capability report JSON with runtime `browser`: backend `cpu`,
|
|
444
|
+
* `renderer.cpu` available, `renderer.gpu` and `effects.runtime` not.
|
|
434
445
|
*
|
|
435
446
|
* # Errors
|
|
436
447
|
* Returns an error if the report cannot be serialized.
|
|
@@ -457,15 +468,15 @@ export class WebCpuRenderer {
|
|
|
457
468
|
*/
|
|
458
469
|
clearFrames(): void;
|
|
459
470
|
/**
|
|
460
|
-
* Refused:
|
|
471
|
+
* Refused: runtime effects are WGSL, which only a GPU runs.
|
|
461
472
|
*
|
|
462
473
|
* # Errors
|
|
463
474
|
* Always rejects with `EFFECT_ERROR`.
|
|
464
475
|
*/
|
|
465
476
|
compileEffect(json: string): Promise<any>;
|
|
466
477
|
/**
|
|
467
|
-
* A JSON snapshot for developer tooling: what the CPU renderer drew,
|
|
468
|
-
*
|
|
478
|
+
* A JSON snapshot for developer tooling: what the CPU renderer drew, its result cache, and
|
|
479
|
+
* the frames it holds.
|
|
469
480
|
*
|
|
470
481
|
* # Errors
|
|
471
482
|
* Returns an error if the snapshot cannot be serialized.
|
|
@@ -476,12 +487,11 @@ export class WebCpuRenderer {
|
|
|
476
487
|
*/
|
|
477
488
|
endExport(): void;
|
|
478
489
|
/**
|
|
479
|
-
* `WebEffectRegistry.exportFrame`: the next export frame, drawn
|
|
480
|
-
* CPU before the call returns.
|
|
490
|
+
* `WebEffectRegistry.exportFrame`: the next export frame, drawn before the call returns.
|
|
481
491
|
*
|
|
482
492
|
* # Errors
|
|
483
|
-
* Returns an error without a running export or
|
|
484
|
-
*
|
|
493
|
+
* Returns an error without a running export or loaded project, or when the frame cannot
|
|
494
|
+
* be drawn.
|
|
485
495
|
*/
|
|
486
496
|
exportFrame(): Promise<any>;
|
|
487
497
|
/**
|
|
@@ -507,8 +517,8 @@ export class WebCpuRenderer {
|
|
|
507
517
|
*/
|
|
508
518
|
holdsImage(source_id: string, generation: bigint): boolean;
|
|
509
519
|
/**
|
|
510
|
-
* Loads and validates a versioned project document, keeping uploads
|
|
511
|
-
*
|
|
520
|
+
* Loads and validates a versioned project document, keeping uploads as
|
|
521
|
+
* `WebEffectRegistry.loadProject` does, and ends a running export.
|
|
512
522
|
*
|
|
513
523
|
* # Errors
|
|
514
524
|
* Rejects a document the engine refuses.
|
|
@@ -553,10 +563,9 @@ export class WebCpuRenderer {
|
|
|
553
563
|
*/
|
|
554
564
|
releaseSourceFrames(source_id: string): boolean;
|
|
555
565
|
/**
|
|
556
|
-
* Draws one project frame at
|
|
557
|
-
*
|
|
558
|
-
* `
|
|
559
|
-
* is neither drawn nor put (`unchanged`).
|
|
566
|
+
* Draws one project frame at preview quality onto the canvas's 2D context, scaled to fit,
|
|
567
|
+
* and returns the JSON `WebEffectRegistry.renderAt` returns. A frame equal to the one
|
|
568
|
+
* shown is skipped (`unchanged`).
|
|
560
569
|
*
|
|
561
570
|
* # Errors
|
|
562
571
|
* Fails without a project, or when the frame cannot be drawn.
|
|
@@ -578,8 +587,8 @@ export class WebCpuRenderer {
|
|
|
578
587
|
*/
|
|
579
588
|
resetPlayer(): void;
|
|
580
589
|
/**
|
|
581
|
-
* Sizes the canvas to `width` by `height`, which preview frames are
|
|
582
|
-
*
|
|
590
|
+
* Sizes the canvas to `width` by `height`, which preview frames are scaled to fill, and
|
|
591
|
+
* drops the held frame.
|
|
583
592
|
*
|
|
584
593
|
* # Errors
|
|
585
594
|
* Fails without a canvas, or for a zero or oversized dimension.
|
|
@@ -611,24 +620,22 @@ export class WebCpuRenderer {
|
|
|
611
620
|
*/
|
|
612
621
|
setPassTiming(_enabled: boolean): void;
|
|
613
622
|
/**
|
|
614
|
-
* Renders preview frames at `scale` times the project
|
|
615
|
-
* on (0.5 until set).
|
|
623
|
+
* Renders preview frames at `scale` times the project size from now on (default 0.5).
|
|
616
624
|
*
|
|
617
625
|
* # Errors
|
|
618
626
|
* Rejects a scale that is not finite, above 0 and at most 8.
|
|
619
627
|
*/
|
|
620
628
|
setPreviewScale(scale: number): void;
|
|
621
629
|
/**
|
|
622
|
-
* Lets drawn results
|
|
623
|
-
*
|
|
630
|
+
* Lets drawn results use up to `bytes` of wasm memory for reuse when a frame repeats; zero
|
|
631
|
+
* (the default) disables it.
|
|
624
632
|
*
|
|
625
633
|
* # Errors
|
|
626
634
|
* Rejects a negative or non-finite budget.
|
|
627
635
|
*/
|
|
628
636
|
setResultCacheBudget(bytes: number): void;
|
|
629
637
|
/**
|
|
630
|
-
* Sets the byte budget
|
|
631
|
-
* memory), as `WebEffectRegistry.setUploadedFrameBudget` does.
|
|
638
|
+
* Sets the uploaded-frame byte budget (default 256 MiB of wasm memory).
|
|
632
639
|
*
|
|
633
640
|
* # Errors
|
|
634
641
|
* Rejects a negative or non-finite budget.
|
|
@@ -639,8 +646,7 @@ export class WebCpuRenderer {
|
|
|
639
646
|
*/
|
|
640
647
|
sourceColorMetadata(source_id: string): string | undefined;
|
|
641
648
|
/**
|
|
642
|
-
*
|
|
643
|
-
* its call returns.
|
|
649
|
+
* Resolves at once, since CPU work is done when its call returns.
|
|
644
650
|
*/
|
|
645
651
|
submittedWorkDone(): Promise<any>;
|
|
646
652
|
/**
|
|
@@ -667,8 +673,8 @@ export class WebCpuRenderer {
|
|
|
667
673
|
*/
|
|
668
674
|
uploadAudioBlock(source_id: string, start_sample: bigint, sample_rate: number, layout: any, samples: Float32Array, ends_source?: boolean | null): void;
|
|
669
675
|
/**
|
|
670
|
-
* [`Self::upload_presented_video_frame`] for a bitmap made with
|
|
671
|
-
*
|
|
676
|
+
* [`Self::upload_presented_video_frame`] for a bitmap made with `premultiplyAlpha: "none"`.
|
|
677
|
+
* Always closes `bitmap`.
|
|
672
678
|
*
|
|
673
679
|
* # Errors
|
|
674
680
|
* As [`Self::upload_presented_video_frame`].
|
|
@@ -703,48 +709,43 @@ export class WebCpuRenderer {
|
|
|
703
709
|
*/
|
|
704
710
|
uploadPresentedRgbaImage(source_id: string, width: number, height: number, pixels: Uint8Array, premultiplied: boolean, output_width: number, output_height: number): any;
|
|
705
711
|
/**
|
|
706
|
-
* `WebEffectRegistry.uploadPresentedVideoFrame
|
|
707
|
-
*
|
|
708
|
-
* `frame`; an HDR source's frame is refused (`uploadYuvFrame` takes it).
|
|
712
|
+
* `WebEffectRegistry.uploadPresentedVideoFrame`: the frame read through a 2D canvas (the
|
|
713
|
+
* browser's conversion). Always closes `frame`. HDR sources must use `uploadYuvFrame`.
|
|
709
714
|
*
|
|
710
715
|
* # Errors
|
|
711
|
-
* Rejects an HDR source's frame, a bad placement, and a frame the
|
|
712
|
-
* browser cannot read.
|
|
716
|
+
* Rejects an HDR source's frame, a bad placement, and a frame the browser cannot read.
|
|
713
717
|
*/
|
|
714
718
|
uploadPresentedVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
715
719
|
/**
|
|
716
|
-
* `WebEffectRegistry.uploadRgbaFrame`: premultiplied RGBA8 kept at its
|
|
717
|
-
* own size.
|
|
720
|
+
* `WebEffectRegistry.uploadRgbaFrame`: premultiplied RGBA8 kept at its own size.
|
|
718
721
|
*
|
|
719
722
|
* # Errors
|
|
720
723
|
* Rejects pixels that do not hold the size.
|
|
721
724
|
*/
|
|
722
725
|
uploadRgbaFrame(source_id: string, media_time_ticks: bigint, width: number, height: number, pixels: Uint8Array): any;
|
|
723
726
|
/**
|
|
724
|
-
* `WebEffectRegistry.uploadRgbaImage`: a
|
|
725
|
-
* at its own size.
|
|
727
|
+
* `WebEffectRegistry.uploadRgbaImage`: a premultiplied RGBA8 still kept at its own size.
|
|
726
728
|
*
|
|
727
729
|
* # Errors
|
|
728
730
|
* Rejects pixels that do not hold the size.
|
|
729
731
|
*/
|
|
730
732
|
uploadRgbaImage(source_id: string, width: number, height: number, pixels: Uint8Array): any;
|
|
731
733
|
/**
|
|
732
|
-
* `WebEffectRegistry.uploadVideoFrame`: the frame read through a 2D
|
|
733
|
-
*
|
|
734
|
+
* `WebEffectRegistry.uploadVideoFrame`: the frame read through a 2D canvas and fitted to
|
|
735
|
+
* the loaded project. Always closes `frame`.
|
|
734
736
|
*
|
|
735
737
|
* # Errors
|
|
736
738
|
* Rejects an HDR source's frame and a frame the browser cannot read.
|
|
737
739
|
*/
|
|
738
740
|
uploadVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame): any;
|
|
739
741
|
/**
|
|
740
|
-
* `WebEffectRegistry.uploadYuvFrame`: a decoded frame's planes
|
|
741
|
-
*
|
|
742
|
-
* the project's color pipeline when a frame first draws them.
|
|
742
|
+
* `WebEffectRegistry.uploadYuvFrame`: a decoded frame's planes as `VideoFrame.copyTo`
|
|
743
|
+
* writes them, converted under the project's color pipeline when first drawn.
|
|
743
744
|
*
|
|
744
745
|
* # Errors
|
|
745
|
-
* Rejects (`INVALID_INPUT`) an unknown format or chroma siting, a layout
|
|
746
|
-
*
|
|
747
|
-
*
|
|
746
|
+
* Rejects (`INVALID_INPUT`) an unknown format or chroma siting, a layout or plane that does
|
|
747
|
+
* not fit the data, a bad size or rotation, and an HDR frame the project's color pipeline
|
|
748
|
+
* refuses.
|
|
748
749
|
*/
|
|
749
750
|
uploadYuvFrame(source_id: string, media_time_ticks: bigint, format: string, coded_width: number, coded_height: number, data: Uint8Array, layout: Uint32Array, visible: Uint32Array, display_width: number, display_height: number, color: string, chroma_siting: string, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
750
751
|
/**
|
|
@@ -771,8 +772,8 @@ export class WebCpuRenderer {
|
|
|
771
772
|
*/
|
|
772
773
|
readonly retiredFrameCount: number;
|
|
773
774
|
/**
|
|
774
|
-
* `true`: decoded `VideoFrame`s are taken
|
|
775
|
-
*
|
|
775
|
+
* `true`: decoded `VideoFrame`s are taken as planes (`uploadYuvFrame`) or through a 2D
|
|
776
|
+
* canvas.
|
|
776
777
|
*/
|
|
777
778
|
readonly supportsExternalVideoFrame: boolean;
|
|
778
779
|
/**
|
|
@@ -784,36 +785,42 @@ export class WebCpuRenderer {
|
|
|
784
785
|
*/
|
|
785
786
|
readonly uploadedFrameCount: number;
|
|
786
787
|
/**
|
|
787
|
-
* `"canvas"`:
|
|
788
|
-
* canvas.
|
|
788
|
+
* `"canvas"`: `VideoFrame`s are read through a 2D canvas.
|
|
789
789
|
*/
|
|
790
790
|
readonly videoFrameCopy: string;
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
/**
|
|
794
|
-
* WebGPU
|
|
794
|
+
* The browser GPU renderer (WebGPU or WebGL2), with its runtime effect registry.
|
|
795
795
|
*/
|
|
796
796
|
export class WebEffectRegistry {
|
|
797
797
|
private constructor();
|
|
798
798
|
free(): void;
|
|
799
799
|
[Symbol.dispose](): void;
|
|
800
800
|
/**
|
|
801
|
-
* Appends an OpenType font
|
|
802
|
-
*
|
|
803
|
-
*
|
|
804
|
-
*
|
|
801
|
+
* Appends every face of an OpenType font file (each weight of a `.ttc`) to the fallback
|
|
802
|
+
* stack in file order, all checked before any is added.
|
|
803
|
+
*
|
|
804
|
+
* # Errors
|
|
805
|
+
* Returns an error for malformed font bytes; no face is added.
|
|
806
|
+
*/
|
|
807
|
+
addFontFile(family: string, bytes: Uint8Array): void;
|
|
808
|
+
/**
|
|
809
|
+
* Appends an OpenType font to the fallback stack for captions, text generators and
|
|
810
|
+
* layouts. With the same fonts as the export host, preview text matches exported text
|
|
811
|
+
* pixel for pixel.
|
|
805
812
|
*
|
|
806
813
|
* # Errors
|
|
807
814
|
* Returns an error for malformed font bytes.
|
|
808
815
|
*/
|
|
809
816
|
addFont(family: string, bytes: Uint8Array, face_index: number): void;
|
|
810
817
|
/**
|
|
811
|
-
* Aliases a new exact source-time request to an already uploaded
|
|
812
|
-
*
|
|
818
|
+
* Aliases a new exact source-time request to an already uploaded frame. Returns `false`
|
|
819
|
+
* when no frame is stored at the existing time.
|
|
813
820
|
*
|
|
814
821
|
* # Errors
|
|
815
|
-
* Refuses with `RESOURCE_LIMIT
|
|
816
|
-
* the
|
|
822
|
+
* Refuses with `RESOURCE_LIMIT` an alias that would push the export frame's sources over
|
|
823
|
+
* the uploaded-frame budget.
|
|
817
824
|
*/
|
|
818
825
|
aliasVideoFrame(source_id: string, existing_media_time_ticks: bigint, requested_media_time_ticks: bigint): boolean;
|
|
819
826
|
/**
|
|
@@ -821,21 +828,17 @@ export class WebEffectRegistry {
|
|
|
821
828
|
*/
|
|
822
829
|
audioChannels(): number;
|
|
823
830
|
/**
|
|
824
|
-
*
|
|
825
|
-
* JSON array of source IDs.
|
|
831
|
+
* Source IDs the most recent `renderAudio` call could not mix, as a JSON array.
|
|
826
832
|
*/
|
|
827
833
|
audioMissingSources(): string;
|
|
828
834
|
/**
|
|
829
|
-
* Source intervals a host must decode before mixing a sample range
|
|
830
|
-
*
|
|
831
|
-
*
|
|
832
|
-
* They cover read-ahead and, after a seek, the finite state-settling
|
|
833
|
-
* history each clip's effect stages replay, as well as the delay lines.
|
|
834
|
-
* Tick values are strings so JavaScript preserves the full i64 range.
|
|
835
|
+
* Source intervals a host must decode before mixing a sample range, including
|
|
836
|
+
* interpolation neighbours, read-ahead, delay lines, and after a seek the settling history
|
|
837
|
+
* effect stages replay. Tick values are strings to preserve the full i64 range.
|
|
835
838
|
*/
|
|
836
839
|
audioNeeds(start_sample: bigint, frames: number): string;
|
|
837
840
|
/**
|
|
838
|
-
* Allocated audio sample bytes, including spare capacity
|
|
841
|
+
* Allocated audio sample bytes, including spare capacity.
|
|
839
842
|
*/
|
|
840
843
|
audioRetainedBytes(): number;
|
|
841
844
|
/**
|
|
@@ -843,12 +846,9 @@ export class WebEffectRegistry {
|
|
|
843
846
|
*/
|
|
844
847
|
audioRetainedFrames(): number;
|
|
845
848
|
/**
|
|
846
|
-
* Half-open project-rate sample intervals of one source's
|
|
847
|
-
*
|
|
848
|
-
*
|
|
849
|
-
*
|
|
850
|
-
* A host decodes only what these do not cover: the store may have
|
|
851
|
-
* extended, replaced or dropped a window since the host uploaded it.
|
|
849
|
+
* Half-open project-rate sample intervals of one source's windows, most recently uploaded
|
|
850
|
+
* first, as JSON `[{startSample, endSample}]`. A host decodes only what these do not
|
|
851
|
+
* cover, since the store may have extended, replaced or dropped windows.
|
|
852
852
|
*/
|
|
853
853
|
audioRetainedWindows(source_id: string): string;
|
|
854
854
|
/**
|
|
@@ -856,70 +856,56 @@ export class WebEffectRegistry {
|
|
|
856
856
|
*/
|
|
857
857
|
audioSampleRate(): number;
|
|
858
858
|
/**
|
|
859
|
-
* Starts one exact timeline timestamp offscreen at export quality
|
|
859
|
+
* Starts one exact timeline timestamp offscreen at export quality: the stateless
|
|
860
|
+
* counterpart of [`Self::export_frame`] for a JavaScript-scheduled exporter.
|
|
860
861
|
*
|
|
861
|
-
*
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
*
|
|
865
|
-
*
|
|
866
|
-
* A rendered result exposes its readback promise separately so the worker
|
|
867
|
-
* can submit later frames while earlier mappings remain in flight. The
|
|
868
|
-
* frame is packed for `codec`, as [`Self::begin_export`] packs it.
|
|
862
|
+
* The readback promise is exposed separately so later frames can be submitted while
|
|
863
|
+
* earlier mappings are in flight. Frames are packed for `codec` as [`Self::begin_export`]
|
|
864
|
+
* does, in `pixels` (an `FFmpeg` pixel format: `yuva420p` keeps alpha and draws no
|
|
865
|
+
* background, `yuv420p10le` is 10-bit; I420 when absent). Non-I420 layouts are packed into
|
|
866
|
+
* tight planes with the `WebCodecs` `format` (`I420A`, `I420P10`).
|
|
869
867
|
*
|
|
870
868
|
* # Errors
|
|
871
|
-
* Returns an error without a loaded project, for an unknown codec, or
|
|
872
|
-
*
|
|
869
|
+
* Returns an error without a loaded project, for an unknown codec or pixel format, or when
|
|
870
|
+
* rendering or submission fails.
|
|
873
871
|
*/
|
|
874
|
-
beginExportAt(time_ticks: bigint, codec: string): any;
|
|
872
|
+
beginExportAt(time_ticks: bigint, codec: string, pixels?: string | null): any;
|
|
875
873
|
/**
|
|
876
874
|
* Starts the next export render and returns before its GPU readback maps.
|
|
877
875
|
*
|
|
878
|
-
* A rendered result
|
|
879
|
-
*
|
|
880
|
-
* readbacks to remain in flight. Waiting results still do not advance the
|
|
881
|
-
* deterministic export cursor.
|
|
876
|
+
* A rendered result carries a `readback` promise; calling again while it is pending keeps
|
|
877
|
+
* two or three readbacks in flight. Waiting results do not advance the cursor.
|
|
882
878
|
*/
|
|
883
879
|
beginExportFrame(): any;
|
|
884
880
|
/**
|
|
885
|
-
* Renders the next export frame and presents it on this renderer's
|
|
886
|
-
*
|
|
887
|
-
* page captures the canvas with `new VideoFrame(canvas)` and hands that to
|
|
888
|
-
* its encoder, so no frame is mapped or copied into script.
|
|
881
|
+
* Renders the next export frame and presents it on this renderer's canvas instead of
|
|
882
|
+
* reading it back (experimental): the page captures it with `new VideoFrame(canvas)`.
|
|
889
883
|
*
|
|
890
|
-
* The canvas must be sized to the export (`resizeSurface`) and
|
|
891
|
-
*
|
|
892
|
-
*
|
|
893
|
-
* `
|
|
894
|
-
* results `beginExportFrame` returns.
|
|
884
|
+
* The canvas must be sized to the export (`resizeSurface`) and serve only this export.
|
|
885
|
+
* Capture it in the same task, before the next call replaces the drawing buffer. Returns
|
|
886
|
+
* `{kind: "rendered", index, timeTicks}`, or the `waiting` and `complete` results of
|
|
887
|
+
* `beginExportFrame`.
|
|
895
888
|
*
|
|
896
889
|
* # Errors
|
|
897
|
-
* Returns an error without a loaded project, a running export, or a
|
|
898
|
-
*
|
|
890
|
+
* Returns an error without a loaded project, a running export, or a canvas, or when
|
|
891
|
+
* rendering or presentation fails.
|
|
899
892
|
*/
|
|
900
893
|
beginExportPresent(): any;
|
|
901
894
|
/**
|
|
902
895
|
* Starts a deterministic export over a half-open timeline range.
|
|
903
896
|
*
|
|
904
|
-
* Resets the audio renderer
|
|
905
|
-
*
|
|
906
|
-
*
|
|
907
|
-
*
|
|
908
|
-
* silence and advances nothing (`audioMissingSources` names the
|
|
909
|
-
* sources), so rendering it again once they are uploaded continues
|
|
910
|
-
* exactly as an uninterrupted export does.
|
|
911
|
-
*
|
|
912
|
-
* Export renders offscreen at [`QualityProfile::export`] and never touches
|
|
913
|
-
* the presentation surface, so its output is independent of the canvas,
|
|
914
|
-
* its size, and whatever the browser compositor is doing.
|
|
897
|
+
* Resets the audio renderer so export audio inherits no preview DSP state, and keeps it
|
|
898
|
+
* exact until `endExport`. Until then, an audio block missing a source mixes silence and
|
|
899
|
+
* advances nothing (`audioMissingSources` names them), so re-rendering it after upload
|
|
900
|
+
* continues exactly.
|
|
915
901
|
*
|
|
916
|
-
*
|
|
917
|
-
* `hevc`, `vp9`, `av1
|
|
918
|
-
*
|
|
902
|
+
* Renders offscreen at [`QualityProfile::export`], independent of the canvas. Frames are
|
|
903
|
+
* packed with the chroma siting of `codec` (`h264`, `hevc`, `vp9`, `av1`;
|
|
904
|
+
* [`alpha2_media::YuvEncoding::export`]).
|
|
919
905
|
*
|
|
920
906
|
* # Errors
|
|
921
|
-
* Returns an error without a loaded project, for an empty range, an
|
|
922
|
-
*
|
|
907
|
+
* Returns an error without a loaded project, for an empty range, an invalid frame rate, or
|
|
908
|
+
* an unknown codec.
|
|
923
909
|
*/
|
|
924
910
|
beginExport(start_ticks: bigint, end_ticks: bigint, rate_num: number, rate_den: number, codec: string): void;
|
|
925
911
|
/**
|
|
@@ -927,15 +913,14 @@ export class WebEffectRegistry {
|
|
|
927
913
|
*/
|
|
928
914
|
builtinCatalog(): string;
|
|
929
915
|
/**
|
|
930
|
-
*
|
|
931
|
-
*
|
|
932
|
-
*
|
|
933
|
-
* `
|
|
934
|
-
* (this one), `renderer.cpu` and `effects.runtime`, as the native host
|
|
935
|
-
* names them.
|
|
916
|
+
* The shared capability report JSON (`alpha2-capabilities`) with runtime `browser`.
|
|
917
|
+
* `decode` and `encode` are `null` for the page to fill; `features` names only
|
|
918
|
+
* `renderer.gpu`, `renderer.cpu`, `effects.runtime`, and on WebGL2
|
|
919
|
+
* `uploads.webgl2-bitmap` (unavailable where frames upload as CPU pixels).
|
|
936
920
|
*
|
|
937
921
|
* # Errors
|
|
938
|
-
* Returns an error if the report cannot be serialized
|
|
922
|
+
* Returns an error if the report cannot be serialized, or on WebGL2 when the upload probe
|
|
923
|
+
* throws.
|
|
939
924
|
*/
|
|
940
925
|
capabilityReport(): string;
|
|
941
926
|
/**
|
|
@@ -959,45 +944,51 @@ export class WebEffectRegistry {
|
|
|
959
944
|
*/
|
|
960
945
|
clearFrames(): void;
|
|
961
946
|
/**
|
|
962
|
-
* Parses one JSON effect definition and compiles it on this binding's
|
|
963
|
-
*
|
|
964
|
-
*
|
|
965
|
-
* with the shader's diagnostics.
|
|
947
|
+
* Parses one JSON effect definition and compiles it on this binding's device. The promise
|
|
948
|
+
* resolves to the compiled effect for [`Self::register_compiled_effect`], or rejects with
|
|
949
|
+
* the shader's diagnostics.
|
|
966
950
|
*
|
|
967
|
-
*
|
|
968
|
-
*
|
|
969
|
-
* renders, uploads, compiles other effects, and may be freed meanwhile.
|
|
951
|
+
* Returns once the shader and pipeline are created; while the browser compiles, the
|
|
952
|
+
* binding stays fully usable and may be freed.
|
|
970
953
|
*
|
|
971
954
|
* # Errors
|
|
972
|
-
* Throws `EFFECT_ERROR` for a definition the engine refuses before
|
|
973
|
-
* compiling it.
|
|
955
|
+
* Throws `EFFECT_ERROR` for a definition the engine refuses before compiling.
|
|
974
956
|
*/
|
|
975
957
|
compileEffect(json: string): Promise<any>;
|
|
976
958
|
/**
|
|
977
|
-
* Creates the renderer
|
|
978
|
-
*
|
|
979
|
-
*
|
|
980
|
-
*
|
|
981
|
-
* packs export frames in wasm, single-threaded, drawing what the native
|
|
982
|
-
* CPU renderer draws byte for byte. Runtime WGSL effects are refused.
|
|
959
|
+
* Creates the CPU renderer, for a browser with no WebGPU adapter or WebGL2 context, or on
|
|
960
|
+
* request. It presents preview frames on `canvas`'s 2D context (`OffscreenCanvas`, page
|
|
961
|
+
* canvas, or `undefined` for none) and packs export frames in wasm, single-threaded,
|
|
962
|
+
* byte-identical to the native CPU renderer. Runtime WGSL effects are refused.
|
|
983
963
|
*
|
|
984
964
|
* # Errors
|
|
985
|
-
* Rejects (`INVALID_INPUT`) a canvas
|
|
986
|
-
*
|
|
965
|
+
* Rejects (`INVALID_INPUT`) a canvas with no 2D context, such as one already holding a
|
|
966
|
+
* WebGL or WebGPU context.
|
|
987
967
|
*/
|
|
988
968
|
static createCpu(canvas: any): WebCpuRenderer;
|
|
989
969
|
/**
|
|
990
|
-
* Creates a worker-owned renderer
|
|
970
|
+
* Creates a worker-owned renderer for an `OffscreenCanvas`.
|
|
971
|
+
*
|
|
972
|
+
* Tries browser WebGPU first, then WebGL2. On WebGPU the device opens before the canvas is
|
|
973
|
+
* bound, so a failure leaves the canvas free for another context kind (such as the CPU
|
|
974
|
+
* renderer's 2D one). `options.softwareAdapter` is `"allow"` (default) or `"refuse"`;
|
|
975
|
+
* refused, a software adapter (WebGPU fallback, `SwiftShader`, llvmpipe, WARP) is skipped
|
|
976
|
+
* and the call rejects before binding the canvas if nothing else is offered.
|
|
991
977
|
*
|
|
992
|
-
*
|
|
993
|
-
*
|
|
978
|
+
* # Errors
|
|
979
|
+
* Rejects `GPU_INIT_FAILED` when no device opens or only a refused software adapter is
|
|
980
|
+
* offered; `GPU_DEVICE_LOST` when the canvas's WebGL context is lost and not restored;
|
|
981
|
+
* `INVALID_INPUT` for a canvas that takes no GPU surface or bad options.
|
|
994
982
|
*/
|
|
995
|
-
static createForCanvas(canvas: OffscreenCanvas): Promise<WebEffectRegistry>;
|
|
983
|
+
static createForCanvas(canvas: OffscreenCanvas, options?: any | null): Promise<WebEffectRegistry>;
|
|
996
984
|
/**
|
|
997
|
-
* Creates a renderer
|
|
998
|
-
*
|
|
985
|
+
* Creates a renderer presenting directly to a main-thread HTML canvas, as
|
|
986
|
+
* [`Self::create_for_canvas`] does for an `OffscreenCanvas`, with the same `options`.
|
|
987
|
+
*
|
|
988
|
+
* # Errors
|
|
989
|
+
* As [`Self::create_for_canvas`].
|
|
999
990
|
*/
|
|
1000
|
-
static createForHtmlCanvas(canvas: HTMLCanvasElement): Promise<WebEffectRegistry>;
|
|
991
|
+
static createForHtmlCanvas(canvas: HTMLCanvasElement, options?: any | null): Promise<WebEffectRegistry>;
|
|
1001
992
|
/**
|
|
1002
993
|
* Acquires a surface-independent WebGPU device.
|
|
1003
994
|
*/
|
|
@@ -1013,82 +1004,61 @@ export class WebEffectRegistry {
|
|
|
1013
1004
|
/**
|
|
1014
1005
|
* Renders the next export frame and resolves with its pixels.
|
|
1015
1006
|
*
|
|
1016
|
-
*
|
|
1017
|
-
* `
|
|
1018
|
-
*
|
|
1019
|
-
*
|
|
1020
|
-
*
|
|
1021
|
-
* width, height, format: "I420", colorSpace, layout, pixels }`, where
|
|
1022
|
-
* `pixels` holds the planes with padded rows at the offsets and strides
|
|
1023
|
-
* `layout` gives. Waiting never advances the cursor, so a retry after
|
|
1024
|
-
* uploading cannot skip a timestamp.
|
|
1007
|
+
* Resolves to `{ kind: "complete" }`; to `{ kind: "waiting", timeTicks, missingSources,
|
|
1008
|
+
* missingFrames }` when a source is missing (`missingFrames` as `renderAt` reports it); or
|
|
1009
|
+
* to `{ kind: "rendered", index, timeTicks, width, height, format: "I420", colorSpace,
|
|
1010
|
+
* layout, pixels }` with padded planes at `layout`'s offsets and strides. Waiting never
|
|
1011
|
+
* advances the cursor.
|
|
1025
1012
|
*
|
|
1026
1013
|
* # Errors
|
|
1027
|
-
* Returns an error without a running export or
|
|
1028
|
-
*
|
|
1029
|
-
* times out, the device is lost, or the mapping fails.
|
|
1014
|
+
* Returns an error without a running export or loaded project. The promise rejects with a
|
|
1015
|
+
* `failure` when the readback times out, the device is lost, or the mapping fails.
|
|
1030
1016
|
*/
|
|
1031
1017
|
exportFrame(): Promise<any>;
|
|
1032
1018
|
/**
|
|
1033
|
-
* Completed and total frame counts for the running export
|
|
1034
|
-
*
|
|
1019
|
+
* Completed and total frame counts for the running export and the range it covers, as
|
|
1020
|
+
* JSON.
|
|
1035
1021
|
*
|
|
1036
|
-
* `effectiveRange` is the requested range widened to the frame grid
|
|
1037
|
-
*
|
|
1038
|
-
* `
|
|
1039
|
-
*
|
|
1040
|
-
* output's zero, and `frames` the sample count. Every host takes its
|
|
1041
|
-
* audio from these, never from the request.
|
|
1022
|
+
* `effectiveRange` is the requested range widened to the frame grid; its start is the
|
|
1023
|
+
* output's zero. `audioWindow` is the project-rate samples the export's audio covers:
|
|
1024
|
+
* `startSample` (a decimal string) at the output's zero, and `frames`. Hosts take audio
|
|
1025
|
+
* from these, never from the request.
|
|
1042
1026
|
*
|
|
1043
1027
|
* # Errors
|
|
1044
|
-
* Returns an error when no export is running
|
|
1045
|
-
* not fit in samples.
|
|
1028
|
+
* Returns an error when no export is running or the range does not fit in samples.
|
|
1046
1029
|
*/
|
|
1047
1030
|
exportProgress(): string;
|
|
1048
1031
|
/**
|
|
1049
|
-
* Exact clip/source/timestamp requests from the same
|
|
1050
|
-
*
|
|
1051
|
-
* clip IDs. Tick values are strings so JavaScript can preserve i64.
|
|
1032
|
+
* Exact clip/source/timestamp requests from the same snapshot `renderAt` uses. Hosts keep
|
|
1033
|
+
* separate decoder cursors per clip ID. Tick values are strings to preserve i64.
|
|
1052
1034
|
*/
|
|
1053
1035
|
frameNeeds(time_ticks: bigint): string;
|
|
1054
1036
|
/**
|
|
1055
|
-
* Whether the loaded project declares `source_id` an HDR (PQ or HLG)
|
|
1056
|
-
*
|
|
1057
|
-
* [`Self::upload_yuv_frame`].
|
|
1037
|
+
* Whether the loaded project declares `source_id` an HDR (PQ or HLG) source, whose frames
|
|
1038
|
+
* must go through [`Self::upload_yuv_frame`].
|
|
1058
1039
|
*/
|
|
1059
1040
|
hdrSource(source_id: string): boolean;
|
|
1060
1041
|
/**
|
|
1061
|
-
* Whether the still `sourceId` is still the upload `generation` names.
|
|
1062
|
-
*
|
|
1063
|
-
* limit on how many it keeps), so a host that skips uploading a still it
|
|
1064
|
-
* uploaded before asks here first.
|
|
1042
|
+
* Whether the still `sourceId` is still the upload `generation` names. The store evicts
|
|
1043
|
+
* stills on its own, so a host checks before skipping a re-upload.
|
|
1065
1044
|
*/
|
|
1066
1045
|
holdsImage(source_id: string, generation: bigint): boolean;
|
|
1067
1046
|
/**
|
|
1068
1047
|
* Loads and validates a versioned project document.
|
|
1069
1048
|
*
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1074
|
-
*
|
|
1075
|
-
*
|
|
1076
|
-
*
|
|
1077
|
-
* relocated lose theirs, and all audio goes when the project sample rate
|
|
1078
|
-
* changes. Media that changes under an unchanged locator needs a new
|
|
1079
|
-
* source ID.
|
|
1080
|
-
*
|
|
1081
|
-
* Loading ends a running export (`endExport`): an export renders the
|
|
1082
|
-
* project it began with, so its next step is refused rather than
|
|
1083
|
-
* rendering this one.
|
|
1049
|
+
* Uploaded frames and audio are kept for every source whose ID and locator are unchanged,
|
|
1050
|
+
* so an edit needs no re-decode. Presentation frames are invalidated by a new canvas size
|
|
1051
|
+
* or color pipeline (`settings.color`), or per source by new declared color
|
|
1052
|
+
* (`color_metadata`). All audio is dropped when the project sample rate changes. Media
|
|
1053
|
+
* that changes under an unchanged locator needs a new source ID.
|
|
1054
|
+
*
|
|
1055
|
+
* Loading ends a running export (`endExport`), so its next step is refused.
|
|
1084
1056
|
*/
|
|
1085
1057
|
loadProject(json: string): void;
|
|
1086
1058
|
/**
|
|
1087
|
-
* The loudness measured since metering started
|
|
1088
|
-
* `
|
|
1089
|
-
*
|
|
1090
|
-
* (`limiterThreshold`, `null` without one), which
|
|
1091
|
-
* `planLoudnessNormalization` keeps the normalized mix under.
|
|
1059
|
+
* The loudness measured since metering started as JSON (`LoudnessReport` in
|
|
1060
|
+
* `alpha2/loudness`), or `null` while off. `limiterThreshold` (or `null`) is the master
|
|
1061
|
+
* limiter it measured in front of, which `planLoudnessNormalization` keeps the mix under.
|
|
1092
1062
|
*/
|
|
1093
1063
|
loudnessReport(): string;
|
|
1094
1064
|
/**
|
|
@@ -1096,12 +1066,12 @@ export class WebEffectRegistry {
|
|
|
1096
1066
|
*/
|
|
1097
1067
|
presentUploadedFrame(source_id: string, media_time_ticks: bigint): void;
|
|
1098
1068
|
/**
|
|
1099
|
-
* Adds an effect [`Self::compile_effect`] compiled on this binding and
|
|
1100
|
-
*
|
|
1069
|
+
* Adds an effect [`Self::compile_effect`] compiled on this binding and returns its
|
|
1070
|
+
* `id@version`. The compiled effect is consumed either way.
|
|
1101
1071
|
*
|
|
1102
1072
|
* # Errors
|
|
1103
|
-
* Throws `EFFECT_ERROR` for an effect compiled by another binding, one
|
|
1104
|
-
*
|
|
1073
|
+
* Throws `EFFECT_ERROR` for an effect compiled by another binding, one registered while it
|
|
1074
|
+
* compiled, or a full registry.
|
|
1105
1075
|
*/
|
|
1106
1076
|
registerCompiledEffect(compiled: CompiledEffect): string;
|
|
1107
1077
|
/**
|
|
@@ -1113,8 +1083,8 @@ export class WebEffectRegistry {
|
|
|
1113
1083
|
*/
|
|
1114
1084
|
releaseAudioSource(source_id: string): boolean;
|
|
1115
1085
|
/**
|
|
1116
|
-
* Releases exactly one uploaded generation
|
|
1117
|
-
*
|
|
1086
|
+
* Releases exactly one uploaded generation, leaving any newer texture under the same
|
|
1087
|
+
* source and timestamp.
|
|
1118
1088
|
*/
|
|
1119
1089
|
releaseFrameGeneration(generation: bigint): boolean;
|
|
1120
1090
|
/**
|
|
@@ -1122,42 +1092,33 @@ export class WebEffectRegistry {
|
|
|
1122
1092
|
*/
|
|
1123
1093
|
releaseFrame(source_id: string, media_time_ticks: bigint): boolean;
|
|
1124
1094
|
/**
|
|
1125
|
-
*
|
|
1126
|
-
*
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1129
|
-
* is released; later work allocates again what it needs. An export
|
|
1130
|
-
* calls it when its byte budget stops it submitting.
|
|
1095
|
+
* Destroys GPU memory kept only for reuse (idle pooled textures and buffers, kept graph
|
|
1096
|
+
* results) so the browser frees it now rather than at garbage collection, and returns the
|
|
1097
|
+
* bytes destroyed. Nothing a render or readback holds is released. An export calls it
|
|
1098
|
+
* when its byte budget stops it submitting.
|
|
1131
1099
|
*/
|
|
1132
1100
|
releaseIdleMemory(): number;
|
|
1133
1101
|
/**
|
|
1134
|
-
* Releases every uploaded frame and the still of one source
|
|
1135
|
-
*
|
|
1136
|
-
* already retired stay until they are released.
|
|
1102
|
+
* Releases every uploaded frame and the still of one source whose media changed under the
|
|
1103
|
+
* same ID and locator. Retired generations stay until released.
|
|
1137
1104
|
*/
|
|
1138
1105
|
releaseSourceFrames(source_id: string): boolean;
|
|
1139
1106
|
/**
|
|
1140
1107
|
* Evaluates and presents one project frame on the worker-owned canvas.
|
|
1141
1108
|
*
|
|
1142
|
-
* Returns JSON `{ requestedTimeTicks, presentedTimeTicks, missingSources,
|
|
1143
|
-
*
|
|
1144
|
-
*
|
|
1145
|
-
*
|
|
1146
|
-
* frame equals the one presented last (see `Player::render_at`): nothing
|
|
1147
|
-
* was rendered or presented, and the canvas still shows it.
|
|
1109
|
+
* Returns JSON `{ requestedTimeTicks, presentedTimeTicks, missingSources, missingFrames,
|
|
1110
|
+
* repeated, unchanged }`. `presentedTimeTicks` is `null` until a frame is presented;
|
|
1111
|
+
* `missingFrames` gives the exact source time each missing source was needed at;
|
|
1112
|
+
* `unchanged` means the frame equals the last one, so nothing was rendered or presented.
|
|
1148
1113
|
*/
|
|
1149
1114
|
renderAt(time_ticks: bigint): string;
|
|
1150
1115
|
/**
|
|
1151
|
-
* Mixes one project audio block of at most `audioMaxBlock` samples per
|
|
1152
|
-
*
|
|
1153
|
-
*
|
|
1154
|
-
*
|
|
1155
|
-
* Channels are returned end to end. Call `audioStatus` for the sources
|
|
1156
|
-
* that were missing from the mix.
|
|
1116
|
+
* Mixes one project audio block of at most `audioMaxBlock` samples per channel and returns
|
|
1117
|
+
* its planar samples, channels end to end. Missing sources are reported by
|
|
1118
|
+
* `audioMissingSources`.
|
|
1157
1119
|
*
|
|
1158
1120
|
* # Errors
|
|
1159
|
-
* Rejects (`INVALID_INPUT`, not fatal) more than `audioMaxBlock` frames
|
|
1160
|
-
* naming the limit.
|
|
1121
|
+
* Rejects (`INVALID_INPUT`, not fatal) more than `audioMaxBlock` frames.
|
|
1161
1122
|
*/
|
|
1162
1123
|
renderAudio(start_sample: bigint, frames: number, playing: boolean): Float32Array;
|
|
1163
1124
|
/**
|
|
@@ -1173,112 +1134,97 @@ export class WebEffectRegistry {
|
|
|
1173
1134
|
*/
|
|
1174
1135
|
resizeSurface(width: number, height: number): void;
|
|
1175
1136
|
/**
|
|
1176
|
-
* Chooses what `renderAudio` does, outside an export, with a block that
|
|
1177
|
-
*
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1180
|
-
*
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
*
|
|
1184
|
-
* not what a fresh renderer mixes, so loudness measurements and other
|
|
1185
|
-
* output that must repeat stay exact. From `beginExport` to `endExport`
|
|
1186
|
-
* the renderer is exact whatever is chosen. Choosing another policy than
|
|
1187
|
-
* the current one resets the audio, as `resetAudio` does.
|
|
1137
|
+
* Chooses what `renderAudio` does, outside an export, with a block that does not start
|
|
1138
|
+
* where the previous one ended.
|
|
1139
|
+
*
|
|
1140
|
+
* `"exact"` (default) resets and replays the settling history, mixing what a fresh
|
|
1141
|
+
* renderer would. `"continue-small-gaps"` is for live preview: a jump of at most
|
|
1142
|
+
* `audioMaxBlock` samples continues from the previous state instead of replaying up to
|
|
1143
|
+
* 30 s, so its output is not reproducible. Exports are always exact. Changing the policy
|
|
1144
|
+
* resets the audio, as `resetAudio` does.
|
|
1188
1145
|
*
|
|
1189
1146
|
* # Errors
|
|
1190
1147
|
* Rejects any other policy name (`INVALID_INPUT`, not fatal).
|
|
1191
1148
|
*/
|
|
1192
1149
|
setAudioContinuity(policy: string): void;
|
|
1193
1150
|
/**
|
|
1194
|
-
* Starts (from empty) or stops measuring
|
|
1195
|
-
*
|
|
1196
|
-
*
|
|
1197
|
-
* authored; a block a source was missing from is not measured.
|
|
1151
|
+
* Starts (from empty) or stops measuring loudness of the mix before the master limiter,
|
|
1152
|
+
* over subsequent `renderAudio` blocks. Starting removes the normalization gain so the mix
|
|
1153
|
+
* is measured as authored; blocks with a missing source are not measured.
|
|
1198
1154
|
*
|
|
1199
1155
|
* # Errors
|
|
1200
1156
|
* Returns an error without an audio renderer.
|
|
1201
1157
|
*/
|
|
1202
1158
|
setLoudnessMetering(enabled: boolean): void;
|
|
1203
1159
|
/**
|
|
1204
|
-
* Applies a static gain
|
|
1205
|
-
*
|
|
1206
|
-
*
|
|
1207
|
-
* returns before rendering its audio; the gain stays until it is set
|
|
1208
|
-
* again, so set zero for audio after it that is not normalized.
|
|
1160
|
+
* Applies a static gain in dB after the master gain and before the limiter; zero or
|
|
1161
|
+
* `setLoudnessMetering(true)` removes it. A normalized export sets the gain
|
|
1162
|
+
* `planLoudnessNormalization` returns; it persists until set again.
|
|
1209
1163
|
*
|
|
1210
1164
|
* # Errors
|
|
1211
|
-
* Returns an error without an audio renderer, or for a gain that is not
|
|
1212
|
-
*
|
|
1165
|
+
* Returns an error without an audio renderer, or for a gain that is not finite or whose
|
|
1166
|
+
* factor overflows a 32-bit float (`INVALID_INPUT`).
|
|
1213
1167
|
*/
|
|
1214
1168
|
setNormalizationGainDb(gain_db: number): void;
|
|
1215
1169
|
/**
|
|
1216
|
-
* Enables or disables per-pass GPU/CPU timing
|
|
1217
|
-
*
|
|
1218
|
-
* Disabled by default: timing reads a clock per pass and allocates GPU
|
|
1219
|
-
* timestamp resources, which is profiling cost rather than rendering work.
|
|
1220
|
-
* Every other field of `diagnostics()` is always available.
|
|
1170
|
+
* Enables or disables per-pass GPU/CPU timing in `diagnostics()`. Off by default because
|
|
1171
|
+
* it reads a clock per pass and allocates GPU timestamp resources.
|
|
1221
1172
|
*/
|
|
1222
1173
|
setPassTiming(enabled: boolean): void;
|
|
1223
1174
|
/**
|
|
1224
|
-
* Renders preview frames at `scale` times the project
|
|
1225
|
-
*
|
|
1226
|
-
*
|
|
1227
|
-
* next `renderAt` presents. Size the surface to `previewSize` after it.
|
|
1175
|
+
* Renders preview frames at `scale` times the project size from now on (default 0.5).
|
|
1176
|
+
* Drops the held frame so the next `renderAt` presents; resize the surface to
|
|
1177
|
+
* `previewSize` afterwards.
|
|
1228
1178
|
*
|
|
1229
1179
|
* # Errors
|
|
1230
1180
|
* Rejects a scale that is not finite, above 0 and at most 8.
|
|
1231
1181
|
*/
|
|
1232
1182
|
setPreviewScale(scale: number): void;
|
|
1233
1183
|
/**
|
|
1234
|
-
* Lets rendered results (each clip's finished picture and the frame)
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1237
|
-
* sources whose upload is reused are found again: a still, or a frame the
|
|
1238
|
-
* page uploads once and draws at several times.
|
|
1184
|
+
* Lets rendered results (each clip's finished picture and the frame) use up to `bytes` of
|
|
1185
|
+
* GPU memory for reuse when a frame repeats; zero (the default) disables it. Only results
|
|
1186
|
+
* from reused uploads hit: a still, or a frame uploaded once and drawn at several times.
|
|
1239
1187
|
*
|
|
1240
1188
|
* # Errors
|
|
1241
1189
|
* Rejects a negative or non-finite budget.
|
|
1242
1190
|
*/
|
|
1243
1191
|
setResultCacheBudget(bytes: number): void;
|
|
1244
1192
|
/**
|
|
1245
|
-
* Sets the cache budget for live, image, and retired generations (default
|
|
1246
|
-
*
|
|
1247
|
-
*
|
|
1248
|
-
*
|
|
1249
|
-
*
|
|
1250
|
-
* or alias that would
|
|
1251
|
-
* `RESOURCE_LIMIT` (`failure.stage` `working-set-over-budget`,
|
|
1252
|
-
* `failure.requestedBytes` the
|
|
1253
|
-
* refill could make the frame fit. Renderer pools and submitted GPU work
|
|
1254
|
-
* have separate lifetime/budget accounting.
|
|
1193
|
+
* Sets the cache budget for live, image, and retired generations (default 1 GiB); aliases
|
|
1194
|
+
* count once and the oldest generations go first. A new frame larger than the budget is
|
|
1195
|
+
* kept alone.
|
|
1196
|
+
*
|
|
1197
|
+
* While an export frame waits for its sources, those it shows are pinned. The budget
|
|
1198
|
+
* evicts everything else first, and an upload or alias that would push them over is
|
|
1199
|
+
* refused with `RESOURCE_LIMIT` (`failure.stage` `working-set-over-budget`,
|
|
1200
|
+
* `failure.requestedBytes` the minimum the frame needs).
|
|
1255
1201
|
*/
|
|
1256
1202
|
setUploadedFrameBudget(bytes: number): void;
|
|
1257
1203
|
/**
|
|
1258
|
-
* The color metadata the loaded project declares for `source_id`, as
|
|
1259
|
-
* JSON, or `undefined` when it declares none.
|
|
1204
|
+
* The color metadata the loaded project declares for `source_id`, as JSON, or `undefined`.
|
|
1260
1205
|
*/
|
|
1261
1206
|
sourceColorMetadata(source_id: string): string | undefined;
|
|
1262
1207
|
/**
|
|
1263
|
-
*
|
|
1264
|
-
*
|
|
1265
|
-
* releases the wasm object borrow immediately, allowing edits while waiting.
|
|
1266
|
-
* WebGL submits synchronously through wgpu-core and uses its own retention.
|
|
1208
|
+
* Resolves when submitted WebGPU preview work completes, so the host can pace frames. The
|
|
1209
|
+
* returned promise releases the wasm borrow at once, allowing edits while waiting.
|
|
1267
1210
|
*/
|
|
1268
1211
|
submittedWorkDone(): Promise<any>;
|
|
1269
1212
|
/**
|
|
1270
|
-
*
|
|
1271
|
-
*
|
|
1272
|
-
*
|
|
1273
|
-
|
|
1274
|
-
|
|
1213
|
+
* How frames rendered since the last call were split into GPU submissions to stay under
|
|
1214
|
+
* the watchdog budget, as JSON `{ frames, splitFrames, maxPerFrame, maxPredictedMs }` (the
|
|
1215
|
+
* native host's `performance.gpuSubmissions`). Resets the counts.
|
|
1216
|
+
*/
|
|
1217
|
+
takeGpuSubmissionStats(): string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Discards `source_id`'s audio that ends before `ticks`, a time on that source's own
|
|
1220
|
+
* timeline. A source two clips read at different times is trimmed only below what both
|
|
1221
|
+
* need. Call it as playback moves on, a few seconds behind the earliest time still mixed.
|
|
1275
1222
|
*/
|
|
1276
1223
|
trimAudioBefore(source_id: string, ticks: bigint): void;
|
|
1277
1224
|
/**
|
|
1278
|
-
* Releases `source_id`'s
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
* is trimmed only below what both still need.
|
|
1225
|
+
* Releases `source_id`'s video frames older than `media_time_ticks`, a time on that
|
|
1226
|
+
* source's own timeline. A source two clips read at different times is trimmed only below
|
|
1227
|
+
* what both need.
|
|
1282
1228
|
*/
|
|
1283
1229
|
trimFramesBefore(source_id: string, media_time_ticks: bigint): void;
|
|
1284
1230
|
/**
|
|
@@ -1292,142 +1238,138 @@ export class WebEffectRegistry {
|
|
|
1292
1238
|
/**
|
|
1293
1239
|
* Uploads project-rate planar audio for one source.
|
|
1294
1240
|
*
|
|
1295
|
-
* `start_sample` is the
|
|
1296
|
-
*
|
|
1297
|
-
*
|
|
1298
|
-
*
|
|
1299
|
-
*
|
|
1300
|
-
*
|
|
1301
|
-
*
|
|
1302
|
-
*
|
|
1303
|
-
*
|
|
1304
|
-
* its own.
|
|
1305
|
-
*
|
|
1306
|
-
* The mixer reads a window only where it holds every sample a block
|
|
1307
|
-
* needs, so a host decoding past a source's end uploads zeros there, as
|
|
1308
|
-
* the supplied decoders do. `ends_source` says instead that this upload
|
|
1309
|
-
* runs to the source's end, so past it the source is silent: pass it
|
|
1310
|
-
* with a whole decoded source, whose clips may end exactly at its end
|
|
1311
|
-
* and read an interpolation sample or two beyond.
|
|
1241
|
+
* `start_sample` is the first sample's index in the source at the project rate. `layout`
|
|
1242
|
+
* names each plane's speaker: an array of `FFmpeg` channel names in plane order
|
|
1243
|
+
* (`["FC", "FL", "FR"]`, `"UNK"` for none), or a channel count for `FFmpeg`'s default
|
|
1244
|
+
* layout (3 is 2.1, 4 is 4.0); 1 to 24 planes. `samples` holds the planes end to end. An
|
|
1245
|
+
* upload replaces windows it overlaps and joins same-speaker windows it meets.
|
|
1246
|
+
*
|
|
1247
|
+
* The mixer reads a window only where it holds every sample a block needs, so a host
|
|
1248
|
+
* decoding past a source's end uploads zeros there. Alternatively pass `ends_source` with
|
|
1249
|
+
* an upload that runs to the source's end, so the source is silent after it.
|
|
1312
1250
|
*/
|
|
1313
1251
|
uploadAudioBlock(source_id: string, start_sample: bigint, sample_rate: number, layout: any, samples: Float32Array, ends_source?: boolean | null): void;
|
|
1314
1252
|
/**
|
|
1315
|
-
* [`Self::upload_presented_video_frame`] for a
|
|
1316
|
-
*
|
|
1317
|
-
*
|
|
1318
|
-
*
|
|
1253
|
+
* [`Self::upload_presented_video_frame`] for a frame the engine should convert from planes
|
|
1254
|
+
* (HDR, or declared color) but the browser decodes only without planes. The browser's
|
|
1255
|
+
* conversion (and tone mapping) imports it, drawn as SDR BT.709.
|
|
1256
|
+
*
|
|
1257
|
+
* The source is then degraded: `renderAt` lists it in `degradedSources`, and any export
|
|
1258
|
+
* frame showing it is refused with `PLANAR_DECODE_UNAVAILABLE`, so browser and native
|
|
1259
|
+
* exports never differ by the browser's conversion. A planar or presented upload of the
|
|
1260
|
+
* source clears this. Always closes `frame`.
|
|
1261
|
+
*/
|
|
1262
|
+
uploadDegradedVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
1263
|
+
/**
|
|
1264
|
+
* [`Self::upload_presented_video_frame`] for a bitmap from
|
|
1265
|
+
* `createImageBitmap(frame, { premultiplyAlpha: "none" })`, skipping the canvas draw where
|
|
1266
|
+
* `videoFrameCopy` is `"bitmap"`. Always closes `bitmap`; HDR sources are refused.
|
|
1319
1267
|
*/
|
|
1320
1268
|
uploadPresentedImageBitmap(source_id: string, media_time_ticks: bigint, bitmap: ImageBitmap, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
1321
1269
|
/**
|
|
1322
|
-
* Like [`Self::upload_presented_rgba_frame`], for premultiplied
|
|
1323
|
-
*
|
|
1324
|
-
*
|
|
1325
|
-
* as far as the intermediate format holds them.
|
|
1270
|
+
* Like [`Self::upload_presented_rgba_frame`], for premultiplied linear-light RGBA half
|
|
1271
|
+
* floats (as bits) in BT.709 primaries, as `OpenEXR` sources arrive. Values outside
|
|
1272
|
+
* `0.0..=1.0` are kept as far as the intermediate format allows.
|
|
1326
1273
|
*/
|
|
1327
1274
|
uploadPresentedLinearFrame(source_id: string, media_time_ticks: bigint, width: number, height: number, pixels: Uint16Array, output_width: number, output_height: number): any;
|
|
1328
1275
|
/**
|
|
1329
|
-
* Like [`Self::upload_presented_linear_frame`], for a still shown at
|
|
1330
|
-
* every time.
|
|
1276
|
+
* Like [`Self::upload_presented_linear_frame`], for a still shown at every time.
|
|
1331
1277
|
*/
|
|
1332
1278
|
uploadPresentedLinearImage(source_id: string, width: number, height: number, pixels: Uint16Array, output_width: number, output_height: number): any;
|
|
1333
1279
|
/**
|
|
1334
|
-
* Uploads
|
|
1335
|
-
*
|
|
1336
|
-
*
|
|
1337
|
-
*
|
|
1338
|
-
* providers' frames arrive this way.
|
|
1280
|
+
* Uploads RGBA8 pixels at their own size and presents them into the output as the engine
|
|
1281
|
+
* presents every source (contained, on the GPU), so a page never scales a source itself.
|
|
1282
|
+
* `premultiplied` says whether color is already multiplied by alpha. Extension providers'
|
|
1283
|
+
* frames arrive this way.
|
|
1339
1284
|
*/
|
|
1340
1285
|
uploadPresentedRgbaFrame(source_id: string, media_time_ticks: bigint, width: number, height: number, pixels: Uint8Array, premultiplied: boolean, output_width: number, output_height: number): any;
|
|
1341
1286
|
/**
|
|
1342
|
-
* Like [`Self::upload_presented_rgba_frame`], for a still shown at every
|
|
1343
|
-
* time.
|
|
1287
|
+
* Like [`Self::upload_presented_rgba_frame`], for a still shown at every time.
|
|
1344
1288
|
*/
|
|
1345
1289
|
uploadPresentedRgbaImage(source_id: string, width: number, height: number, pixels: Uint8Array, premultiplied: boolean, output_width: number, output_height: number): any;
|
|
1346
1290
|
/**
|
|
1347
|
-
* Imports a decoded `VideoFrame` without
|
|
1348
|
-
*
|
|
1349
|
-
*
|
|
1350
|
-
* mirrored left to right when `mirror` is set, then turned clockwise by
|
|
1351
|
-
* `rotation_degrees`: how its stream says it is shown upright.
|
|
1291
|
+
* Imports a decoded `VideoFrame` without a CPU readback, then applies contain placement,
|
|
1292
|
+
* rotation, filtering, and alpha premultiplication in a GPU pass. The frame is mirrored
|
|
1293
|
+
* left to right when `mirror` is set, then turned clockwise by `rotation_degrees`.
|
|
1352
1294
|
*
|
|
1353
|
-
* Browser WebGPU copies the frame
|
|
1354
|
-
* browser does not take a `VideoFrame` (Firefox)
|
|
1355
|
-
* reused 2D canvas's bitmap. WebGL2 always uploads that bitmap.
|
|
1295
|
+
* Browser WebGPU copies the frame directly, or through a reused 2D canvas bitmap where the
|
|
1296
|
+
* browser does not take a `VideoFrame` (Firefox). WebGL2 always uploads the bitmap.
|
|
1356
1297
|
* `videoFrameCopy` says which.
|
|
1357
1298
|
*
|
|
1358
|
-
* Both
|
|
1359
|
-
*
|
|
1360
|
-
*
|
|
1361
|
-
* whatever the project's HDR policy: its planes go to
|
|
1362
|
-
* [`Self::upload_yuv_frame`], which converts them as the project says.
|
|
1299
|
+
* Both paths use the page's own color conversion, so an HDR frame (PQ or HLG, by the
|
|
1300
|
+
* project's declared color for the source, else the frame's `colorSpace`) is refused with
|
|
1301
|
+
* `INVALID_INPUT`; send its planes to [`Self::upload_yuv_frame`] instead.
|
|
1363
1302
|
*/
|
|
1364
1303
|
uploadPresentedVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
1365
1304
|
/**
|
|
1366
|
-
* Uploads tightly packed premultiplied RGBA8 pixels.
|
|
1367
|
-
*
|
|
1368
|
-
* This compatibility path is used by WebGL2, whose wgpu backend cannot
|
|
1369
|
-
* import a browser `VideoFrame` directly.
|
|
1305
|
+
* Uploads tightly packed premultiplied RGBA8 pixels. Used by WebGL2, whose wgpu backend
|
|
1306
|
+
* cannot import a `VideoFrame` directly.
|
|
1370
1307
|
*/
|
|
1371
1308
|
uploadRgbaFrame(source_id: string, media_time_ticks: bigint, width: number, height: number, pixels: Uint8Array): any;
|
|
1372
1309
|
/**
|
|
1373
|
-
* Uploads one time-independent still image,
|
|
1374
|
-
* is released. Video uploads continue to require an exact timestamp.
|
|
1310
|
+
* Uploads one time-independent still image, kept until its generation is released.
|
|
1375
1311
|
*/
|
|
1376
1312
|
uploadRgbaImage(source_id: string, width: number, height: number, pixels: Uint8Array): any;
|
|
1377
1313
|
/**
|
|
1378
|
-
* Uploads a decoded browser frame as [`Self::upload_presented_video_frame`]
|
|
1379
|
-
*
|
|
1380
|
-
* frame's display size when no project is loaded), and stored under
|
|
1314
|
+
* Uploads a decoded browser frame as [`Self::upload_presented_video_frame`] does, upright,
|
|
1315
|
+
* fitted to the loaded project's size (or the frame's display size with no project), under
|
|
1381
1316
|
* `source_id` at `media_time_ticks`.
|
|
1382
1317
|
*
|
|
1383
|
-
*
|
|
1384
|
-
* returning. An HDR frame is refused, as [`Self::upload_presented_video_frame`]
|
|
1385
|
-
* refuses it.
|
|
1318
|
+
* Takes ownership of `frame` and always closes it. HDR frames are refused.
|
|
1386
1319
|
*/
|
|
1387
1320
|
uploadVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame): any;
|
|
1388
1321
|
/**
|
|
1389
|
-
* Uploads a decoded frame's planar YCbCr samples
|
|
1390
|
-
*
|
|
1391
|
-
*
|
|
1392
|
-
*
|
|
1393
|
-
*
|
|
1394
|
-
* `
|
|
1395
|
-
*
|
|
1396
|
-
*
|
|
1397
|
-
*
|
|
1398
|
-
*
|
|
1399
|
-
* `
|
|
1400
|
-
*
|
|
1401
|
-
*
|
|
1402
|
-
* `top-left`, or `unspecified`) is where the stream puts its chroma
|
|
1403
|
-
* samples, which `WebCodecs` leaves to the demuxer to know.
|
|
1404
|
-
* `display_width` by `display_height` is the size the visible rectangle
|
|
1405
|
-
* is shown at before it is turned (a `VideoFrame`'s `displayWidth` and
|
|
1406
|
-
* `displayHeight`), which gives the pixel aspect ratio. The frame is
|
|
1407
|
-
* shown mirrored left to right when `mirror` is set, then turned
|
|
1322
|
+
* Uploads a decoded frame's planar YCbCr samples as `VideoFrame.copyTo` writes them and
|
|
1323
|
+
* converts them with the engine's shader under the project's color pipeline. This is how
|
|
1324
|
+
* HDR (PQ or HLG) frames reach the engine, since texture copies go through the page's
|
|
1325
|
+
* color conversion.
|
|
1326
|
+
*
|
|
1327
|
+
* `format` is a `WebCodecs` pixel format: `I420`, `I422`, or `I444` at 8, 10 (`P10`), or
|
|
1328
|
+
* 12 bits (`P12`), the same with alpha (`I420A`, `I420AP10`, ...), or `NV12`. Samples
|
|
1329
|
+
* above eight bits are 16-bit words with the value in the low bits. `layout` is
|
|
1330
|
+
* `[offset, stride]` per plane, `visible` is `[x, y, width, height]`, and `color` is the
|
|
1331
|
+
* frame's color metadata as project JSON. `chroma_siting` is `left`, `center`, `top-left`,
|
|
1332
|
+
* or `unspecified` (`WebCodecs` leaves it to the demuxer). `display_width` by
|
|
1333
|
+
* `display_height` is the visible rectangle's display size before rotation, which gives
|
|
1334
|
+
* the pixel aspect ratio. The frame is mirrored when `mirror` is set, then turned
|
|
1408
1335
|
* clockwise by `rotation_degrees`.
|
|
1409
1336
|
*
|
|
1410
1337
|
* # Errors
|
|
1411
|
-
* Rejects (`INVALID_INPUT`) an unknown format or chroma siting, a layout
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1338
|
+
* Rejects (`INVALID_INPUT`) an unknown format or chroma siting, a layout or plane that does
|
|
1339
|
+
* not fit the data, a bad size or rotation, and an HDR frame the project's color pipeline
|
|
1340
|
+
* refuses.
|
|
1414
1341
|
*/
|
|
1415
1342
|
uploadYuvFrame(source_id: string, media_time_ticks: bigint, format: string, coded_width: number, coded_height: number, data: Uint8Array, layout: Uint32Array, visible: Uint32Array, display_width: number, display_height: number, color: string, chroma_siting: string, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
1343
|
+
/**
|
|
1344
|
+
* The adapter as the browser names it: wgpu's name (the unmasked WebGL renderer or a
|
|
1345
|
+
* WebGPU adapter's description), else `<vendor> <architecture>`; empty when unnamed.
|
|
1346
|
+
*/
|
|
1347
|
+
readonly adapter: string;
|
|
1416
1348
|
/**
|
|
1417
1349
|
* The most samples per channel one `renderAudio` call mixes.
|
|
1418
1350
|
*/
|
|
1419
1351
|
readonly audioMaxBlock: number;
|
|
1420
1352
|
/**
|
|
1421
|
-
*
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
*
|
|
1353
|
+
* The graphics API this renderer draws through: `"webgpu"` or `"webgl2"`.
|
|
1354
|
+
*/
|
|
1355
|
+
readonly backend: string;
|
|
1356
|
+
/**
|
|
1357
|
+
* Whether the owning worker must recreate this binding: its device or context was lost,
|
|
1358
|
+
* or the GPU stopped running work, after which every readback is refused. A frame the GPU
|
|
1359
|
+
* rejected with an error is not a loss; the binding renders on.
|
|
1426
1360
|
*/
|
|
1427
1361
|
readonly deviceLost: boolean;
|
|
1428
1362
|
/**
|
|
1429
|
-
*
|
|
1430
|
-
*
|
|
1363
|
+
* After a loss ([`Self::device_lost`]), what the renderer's submission times say about it,
|
|
1364
|
+
* as JSON `{ hung, gpuMs, watchdogMs, timeTicks, frameIndex, effects, predictedMs }`.
|
|
1365
|
+
* `hung` means the longest recent submission ran at least half the GPU watchdog, so the
|
|
1366
|
+
* loss was most likely this work's and rerunning it would stop the GPU again. `undefined`
|
|
1367
|
+
* before any loss.
|
|
1368
|
+
*/
|
|
1369
|
+
readonly lossReport: string | undefined;
|
|
1370
|
+
/**
|
|
1371
|
+
* The loaded project's render size at the preview scale, `[width, height]`: what
|
|
1372
|
+
* `renderAt` renders and the surface should be.
|
|
1431
1373
|
*
|
|
1432
1374
|
* # Errors
|
|
1433
1375
|
* Fails when no project is loaded.
|
|
@@ -1442,9 +1384,8 @@ export class WebEffectRegistry {
|
|
|
1442
1384
|
*/
|
|
1443
1385
|
readonly retiredFrameCount: number;
|
|
1444
1386
|
/**
|
|
1445
|
-
* Whether decoded `VideoFrame`
|
|
1446
|
-
*
|
|
1447
|
-
* `uploadPresentedVideoFrame`.
|
|
1387
|
+
* Whether decoded `VideoFrame`s can be imported without CPU copies. Both backends can,
|
|
1388
|
+
* directly or through a canvas bitmap (see `uploadPresentedVideoFrame`).
|
|
1448
1389
|
*/
|
|
1449
1390
|
readonly supportsExternalVideoFrame: boolean;
|
|
1450
1391
|
/**
|
|
@@ -1456,37 +1397,34 @@ export class WebEffectRegistry {
|
|
|
1456
1397
|
*/
|
|
1457
1398
|
readonly uploadedFrameCount: number;
|
|
1458
1399
|
/**
|
|
1459
|
-
* How [`Self::upload_presented_video_frame`] copies a frame: `"direct"`,
|
|
1460
|
-
*
|
|
1461
|
-
* or `"canvas"` on WebGL2.
|
|
1400
|
+
* How [`Self::upload_presented_video_frame`] copies a frame: `"direct"`, `"bitmap"` (once
|
|
1401
|
+
* WebGPU refused a frame), `"untried"`, or `"canvas"` on WebGL2.
|
|
1462
1402
|
*/
|
|
1463
1403
|
readonly videoFrameCopy: string;
|
|
1464
1404
|
}
|
|
1465
1405
|
|
|
1466
1406
|
/**
|
|
1467
|
-
* Checks that `bytes` hold face `face_index` of a font the engine
|
|
1468
|
-
*
|
|
1407
|
+
* Checks that `bytes` hold face `face_index` of a font the engine can draw with, as
|
|
1408
|
+
* registering it would.
|
|
1469
1409
|
*
|
|
1470
1410
|
* # Errors
|
|
1471
|
-
* Rejects bytes the
|
|
1472
|
-
*
|
|
1411
|
+
* Rejects bytes the font parser refuses, with its reason (for example a WOFF container named
|
|
1412
|
+
* `.ttf`).
|
|
1473
1413
|
*/
|
|
1474
1414
|
export function checkFont(bytes: Uint8Array, face_index: number): void;
|
|
1475
1415
|
|
|
1476
1416
|
/**
|
|
1477
|
-
* Checks that `cube` is a `.cube` 3D LUT the engine
|
|
1478
|
-
*
|
|
1479
|
-
* it is imported rather than at every load.
|
|
1417
|
+
* Checks that `cube` is a `.cube` 3D LUT the engine accepts, as `registerLut3d` parses it,
|
|
1418
|
+
* without a renderer, so a host can refuse a file at import time.
|
|
1480
1419
|
*
|
|
1481
1420
|
* # Errors
|
|
1482
|
-
* Rejects text the
|
|
1483
|
-
* one-dimensional table, an unsupported directive, a missing sample).
|
|
1421
|
+
* Rejects text the parser refuses, with its line and reason.
|
|
1484
1422
|
*/
|
|
1485
1423
|
export function checkLut3d(cube: string): void;
|
|
1486
1424
|
|
|
1487
1425
|
/**
|
|
1488
|
-
* Returns a color pipeline's identity (JSON `ColorPipeline`)
|
|
1489
|
-
*
|
|
1426
|
+
* Returns a color pipeline's identity (JSON `ColorPipeline`) as a proxy that bakes it in
|
|
1427
|
+
* records it.
|
|
1490
1428
|
*
|
|
1491
1429
|
* # Errors
|
|
1492
1430
|
* Rejects JSON that is not a color pipeline.
|
|
@@ -1494,39 +1432,40 @@ export function checkLut3d(cube: string): void;
|
|
|
1494
1432
|
export function colorPipelineFingerprint(pipeline: string): string;
|
|
1495
1433
|
|
|
1496
1434
|
/**
|
|
1497
|
-
* Compares a found fingerprint with a recorded one (both JSON
|
|
1498
|
-
*
|
|
1499
|
-
* `
|
|
1435
|
+
* Compares a found fingerprint with a recorded one (both JSON `MediaFingerprint`s), returning
|
|
1436
|
+
* a JSON `FingerprintMatch`: `identical`, `consistent`, `mismatch` with its fields, or
|
|
1437
|
+
* `unverified`.
|
|
1500
1438
|
*
|
|
1501
1439
|
* # Errors
|
|
1502
|
-
* Rejects JSON that is not a fingerprint, or
|
|
1503
|
-
*
|
|
1504
|
-
* in uppercase: that is an input error, not other media.
|
|
1440
|
+
* Rejects JSON that is not a fingerprint, or one with a malformed part (such as an uppercase
|
|
1441
|
+
* hash).
|
|
1505
1442
|
*/
|
|
1506
1443
|
export function compareFingerprints(recorded: string, found: string): string;
|
|
1507
1444
|
|
|
1508
1445
|
/**
|
|
1509
|
-
* Whether `project`'s media, as `catalog` describes it, is ready for
|
|
1510
|
-
* `
|
|
1511
|
-
*
|
|
1446
|
+
* Whether `project`'s media, as `catalog` describes it, is ready for `purpose` (`preview`,
|
|
1447
|
+
* `preview_proxy`, `thumbnail`, `remote_edit`, `export_original`, or `export_proxy`), as a
|
|
1448
|
+
* JSON `ConformReport`.
|
|
1512
1449
|
*
|
|
1513
1450
|
* # Errors
|
|
1514
|
-
* Rejects an invalid project, catalog (
|
|
1515
|
-
* formed among them), or purpose.
|
|
1451
|
+
* Rejects an invalid project, catalog (including malformed fingerprints), or purpose.
|
|
1516
1452
|
*/
|
|
1517
1453
|
export function conformProject(project: string, catalog: string, purpose: string): string;
|
|
1518
1454
|
|
|
1519
1455
|
/**
|
|
1520
|
-
*
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1456
|
+
* How many faces the font file `bytes` holds: a collection's count, else 1.
|
|
1457
|
+
*/
|
|
1458
|
+
export function fontFaceCount(bytes: Uint8Array): number;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Returns the family name a caption style's `font_family` must use to select face
|
|
1462
|
+
* `face_index` of the font `bytes`, or `undefined` when the bytes are not a font or the face
|
|
1463
|
+
* names no family.
|
|
1524
1464
|
*/
|
|
1525
1465
|
export function fontFamily(bytes: Uint8Array, face_index: number): string | undefined;
|
|
1526
1466
|
|
|
1527
1467
|
/**
|
|
1528
|
-
*
|
|
1529
|
-
* (`tests/golden/geometry_queries.json`), computed by this module.
|
|
1468
|
+
* Answers to the geometry queries the native tests pin (`tests/golden/geometry_queries.json`).
|
|
1530
1469
|
*/
|
|
1531
1470
|
export function geometryParityAnswers(): string;
|
|
1532
1471
|
|
|
@@ -1539,8 +1478,7 @@ export function geometryParityAnswers(): string;
|
|
|
1539
1478
|
export function hitTest(items_json: string, time: number, width: number, height: number, x: number, y: number): string | undefined;
|
|
1540
1479
|
|
|
1541
1480
|
/**
|
|
1542
|
-
* A project's non-fatal diagnostics
|
|
1543
|
-
* issues (`alpha2/project`'s `LintIssue`).
|
|
1481
|
+
* A project's non-fatal diagnostics as a JSON array of `LintIssue`s.
|
|
1544
1482
|
*
|
|
1545
1483
|
* # Errors
|
|
1546
1484
|
* Rejects a document that does not load as a valid project.
|
|
@@ -1564,17 +1502,17 @@ export function motionPath(point_json: string, width: number, height: number): s
|
|
|
1564
1502
|
export function nearestPoint(path_json: string, width: number, height: number, x: number, y: number): string;
|
|
1565
1503
|
|
|
1566
1504
|
/**
|
|
1567
|
-
* Reads a subtitle file (`format` is `srt` or `webvtt`) into caption cues,
|
|
1568
|
-
*
|
|
1505
|
+
* Reads a subtitle file (`format` is `srt` or `webvtt`) into caption cues, returned as JSON
|
|
1506
|
+
* `{ rows, skipped, notes }`.
|
|
1569
1507
|
*
|
|
1570
|
-
* `rows` holds one caption track's
|
|
1571
|
-
*
|
|
1572
|
-
*
|
|
1573
|
-
*
|
|
1508
|
+
* `rows` holds one caption track's `CaptionCue`s per row, split so no cues overlap within a
|
|
1509
|
+
* row and no row exceeds a caption track's cue limit. `skipped` counts blocks that were not
|
|
1510
|
+
* cues; `notes` counts markup read but not kept (`extraVoices`, `droppedTimestamps`,
|
|
1511
|
+
* `droppedClasses`, `flattened`).
|
|
1574
1512
|
*
|
|
1575
1513
|
* # Errors
|
|
1576
|
-
* Rejects an unknown format, a WebVTT file without its header, and cues that
|
|
1577
|
-
*
|
|
1514
|
+
* Rejects an unknown format, a WebVTT file without its header, and cues that need more
|
|
1515
|
+
* caption tracks than a project holds.
|
|
1578
1516
|
*/
|
|
1579
1517
|
export function parseCaptions(text: string, format: string): string;
|
|
1580
1518
|
|
|
@@ -1587,34 +1525,28 @@ export function parseCaptions(text: string, format: string): string;
|
|
|
1587
1525
|
export function pathLength(path_json: string, width: number, height: number): string;
|
|
1588
1526
|
|
|
1589
1527
|
/**
|
|
1590
|
-
* The gain that brings a measured mix (a `loudnessReport` JSON) to
|
|
1591
|
-
*
|
|
1592
|
-
*
|
|
1593
|
-
* as JSON `{ gainDb, integratedLufs, truePeakDbtp, peakLimited,
|
|
1528
|
+
* The gain that brings a measured mix (a `loudnessReport` JSON) to `target_lufs` without its
|
|
1529
|
+
* true peak passing `ceiling_dbtp` or its sample peak reaching the report's
|
|
1530
|
+
* `limiterThreshold`. Returns JSON `{ gainDb, integratedLufs, truePeakDbtp, peakLimited,
|
|
1594
1531
|
* limiterLimited }`, or `null` for a mix silent below the absolute gate.
|
|
1595
1532
|
*
|
|
1596
1533
|
* # Errors
|
|
1597
|
-
* Rejects a report that is not a JSON object with
|
|
1598
|
-
*
|
|
1534
|
+
* Rejects a report that is not a JSON object with `frames`, or whose `limiterThreshold` is
|
|
1535
|
+
* neither a positive number nor `null`.
|
|
1599
1536
|
*/
|
|
1600
1537
|
export function planLoudnessNormalization(report_json: string, target_lufs: number, ceiling_dbtp: number): string;
|
|
1601
1538
|
|
|
1602
1539
|
/**
|
|
1603
|
-
* How
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* adapters allow past a requested time before they take the last frame at
|
|
1609
|
-
* or before it, as the native host does.
|
|
1540
|
+
* How many ticks after a source time a decoded frame's timestamp may fall and still be the
|
|
1541
|
+
* frame shown there ([`alpha2_time::presentation_slack`]). The stream's timestamps are whole
|
|
1542
|
+
* multiples of `num / den` seconds rounded to `quantum` units (0 for no rounding); an unknown
|
|
1543
|
+
* time base gives zero. Decoder adapters allow this much past a requested time before taking
|
|
1544
|
+
* the last frame at or before it, as the native host does.
|
|
1610
1545
|
*/
|
|
1611
1546
|
export function presentationSlackTicks(num: bigint, den: bigint, quantum: bigint): bigint;
|
|
1612
1547
|
|
|
1613
1548
|
/**
|
|
1614
1549
|
* The engine's quality level names, lowest first, as a JSON array.
|
|
1615
|
-
*
|
|
1616
|
-
* An app builds its quality control from this rather than from a list of its
|
|
1617
|
-
* own, so the names a browser offers are the ones the engine resolves.
|
|
1618
1550
|
*/
|
|
1619
1551
|
export function qualityLevels(): string;
|
|
1620
1552
|
|
|
@@ -1627,29 +1559,31 @@ export function qualityLevels(): string;
|
|
|
1627
1559
|
export function resamplePath(path_json: string, width: number, height: number, counts: Uint32Array): string;
|
|
1628
1560
|
|
|
1629
1561
|
/**
|
|
1630
|
-
* Resolves a quality level into a stereo audio bitrate in bits per second.
|
|
1631
|
-
*
|
|
1632
|
-
* `codec` is `aac` or `opus`. The native host reads the same engine table.
|
|
1562
|
+
* Resolves a quality level into a stereo audio bitrate in bits per second. `codec` is `aac`
|
|
1563
|
+
* or `opus`.
|
|
1633
1564
|
*/
|
|
1634
1565
|
export function resolveAudioBitrate(codec: string, level: string): number;
|
|
1635
1566
|
|
|
1636
1567
|
/**
|
|
1637
|
-
* Resolves a quality level into the rate control every sink encodes with
|
|
1638
|
-
*
|
|
1639
|
-
* Returns JSON: `{ "bitrate", "mode", "quantizer" }`. The native host calls
|
|
1640
|
-
* the same engine function, so a browser export and a native export at the
|
|
1641
|
-
* same level and output receive the same numbers.
|
|
1568
|
+
* Resolves a quality level into the rate control every sink encodes with, as JSON
|
|
1569
|
+
* `{ "bitrate", "mode", "quantizer" }`. The native host calls the same engine function.
|
|
1642
1570
|
*/
|
|
1643
1571
|
export function resolveRateControl(codec: string, width: number, height: number, frame_rate_num: number, frame_rate_den: number, level: string): string;
|
|
1644
1572
|
|
|
1645
1573
|
/**
|
|
1646
|
-
* The unit a stream's first timestamps (in
|
|
1647
|
-
*
|
|
1574
|
+
* The unit a stream's first timestamps (in time base units) are rounded to, or 0 for none
|
|
1575
|
+
* ([`alpha2_time::rounding_quantum`]).
|
|
1648
1576
|
*/
|
|
1649
1577
|
export function roundingQuantum(timestamps: BigInt64Array): bigint;
|
|
1650
1578
|
|
|
1651
1579
|
/**
|
|
1652
|
-
*
|
|
1580
|
+
* Replaces the GPU watchdog, in milliseconds, that losses are classified against (zero
|
|
1581
|
+
* restores the default of 2000). A page has no environment, so tests set it here.
|
|
1582
|
+
*/
|
|
1583
|
+
export function setGpuWatchdogMs(milliseconds: number): void;
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* Each item's normalized bounds as JSON `[{ at, bounds }]`.
|
|
1653
1587
|
*
|
|
1654
1588
|
* # Errors
|
|
1655
1589
|
* Rejects items that are not a valid content tree, or a bad size or time.
|
|
@@ -1657,10 +1591,8 @@ export function roundingQuantum(timestamps: BigInt64Array): bigint;
|
|
|
1657
1591
|
export function shapeBounds(items_json: string, time: number, width: number, height: number): string;
|
|
1658
1592
|
|
|
1659
1593
|
/**
|
|
1660
|
-
* Installs the panic reporter
|
|
1661
|
-
*
|
|
1662
|
-
* `wasm-bindgen` calls this from the generated initializer, so every entry
|
|
1663
|
-
* point is covered without the host opting in.
|
|
1594
|
+
* Installs the panic reporter when the module is instantiated, so every entry point is
|
|
1595
|
+
* covered without the host opting in.
|
|
1664
1596
|
*/
|
|
1665
1597
|
export function start(): void;
|
|
1666
1598
|
|
|
@@ -1682,7 +1614,7 @@ export function trimPath(path_json: string, width: number, height: number, start
|
|
|
1682
1614
|
|
|
1683
1615
|
/**
|
|
1684
1616
|
* The vector coverage and scene hashes the native tests pin
|
|
1685
|
-
* (`tests/golden/vector_coverage.json`)
|
|
1617
|
+
* (`tests/golden/vector_coverage.json`).
|
|
1686
1618
|
*/
|
|
1687
1619
|
export function vectorParityHashes(): string;
|
|
1688
1620
|
|
|
@@ -1716,6 +1648,7 @@ export interface InitOutput {
|
|
|
1716
1648
|
readonly compareFingerprints: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1717
1649
|
readonly compiledeffect_id: (a: number) => [number, number];
|
|
1718
1650
|
readonly conformProject: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1651
|
+
readonly fontFaceCount: (a: number, b: number) => number;
|
|
1719
1652
|
readonly fontFamily: (a: number, b: number, c: number) => [number, number];
|
|
1720
1653
|
readonly geometryParityAnswers: () => [number, number];
|
|
1721
1654
|
readonly hitTest: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
@@ -1736,22 +1669,26 @@ export interface InitOutput {
|
|
|
1736
1669
|
readonly presentationSlackTicks: (a: bigint, b: bigint, c: bigint) => bigint;
|
|
1737
1670
|
readonly qualityLevels: () => [number, number];
|
|
1738
1671
|
readonly rasterizedtext_descriptor: (a: number) => [number, number];
|
|
1672
|
+
readonly rasterizedtext_takeBackground: (a: number) => any;
|
|
1739
1673
|
readonly rasterizedtext_takePixels: (a: number) => any;
|
|
1740
1674
|
readonly resamplePath: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1741
1675
|
readonly resolveAudioBitrate: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
1742
1676
|
readonly resolveRateControl: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
1743
1677
|
readonly roundingQuantum: (a: number, b: number) => bigint;
|
|
1678
|
+
readonly setGpuWatchdogMs: (a: number) => void;
|
|
1744
1679
|
readonly shapeBounds: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
1745
1680
|
readonly start: () => void;
|
|
1746
1681
|
readonly toPath: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
1747
1682
|
readonly trimPath: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
1748
1683
|
readonly vectorParityHashes: () => [number, number];
|
|
1749
1684
|
readonly wasmtextmeasurer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
1685
|
+
readonly wasmtextmeasurer_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
1750
1686
|
readonly wasmtextmeasurer_clearFonts: (a: number) => void;
|
|
1751
1687
|
readonly wasmtextmeasurer_measure: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
1752
1688
|
readonly wasmtextmeasurer_measureLayout: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
1753
1689
|
readonly wasmtextmeasurer_new: () => number;
|
|
1754
1690
|
readonly wasmtextrasterizer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
1691
|
+
readonly wasmtextrasterizer_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
1755
1692
|
readonly wasmtextrasterizer_cacheSize: (a: number) => number;
|
|
1756
1693
|
readonly wasmtextrasterizer_clear: (a: number) => void;
|
|
1757
1694
|
readonly wasmtextrasterizer_invalidate: (a: number, b: bigint) => void;
|
|
@@ -1765,6 +1702,7 @@ export interface InitOutput {
|
|
|
1765
1702
|
readonly waveformresult_frames: (a: number) => number;
|
|
1766
1703
|
readonly waveformresult_levelCount: (a: number) => number;
|
|
1767
1704
|
readonly webcpurenderer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
1705
|
+
readonly webcpurenderer_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
1768
1706
|
readonly webcpurenderer_aliasVideoFrame: (a: number, b: number, c: number, d: bigint, e: bigint) => [number, number, number];
|
|
1769
1707
|
readonly webcpurenderer_audioChannels: (a: number) => number;
|
|
1770
1708
|
readonly webcpurenderer_audioMaxBlock: (a: number) => number;
|
|
@@ -1775,7 +1713,7 @@ export interface InitOutput {
|
|
|
1775
1713
|
readonly webcpurenderer_audioRetainedWindows: (a: number, b: number, c: number) => [number, number, number, number];
|
|
1776
1714
|
readonly webcpurenderer_audioSampleRate: (a: number) => number;
|
|
1777
1715
|
readonly webcpurenderer_beginExport: (a: number, b: bigint, c: bigint, d: number, e: number, f: number, g: number) => [number, number];
|
|
1778
|
-
readonly webcpurenderer_beginExportAt: (a: number, b: bigint, c: number, d: number) => [number, number, number];
|
|
1716
|
+
readonly webcpurenderer_beginExportAt: (a: number, b: bigint, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
1779
1717
|
readonly webcpurenderer_beginExportFrame: (a: number) => [number, number, number];
|
|
1780
1718
|
readonly webcpurenderer_builtinCatalog: (a: number) => [number, number];
|
|
1781
1719
|
readonly webcpurenderer_capabilityReport: (a: number) => [number, number, number, number];
|
|
@@ -1838,7 +1776,9 @@ export interface InitOutput {
|
|
|
1838
1776
|
readonly webcpurenderer_uploadedFrameBytes: (a: number) => bigint;
|
|
1839
1777
|
readonly webcpurenderer_uploadedFrameCount: (a: number) => number;
|
|
1840
1778
|
readonly webcpurenderer_videoFrameCopy: (a: number) => [number, number];
|
|
1779
|
+
readonly webeffectregistry_adapter: (a: number) => [number, number];
|
|
1841
1780
|
readonly webeffectregistry_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
1781
|
+
readonly webeffectregistry_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
1842
1782
|
readonly webeffectregistry_aliasVideoFrame: (a: number, b: number, c: number, d: bigint, e: bigint) => [number, number, number];
|
|
1843
1783
|
readonly webeffectregistry_audioChannels: (a: number) => number;
|
|
1844
1784
|
readonly webeffectregistry_audioMaxBlock: (a: number) => number;
|
|
@@ -1848,8 +1788,9 @@ export interface InitOutput {
|
|
|
1848
1788
|
readonly webeffectregistry_audioRetainedFrames: (a: number) => number;
|
|
1849
1789
|
readonly webeffectregistry_audioRetainedWindows: (a: number, b: number, c: number) => [number, number, number, number];
|
|
1850
1790
|
readonly webeffectregistry_audioSampleRate: (a: number) => number;
|
|
1791
|
+
readonly webeffectregistry_backend: (a: number) => [number, number];
|
|
1851
1792
|
readonly webeffectregistry_beginExport: (a: number, b: bigint, c: bigint, d: number, e: number, f: number, g: number) => [number, number];
|
|
1852
|
-
readonly webeffectregistry_beginExportAt: (a: number, b: bigint, c: number, d: number) => [number, number, number];
|
|
1793
|
+
readonly webeffectregistry_beginExportAt: (a: number, b: bigint, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
1853
1794
|
readonly webeffectregistry_beginExportFrame: (a: number) => [number, number, number];
|
|
1854
1795
|
readonly webeffectregistry_beginExportPresent: (a: number) => [number, number, number];
|
|
1855
1796
|
readonly webeffectregistry_builtinCatalog: (a: number) => [number, number];
|
|
@@ -1862,8 +1803,8 @@ export interface InitOutput {
|
|
|
1862
1803
|
readonly webeffectregistry_compileEffect: (a: number, b: number, c: number) => [number, number, number];
|
|
1863
1804
|
readonly webeffectregistry_create: () => any;
|
|
1864
1805
|
readonly webeffectregistry_createCpu: (a: any) => [number, number, number];
|
|
1865
|
-
readonly webeffectregistry_createForCanvas: (a: any) => any;
|
|
1866
|
-
readonly webeffectregistry_createForHtmlCanvas: (a: any) => any;
|
|
1806
|
+
readonly webeffectregistry_createForCanvas: (a: any, b: number) => any;
|
|
1807
|
+
readonly webeffectregistry_createForHtmlCanvas: (a: any, b: number) => any;
|
|
1867
1808
|
readonly webeffectregistry_deviceLost: (a: number) => number;
|
|
1868
1809
|
readonly webeffectregistry_diagnostics: (a: number) => [number, number, number, number];
|
|
1869
1810
|
readonly webeffectregistry_endExport: (a: number) => void;
|
|
@@ -1873,6 +1814,7 @@ export interface InitOutput {
|
|
|
1873
1814
|
readonly webeffectregistry_hdrSource: (a: number, b: number, c: number) => number;
|
|
1874
1815
|
readonly webeffectregistry_holdsImage: (a: number, b: number, c: number, d: bigint) => number;
|
|
1875
1816
|
readonly webeffectregistry_loadProject: (a: number, b: number, c: number) => [number, number];
|
|
1817
|
+
readonly webeffectregistry_lossReport: (a: number) => [number, number];
|
|
1876
1818
|
readonly webeffectregistry_loudnessReport: (a: number) => [number, number];
|
|
1877
1819
|
readonly webeffectregistry_presentUploadedFrame: (a: number, b: number, c: number, d: bigint) => [number, number];
|
|
1878
1820
|
readonly webeffectregistry_previewSize: (a: number) => [number, number, number, number];
|
|
@@ -1900,11 +1842,13 @@ export interface InitOutput {
|
|
|
1900
1842
|
readonly webeffectregistry_sourceColorMetadata: (a: number, b: number, c: number) => [number, number];
|
|
1901
1843
|
readonly webeffectregistry_submittedWorkDone: (a: number) => any;
|
|
1902
1844
|
readonly webeffectregistry_supportsExternalVideoFrame: (a: number) => number;
|
|
1845
|
+
readonly webeffectregistry_takeGpuSubmissionStats: (a: number) => [number, number];
|
|
1903
1846
|
readonly webeffectregistry_trimAudioBefore: (a: number, b: number, c: number, d: bigint) => void;
|
|
1904
1847
|
readonly webeffectregistry_trimFramesBefore: (a: number, b: number, c: number, d: bigint) => void;
|
|
1905
1848
|
readonly webeffectregistry_unregisterEffect: (a: number, b: number, c: number, d: number) => number;
|
|
1906
1849
|
readonly webeffectregistry_unregisterEffectResource: (a: number, b: number, c: number) => number;
|
|
1907
1850
|
readonly webeffectregistry_uploadAudioBlock: (a: number, b: number, c: number, d: bigint, e: number, f: any, g: any, h: number) => [number, number];
|
|
1851
|
+
readonly webeffectregistry_uploadDegradedVideoFrame: (a: number, b: number, c: number, d: bigint, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
1908
1852
|
readonly webeffectregistry_uploadPresentedImageBitmap: (a: number, b: number, c: number, d: bigint, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
1909
1853
|
readonly webeffectregistry_uploadPresentedLinearFrame: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
|
|
1910
1854
|
readonly webeffectregistry_uploadPresentedLinearImage: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
@@ -1921,12 +1865,12 @@ export interface InitOutput {
|
|
|
1921
1865
|
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___js_sys_dcf218532b47778c___Function_fn_wasm_bindgen_d171202afaeab6f2___JsValue_____wasm_bindgen_d171202afaeab6f2___sys__Undefined___js_sys_dcf218532b47778c___Function_fn_wasm_bindgen_d171202afaeab6f2___JsValue_____wasm_bindgen_d171202afaeab6f2___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
1922
1866
|
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
1923
1867
|
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
1924
|
-
readonly
|
|
1925
|
-
readonly
|
|
1926
|
-
readonly
|
|
1868
|
+
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__232: (a: number, b: number, c: any) => [number, number];
|
|
1869
|
+
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__235: (a: number, b: number, c: any) => [number, number];
|
|
1870
|
+
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__236: (a: number, b: number, c: any) => [number, number];
|
|
1927
1871
|
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_: (a: number, b: number, c: any) => void;
|
|
1928
1872
|
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_: (a: number, b: number, c: any) => void;
|
|
1929
|
-
readonly
|
|
1873
|
+
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__234: (a: number, b: number, c: any) => void;
|
|
1930
1874
|
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
1931
1875
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1932
1876
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|