alpha2 0.4.6 → 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 +108 -177
- 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 +96 -162
- package/dist/frame-supply.js +181 -171
- package/dist/generated/project-schema.d.ts +701 -485
- package/dist/generated/project-schema.js +55 -2
- package/dist/generated/project-shape.js +261 -16
- 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 +82 -67
- package/dist/hdr-frames.js +112 -49
- 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 +48 -63
- package/dist/layout.js +37 -37
- 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 +166 -245
- package/dist/mediabunny.js +741 -580
- 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 +73 -117
- package/dist/project.js +384 -445
- 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 +97 -71
- package/dist/text.js +33 -70
- 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 -95
- package/dist/worker.js +235 -143
- 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 +460 -567
- package/wasm/alpha2_wasm.js +594 -594
- package/wasm/alpha2_wasm_bg.wasm +0 -0
- package/wasm/alpha2_wasm_bg.wasm.d.ts +15 -8
- package/wasm/rust-crate-licenses.md +2 -2
- package/wasm/snippets/{alpha2-wasm-c62e60c964e88a52 → alpha2-wasm-1313375d424845c0}/inline1.js +1 -0
- package/wasm/snippets/alpha2-wasm-1313375d424845c0/inline2.js +82 -0
- package/wasm/snippets/alpha2-wasm-c62e60c964e88a52/inline2.js +0 -52
- /package/wasm/snippets/{alpha2-wasm-c62e60c964e88a52 → alpha2-wasm-1313375d424845c0}/inline0.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-c62e60c964e88a52 → 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,21 +174,18 @@ 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
183
|
/**
|
|
184
|
-
* Appends every face of an OpenType font file to the fallback
|
|
185
|
-
* in
|
|
186
|
-
* checked before any is added.
|
|
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.
|
|
187
186
|
*
|
|
188
187
|
* # Errors
|
|
189
|
-
* Rejects malformed font bytes
|
|
188
|
+
* Rejects malformed font bytes; no face is added.
|
|
190
189
|
*/
|
|
191
190
|
addFontFile(family: string, bytes: Uint8Array): void;
|
|
192
191
|
/**
|
|
@@ -201,41 +200,34 @@ export class WasmTextMeasurer {
|
|
|
201
200
|
*/
|
|
202
201
|
clearFonts(): void;
|
|
203
202
|
/**
|
|
204
|
-
* Where each node of the layout generator `generator_json`
|
|
205
|
-
*
|
|
206
|
-
* `
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* picture
|
|
217
|
-
*
|
|
218
|
-
* # Errors
|
|
219
|
-
* Rejects JSON that is no valid layout generator (on that canvas),
|
|
220
|
-
* an empty picture or canvas, a time that is not whole ticks, and a
|
|
221
|
-
* measurer without fonts for a layout with text.
|
|
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).
|
|
213
|
+
*
|
|
214
|
+
* # Errors
|
|
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.
|
|
222
217
|
*/
|
|
223
218
|
measureLayout(generator_json: string, width: number, height: number, time: number, canvas_width?: number | null, canvas_height?: number | null): string;
|
|
224
219
|
/**
|
|
225
|
-
* Where the text generator `generator_json` (`{ "type": "text",
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* canvas height. Measure at the project's canvas size: text laid out
|
|
234
|
-
* at another size can break its lines elsewhere.
|
|
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.
|
|
235
228
|
*
|
|
236
229
|
* # Errors
|
|
237
|
-
* Rejects
|
|
238
|
-
* a measurer without fonts.
|
|
230
|
+
* Rejects an invalid text generator, an empty canvas, and a measurer without fonts.
|
|
239
231
|
*/
|
|
240
232
|
measure(generator_json: string, width: number, height: number): string;
|
|
241
233
|
/**
|
|
@@ -251,12 +243,11 @@ export class WasmTextRasterizer {
|
|
|
251
243
|
free(): void;
|
|
252
244
|
[Symbol.dispose](): void;
|
|
253
245
|
/**
|
|
254
|
-
* Appends every face of an OpenType font file to the fallback
|
|
255
|
-
* in
|
|
256
|
-
* checked before any is added.
|
|
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.
|
|
257
248
|
*
|
|
258
249
|
* # Errors
|
|
259
|
-
* Rejects malformed font bytes
|
|
250
|
+
* Rejects malformed font bytes; no face is added.
|
|
260
251
|
*/
|
|
261
252
|
addFontFile(family: string, bytes: Uint8Array): void;
|
|
262
253
|
/**
|
|
@@ -279,14 +270,12 @@ export class WasmTextRasterizer {
|
|
|
279
270
|
*/
|
|
280
271
|
constructor();
|
|
281
272
|
/**
|
|
282
|
-
* Shapes, lays out, and rasterizes one request, or returns the cached
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
* 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.
|
|
286
276
|
*
|
|
287
277
|
* # Errors
|
|
288
|
-
* Rejects a malformed or out-of-range request, or a rasterizer
|
|
289
|
-
* without fonts.
|
|
278
|
+
* Rejects a malformed or out-of-range request, or a rasterizer without fonts.
|
|
290
279
|
*/
|
|
291
280
|
rasterize(request_json: string, content_version: bigint): RasterizedText;
|
|
292
281
|
/**
|
|
@@ -296,8 +285,7 @@ export class WasmTextRasterizer {
|
|
|
296
285
|
}
|
|
297
286
|
|
|
298
287
|
/**
|
|
299
|
-
* Builds a multi-resolution waveform summary from planar samples streamed in
|
|
300
|
-
* blocks.
|
|
288
|
+
* Builds a multi-resolution waveform summary from planar samples streamed in blocks.
|
|
301
289
|
*/
|
|
302
290
|
export class WaveformBuilder {
|
|
303
291
|
free(): void;
|
|
@@ -310,20 +298,19 @@ export class WaveformBuilder {
|
|
|
310
298
|
*/
|
|
311
299
|
finish(): WaveformResult;
|
|
312
300
|
/**
|
|
313
|
-
* A builder for `channels` channels, `bucket_samples` samples per finest
|
|
314
|
-
*
|
|
301
|
+
* A builder for `channels` channels, `bucket_samples` samples per finest bucket, and
|
|
302
|
+
* `levels` zoom levels, each four times coarser.
|
|
315
303
|
*
|
|
316
304
|
* # Errors
|
|
317
305
|
* Rejects zero channels, a zero bucket, or 0 or more than 16 levels.
|
|
318
306
|
*/
|
|
319
307
|
constructor(channels: number, bucket_samples: number, levels: number);
|
|
320
308
|
/**
|
|
321
|
-
* Adds one block
|
|
322
|
-
* channel, all of one length.
|
|
309
|
+
* Adds one block of planar samples, channel after channel, all of one length.
|
|
323
310
|
*
|
|
324
311
|
* # Errors
|
|
325
|
-
* Rejects a block whose length is not a multiple of the channel count,
|
|
326
|
-
*
|
|
312
|
+
* Rejects a block whose length is not a multiple of the channel count, or a finished
|
|
313
|
+
* builder.
|
|
327
314
|
*/
|
|
328
315
|
push(planar: Float32Array): void;
|
|
329
316
|
}
|
|
@@ -340,8 +327,8 @@ export class WaveformResult {
|
|
|
340
327
|
*/
|
|
341
328
|
bucketSamples(level: number): number;
|
|
342
329
|
/**
|
|
343
|
-
* One channel's buckets at `level` as `[min, max, rms]` triples; empty
|
|
344
|
-
*
|
|
330
|
+
* One channel's buckets at `level` as `[min, max, rms]` triples; empty past the last level
|
|
331
|
+
* or channel.
|
|
345
332
|
*/
|
|
346
333
|
buckets(level: number, channel: number): Float32Array;
|
|
347
334
|
/**
|
|
@@ -357,21 +344,19 @@ export class WaveformResult {
|
|
|
357
344
|
/**
|
|
358
345
|
* The browser renderer that draws on the CPU, for a page with no GPU.
|
|
359
346
|
*
|
|
360
|
-
* It answers the calls `WebEffectRegistry`
|
|
361
|
-
*
|
|
362
|
-
* 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.
|
|
363
349
|
*/
|
|
364
350
|
export class WebCpuRenderer {
|
|
365
351
|
private constructor();
|
|
366
352
|
free(): void;
|
|
367
353
|
[Symbol.dispose](): void;
|
|
368
354
|
/**
|
|
369
|
-
* Appends every face of an OpenType font file to the fallback
|
|
370
|
-
*
|
|
371
|
-
* before any is added, as the export host registers a file.
|
|
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.
|
|
372
357
|
*
|
|
373
358
|
* # Errors
|
|
374
|
-
* Returns an error for malformed font bytes
|
|
359
|
+
* Returns an error for malformed font bytes; no face is added.
|
|
375
360
|
*/
|
|
376
361
|
addFontFile(family: string, bytes: Uint8Array): void;
|
|
377
362
|
/**
|
|
@@ -385,8 +370,8 @@ export class WebCpuRenderer {
|
|
|
385
370
|
* `WebEffectRegistry.aliasVideoFrame`.
|
|
386
371
|
*
|
|
387
372
|
* # Errors
|
|
388
|
-
* Refuses an alias that would
|
|
389
|
-
*
|
|
373
|
+
* Refuses an alias that would push the export frame's sources over the uploaded-frame
|
|
374
|
+
* budget.
|
|
390
375
|
*/
|
|
391
376
|
aliasVideoFrame(source_id: string, existing_media_time_ticks: bigint, requested_media_time_ticks: bigint): boolean;
|
|
392
377
|
/**
|
|
@@ -427,18 +412,16 @@ export class WebCpuRenderer {
|
|
|
427
412
|
*/
|
|
428
413
|
audioSampleRate(): number;
|
|
429
414
|
/**
|
|
430
|
-
* `WebEffectRegistry.beginExportAt`: one exact timeline timestamp at
|
|
431
|
-
*
|
|
415
|
+
* `WebEffectRegistry.beginExportAt`: one exact timeline timestamp at export quality, with
|
|
416
|
+
* `readback` already settled.
|
|
432
417
|
*
|
|
433
418
|
* # Errors
|
|
434
|
-
* Returns an error without a loaded project, for an unknown codec or an
|
|
435
|
-
*
|
|
436
|
-
* 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.
|
|
437
421
|
*/
|
|
438
|
-
beginExportAt(time_ticks: bigint, codec: string): any;
|
|
422
|
+
beginExportAt(time_ticks: bigint, codec: string, pixels?: string | null): any;
|
|
439
423
|
/**
|
|
440
|
-
* `WebEffectRegistry.beginExportFrame
|
|
441
|
-
* settled.
|
|
424
|
+
* `WebEffectRegistry.beginExportFrame`, with `readback` already settled.
|
|
442
425
|
*
|
|
443
426
|
* # Errors
|
|
444
427
|
* As [`Self::export_frame`].
|
|
@@ -448,20 +431,17 @@ export class WebCpuRenderer {
|
|
|
448
431
|
* `WebEffectRegistry.beginExport`, drawing on the CPU.
|
|
449
432
|
*
|
|
450
433
|
* # Errors
|
|
451
|
-
* Returns an error without a loaded project, for an empty range, an
|
|
452
|
-
*
|
|
434
|
+
* Returns an error without a loaded project, for an empty range, an invalid frame rate, or
|
|
435
|
+
* an unknown codec.
|
|
453
436
|
*/
|
|
454
437
|
beginExport(start_ticks: bigint, end_ticks: bigint, rate_num: number, rate_den: number, codec: string): void;
|
|
455
438
|
/**
|
|
456
|
-
* The engine's effect and transition authoring catalog
|
|
457
|
-
* draws on the CPU.
|
|
439
|
+
* The engine's effect and transition authoring catalog; every built-in draws on the CPU.
|
|
458
440
|
*/
|
|
459
441
|
builtinCatalog(): string;
|
|
460
442
|
/**
|
|
461
|
-
*
|
|
462
|
-
*
|
|
463
|
-
* `features` says `renderer.cpu` is available, `renderer.gpu` is not,
|
|
464
|
-
* 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.
|
|
465
445
|
*
|
|
466
446
|
* # Errors
|
|
467
447
|
* Returns an error if the report cannot be serialized.
|
|
@@ -488,15 +468,15 @@ export class WebCpuRenderer {
|
|
|
488
468
|
*/
|
|
489
469
|
clearFrames(): void;
|
|
490
470
|
/**
|
|
491
|
-
* Refused:
|
|
471
|
+
* Refused: runtime effects are WGSL, which only a GPU runs.
|
|
492
472
|
*
|
|
493
473
|
* # Errors
|
|
494
474
|
* Always rejects with `EFFECT_ERROR`.
|
|
495
475
|
*/
|
|
496
476
|
compileEffect(json: string): Promise<any>;
|
|
497
477
|
/**
|
|
498
|
-
* A JSON snapshot for developer tooling: what the CPU renderer drew,
|
|
499
|
-
*
|
|
478
|
+
* A JSON snapshot for developer tooling: what the CPU renderer drew, its result cache, and
|
|
479
|
+
* the frames it holds.
|
|
500
480
|
*
|
|
501
481
|
* # Errors
|
|
502
482
|
* Returns an error if the snapshot cannot be serialized.
|
|
@@ -507,12 +487,11 @@ export class WebCpuRenderer {
|
|
|
507
487
|
*/
|
|
508
488
|
endExport(): void;
|
|
509
489
|
/**
|
|
510
|
-
* `WebEffectRegistry.exportFrame`: the next export frame, drawn
|
|
511
|
-
* CPU before the call returns.
|
|
490
|
+
* `WebEffectRegistry.exportFrame`: the next export frame, drawn before the call returns.
|
|
512
491
|
*
|
|
513
492
|
* # Errors
|
|
514
|
-
* Returns an error without a running export or
|
|
515
|
-
*
|
|
493
|
+
* Returns an error without a running export or loaded project, or when the frame cannot
|
|
494
|
+
* be drawn.
|
|
516
495
|
*/
|
|
517
496
|
exportFrame(): Promise<any>;
|
|
518
497
|
/**
|
|
@@ -538,8 +517,8 @@ export class WebCpuRenderer {
|
|
|
538
517
|
*/
|
|
539
518
|
holdsImage(source_id: string, generation: bigint): boolean;
|
|
540
519
|
/**
|
|
541
|
-
* Loads and validates a versioned project document, keeping uploads
|
|
542
|
-
*
|
|
520
|
+
* Loads and validates a versioned project document, keeping uploads as
|
|
521
|
+
* `WebEffectRegistry.loadProject` does, and ends a running export.
|
|
543
522
|
*
|
|
544
523
|
* # Errors
|
|
545
524
|
* Rejects a document the engine refuses.
|
|
@@ -584,10 +563,9 @@ export class WebCpuRenderer {
|
|
|
584
563
|
*/
|
|
585
564
|
releaseSourceFrames(source_id: string): boolean;
|
|
586
565
|
/**
|
|
587
|
-
* Draws one project frame at
|
|
588
|
-
*
|
|
589
|
-
* `
|
|
590
|
-
* 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`).
|
|
591
569
|
*
|
|
592
570
|
* # Errors
|
|
593
571
|
* Fails without a project, or when the frame cannot be drawn.
|
|
@@ -609,8 +587,8 @@ export class WebCpuRenderer {
|
|
|
609
587
|
*/
|
|
610
588
|
resetPlayer(): void;
|
|
611
589
|
/**
|
|
612
|
-
* Sizes the canvas to `width` by `height`, which preview frames are
|
|
613
|
-
*
|
|
590
|
+
* Sizes the canvas to `width` by `height`, which preview frames are scaled to fill, and
|
|
591
|
+
* drops the held frame.
|
|
614
592
|
*
|
|
615
593
|
* # Errors
|
|
616
594
|
* Fails without a canvas, or for a zero or oversized dimension.
|
|
@@ -642,24 +620,22 @@ export class WebCpuRenderer {
|
|
|
642
620
|
*/
|
|
643
621
|
setPassTiming(_enabled: boolean): void;
|
|
644
622
|
/**
|
|
645
|
-
* Renders preview frames at `scale` times the project
|
|
646
|
-
* on (0.5 until set).
|
|
623
|
+
* Renders preview frames at `scale` times the project size from now on (default 0.5).
|
|
647
624
|
*
|
|
648
625
|
* # Errors
|
|
649
626
|
* Rejects a scale that is not finite, above 0 and at most 8.
|
|
650
627
|
*/
|
|
651
628
|
setPreviewScale(scale: number): void;
|
|
652
629
|
/**
|
|
653
|
-
* Lets drawn results
|
|
654
|
-
*
|
|
630
|
+
* Lets drawn results use up to `bytes` of wasm memory for reuse when a frame repeats; zero
|
|
631
|
+
* (the default) disables it.
|
|
655
632
|
*
|
|
656
633
|
* # Errors
|
|
657
634
|
* Rejects a negative or non-finite budget.
|
|
658
635
|
*/
|
|
659
636
|
setResultCacheBudget(bytes: number): void;
|
|
660
637
|
/**
|
|
661
|
-
* Sets the byte budget
|
|
662
|
-
* memory), as `WebEffectRegistry.setUploadedFrameBudget` does.
|
|
638
|
+
* Sets the uploaded-frame byte budget (default 256 MiB of wasm memory).
|
|
663
639
|
*
|
|
664
640
|
* # Errors
|
|
665
641
|
* Rejects a negative or non-finite budget.
|
|
@@ -670,8 +646,7 @@ export class WebCpuRenderer {
|
|
|
670
646
|
*/
|
|
671
647
|
sourceColorMetadata(source_id: string): string | undefined;
|
|
672
648
|
/**
|
|
673
|
-
*
|
|
674
|
-
* its call returns.
|
|
649
|
+
* Resolves at once, since CPU work is done when its call returns.
|
|
675
650
|
*/
|
|
676
651
|
submittedWorkDone(): Promise<any>;
|
|
677
652
|
/**
|
|
@@ -698,8 +673,8 @@ export class WebCpuRenderer {
|
|
|
698
673
|
*/
|
|
699
674
|
uploadAudioBlock(source_id: string, start_sample: bigint, sample_rate: number, layout: any, samples: Float32Array, ends_source?: boolean | null): void;
|
|
700
675
|
/**
|
|
701
|
-
* [`Self::upload_presented_video_frame`] for a bitmap made with
|
|
702
|
-
*
|
|
676
|
+
* [`Self::upload_presented_video_frame`] for a bitmap made with `premultiplyAlpha: "none"`.
|
|
677
|
+
* Always closes `bitmap`.
|
|
703
678
|
*
|
|
704
679
|
* # Errors
|
|
705
680
|
* As [`Self::upload_presented_video_frame`].
|
|
@@ -734,48 +709,43 @@ export class WebCpuRenderer {
|
|
|
734
709
|
*/
|
|
735
710
|
uploadPresentedRgbaImage(source_id: string, width: number, height: number, pixels: Uint8Array, premultiplied: boolean, output_width: number, output_height: number): any;
|
|
736
711
|
/**
|
|
737
|
-
* `WebEffectRegistry.uploadPresentedVideoFrame
|
|
738
|
-
*
|
|
739
|
-
* `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`.
|
|
740
714
|
*
|
|
741
715
|
* # Errors
|
|
742
|
-
* Rejects an HDR source's frame, a bad placement, and a frame the
|
|
743
|
-
* browser cannot read.
|
|
716
|
+
* Rejects an HDR source's frame, a bad placement, and a frame the browser cannot read.
|
|
744
717
|
*/
|
|
745
718
|
uploadPresentedVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
746
719
|
/**
|
|
747
|
-
* `WebEffectRegistry.uploadRgbaFrame`: premultiplied RGBA8 kept at its
|
|
748
|
-
* own size.
|
|
720
|
+
* `WebEffectRegistry.uploadRgbaFrame`: premultiplied RGBA8 kept at its own size.
|
|
749
721
|
*
|
|
750
722
|
* # Errors
|
|
751
723
|
* Rejects pixels that do not hold the size.
|
|
752
724
|
*/
|
|
753
725
|
uploadRgbaFrame(source_id: string, media_time_ticks: bigint, width: number, height: number, pixels: Uint8Array): any;
|
|
754
726
|
/**
|
|
755
|
-
* `WebEffectRegistry.uploadRgbaImage`: a
|
|
756
|
-
* at its own size.
|
|
727
|
+
* `WebEffectRegistry.uploadRgbaImage`: a premultiplied RGBA8 still kept at its own size.
|
|
757
728
|
*
|
|
758
729
|
* # Errors
|
|
759
730
|
* Rejects pixels that do not hold the size.
|
|
760
731
|
*/
|
|
761
732
|
uploadRgbaImage(source_id: string, width: number, height: number, pixels: Uint8Array): any;
|
|
762
733
|
/**
|
|
763
|
-
* `WebEffectRegistry.uploadVideoFrame`: the frame read through a 2D
|
|
764
|
-
*
|
|
734
|
+
* `WebEffectRegistry.uploadVideoFrame`: the frame read through a 2D canvas and fitted to
|
|
735
|
+
* the loaded project. Always closes `frame`.
|
|
765
736
|
*
|
|
766
737
|
* # Errors
|
|
767
738
|
* Rejects an HDR source's frame and a frame the browser cannot read.
|
|
768
739
|
*/
|
|
769
740
|
uploadVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame): any;
|
|
770
741
|
/**
|
|
771
|
-
* `WebEffectRegistry.uploadYuvFrame`: a decoded frame's planes
|
|
772
|
-
*
|
|
773
|
-
* 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.
|
|
774
744
|
*
|
|
775
745
|
* # Errors
|
|
776
|
-
* Rejects (`INVALID_INPUT`) an unknown format or chroma siting, a layout
|
|
777
|
-
*
|
|
778
|
-
*
|
|
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.
|
|
779
749
|
*/
|
|
780
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;
|
|
781
751
|
/**
|
|
@@ -802,8 +772,8 @@ export class WebCpuRenderer {
|
|
|
802
772
|
*/
|
|
803
773
|
readonly retiredFrameCount: number;
|
|
804
774
|
/**
|
|
805
|
-
* `true`: decoded `VideoFrame`s are taken
|
|
806
|
-
*
|
|
775
|
+
* `true`: decoded `VideoFrame`s are taken as planes (`uploadYuvFrame`) or through a 2D
|
|
776
|
+
* canvas.
|
|
807
777
|
*/
|
|
808
778
|
readonly supportsExternalVideoFrame: boolean;
|
|
809
779
|
/**
|
|
@@ -815,45 +785,42 @@ export class WebCpuRenderer {
|
|
|
815
785
|
*/
|
|
816
786
|
readonly uploadedFrameCount: number;
|
|
817
787
|
/**
|
|
818
|
-
* `"canvas"`:
|
|
819
|
-
* canvas.
|
|
788
|
+
* `"canvas"`: `VideoFrame`s are read through a 2D canvas.
|
|
820
789
|
*/
|
|
821
790
|
readonly videoFrameCopy: string;
|
|
822
791
|
}
|
|
823
792
|
|
|
824
793
|
/**
|
|
825
|
-
* WebGPU
|
|
794
|
+
* The browser GPU renderer (WebGPU or WebGL2), with its runtime effect registry.
|
|
826
795
|
*/
|
|
827
796
|
export class WebEffectRegistry {
|
|
828
797
|
private constructor();
|
|
829
798
|
free(): void;
|
|
830
799
|
[Symbol.dispose](): void;
|
|
831
800
|
/**
|
|
832
|
-
* Appends every face of an OpenType font file to the fallback
|
|
833
|
-
*
|
|
834
|
-
* before any is added, as the export host registers a file.
|
|
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.
|
|
835
803
|
*
|
|
836
804
|
* # Errors
|
|
837
|
-
* Returns an error for malformed font bytes
|
|
805
|
+
* Returns an error for malformed font bytes; no face is added.
|
|
838
806
|
*/
|
|
839
807
|
addFontFile(family: string, bytes: Uint8Array): void;
|
|
840
808
|
/**
|
|
841
|
-
* Appends an OpenType font to the fallback stack
|
|
842
|
-
*
|
|
843
|
-
*
|
|
844
|
-
* for pixel.
|
|
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.
|
|
845
812
|
*
|
|
846
813
|
* # Errors
|
|
847
814
|
* Returns an error for malformed font bytes.
|
|
848
815
|
*/
|
|
849
816
|
addFont(family: string, bytes: Uint8Array, face_index: number): void;
|
|
850
817
|
/**
|
|
851
|
-
* Aliases a new exact source-time request to an already uploaded
|
|
852
|
-
*
|
|
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.
|
|
853
820
|
*
|
|
854
821
|
* # Errors
|
|
855
|
-
* Refuses with `RESOURCE_LIMIT
|
|
856
|
-
* the
|
|
822
|
+
* Refuses with `RESOURCE_LIMIT` an alias that would push the export frame's sources over
|
|
823
|
+
* the uploaded-frame budget.
|
|
857
824
|
*/
|
|
858
825
|
aliasVideoFrame(source_id: string, existing_media_time_ticks: bigint, requested_media_time_ticks: bigint): boolean;
|
|
859
826
|
/**
|
|
@@ -861,21 +828,17 @@ export class WebEffectRegistry {
|
|
|
861
828
|
*/
|
|
862
829
|
audioChannels(): number;
|
|
863
830
|
/**
|
|
864
|
-
*
|
|
865
|
-
* JSON array of source IDs.
|
|
831
|
+
* Source IDs the most recent `renderAudio` call could not mix, as a JSON array.
|
|
866
832
|
*/
|
|
867
833
|
audioMissingSources(): string;
|
|
868
834
|
/**
|
|
869
|
-
* Source intervals a host must decode before mixing a sample range
|
|
870
|
-
*
|
|
871
|
-
*
|
|
872
|
-
* They cover read-ahead and, after a seek, the finite state-settling
|
|
873
|
-
* history each clip's effect stages replay, as well as the delay lines.
|
|
874
|
-
* 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.
|
|
875
838
|
*/
|
|
876
839
|
audioNeeds(start_sample: bigint, frames: number): string;
|
|
877
840
|
/**
|
|
878
|
-
* Allocated audio sample bytes, including spare capacity
|
|
841
|
+
* Allocated audio sample bytes, including spare capacity.
|
|
879
842
|
*/
|
|
880
843
|
audioRetainedBytes(): number;
|
|
881
844
|
/**
|
|
@@ -883,12 +846,9 @@ export class WebEffectRegistry {
|
|
|
883
846
|
*/
|
|
884
847
|
audioRetainedFrames(): number;
|
|
885
848
|
/**
|
|
886
|
-
* Half-open project-rate sample intervals of one source's
|
|
887
|
-
*
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
* A host decodes only what these do not cover: the store may have
|
|
891
|
-
* 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.
|
|
892
852
|
*/
|
|
893
853
|
audioRetainedWindows(source_id: string): string;
|
|
894
854
|
/**
|
|
@@ -896,70 +856,56 @@ export class WebEffectRegistry {
|
|
|
896
856
|
*/
|
|
897
857
|
audioSampleRate(): number;
|
|
898
858
|
/**
|
|
899
|
-
* 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.
|
|
900
861
|
*
|
|
901
|
-
*
|
|
902
|
-
*
|
|
903
|
-
*
|
|
904
|
-
*
|
|
905
|
-
*
|
|
906
|
-
* A rendered result exposes its readback promise separately so the worker
|
|
907
|
-
* can submit later frames while earlier mappings remain in flight. The
|
|
908
|
-
* 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`).
|
|
909
867
|
*
|
|
910
868
|
* # Errors
|
|
911
|
-
* Returns an error without a loaded project, for an unknown codec, or
|
|
912
|
-
*
|
|
869
|
+
* Returns an error without a loaded project, for an unknown codec or pixel format, or when
|
|
870
|
+
* rendering or submission fails.
|
|
913
871
|
*/
|
|
914
|
-
beginExportAt(time_ticks: bigint, codec: string): any;
|
|
872
|
+
beginExportAt(time_ticks: bigint, codec: string, pixels?: string | null): any;
|
|
915
873
|
/**
|
|
916
874
|
* Starts the next export render and returns before its GPU readback maps.
|
|
917
875
|
*
|
|
918
|
-
* A rendered result
|
|
919
|
-
*
|
|
920
|
-
* readbacks to remain in flight. Waiting results still do not advance the
|
|
921
|
-
* 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.
|
|
922
878
|
*/
|
|
923
879
|
beginExportFrame(): any;
|
|
924
880
|
/**
|
|
925
|
-
* Renders the next export frame and presents it on this renderer's
|
|
926
|
-
*
|
|
927
|
-
* page captures the canvas with `new VideoFrame(canvas)` and hands that to
|
|
928
|
-
* 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)`.
|
|
929
883
|
*
|
|
930
|
-
* The canvas must be sized to the export (`resizeSurface`) and
|
|
931
|
-
*
|
|
932
|
-
*
|
|
933
|
-
* `
|
|
934
|
-
* 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`.
|
|
935
888
|
*
|
|
936
889
|
* # Errors
|
|
937
|
-
* Returns an error without a loaded project, a running export, or a
|
|
938
|
-
*
|
|
890
|
+
* Returns an error without a loaded project, a running export, or a canvas, or when
|
|
891
|
+
* rendering or presentation fails.
|
|
939
892
|
*/
|
|
940
893
|
beginExportPresent(): any;
|
|
941
894
|
/**
|
|
942
895
|
* Starts a deterministic export over a half-open timeline range.
|
|
943
896
|
*
|
|
944
|
-
* Resets the audio renderer
|
|
945
|
-
*
|
|
946
|
-
*
|
|
947
|
-
*
|
|
948
|
-
* silence and advances nothing (`audioMissingSources` names the
|
|
949
|
-
* sources), so rendering it again once they are uploaded continues
|
|
950
|
-
* exactly as an uninterrupted export does.
|
|
951
|
-
*
|
|
952
|
-
* Export renders offscreen at [`QualityProfile::export`] and never touches
|
|
953
|
-
* the presentation surface, so its output is independent of the canvas,
|
|
954
|
-
* 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.
|
|
955
901
|
*
|
|
956
|
-
*
|
|
957
|
-
* `hevc`, `vp9`, `av1
|
|
958
|
-
*
|
|
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`]).
|
|
959
905
|
*
|
|
960
906
|
* # Errors
|
|
961
|
-
* Returns an error without a loaded project, for an empty range, an
|
|
962
|
-
*
|
|
907
|
+
* Returns an error without a loaded project, for an empty range, an invalid frame rate, or
|
|
908
|
+
* an unknown codec.
|
|
963
909
|
*/
|
|
964
910
|
beginExport(start_ticks: bigint, end_ticks: bigint, rate_num: number, rate_den: number, codec: string): void;
|
|
965
911
|
/**
|
|
@@ -967,15 +913,14 @@ export class WebEffectRegistry {
|
|
|
967
913
|
*/
|
|
968
914
|
builtinCatalog(): string;
|
|
969
915
|
/**
|
|
970
|
-
*
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
* `
|
|
974
|
-
* (this one), `renderer.cpu` and `effects.runtime`, as the native host
|
|
975
|
-
* 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).
|
|
976
920
|
*
|
|
977
921
|
* # Errors
|
|
978
|
-
* 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.
|
|
979
924
|
*/
|
|
980
925
|
capabilityReport(): string;
|
|
981
926
|
/**
|
|
@@ -999,45 +944,51 @@ export class WebEffectRegistry {
|
|
|
999
944
|
*/
|
|
1000
945
|
clearFrames(): void;
|
|
1001
946
|
/**
|
|
1002
|
-
* Parses one JSON effect definition and compiles it on this binding's
|
|
1003
|
-
*
|
|
1004
|
-
*
|
|
1005
|
-
* 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.
|
|
1006
950
|
*
|
|
1007
|
-
*
|
|
1008
|
-
*
|
|
1009
|
-
* 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.
|
|
1010
953
|
*
|
|
1011
954
|
* # Errors
|
|
1012
|
-
* Throws `EFFECT_ERROR` for a definition the engine refuses before
|
|
1013
|
-
* compiling it.
|
|
955
|
+
* Throws `EFFECT_ERROR` for a definition the engine refuses before compiling.
|
|
1014
956
|
*/
|
|
1015
957
|
compileEffect(json: string): Promise<any>;
|
|
1016
958
|
/**
|
|
1017
|
-
* Creates the renderer
|
|
1018
|
-
*
|
|
1019
|
-
*
|
|
1020
|
-
*
|
|
1021
|
-
* packs export frames in wasm, single-threaded, drawing what the native
|
|
1022
|
-
* 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.
|
|
1023
963
|
*
|
|
1024
964
|
* # Errors
|
|
1025
|
-
* Rejects (`INVALID_INPUT`) a canvas
|
|
1026
|
-
*
|
|
965
|
+
* Rejects (`INVALID_INPUT`) a canvas with no 2D context, such as one already holding a
|
|
966
|
+
* WebGL or WebGPU context.
|
|
1027
967
|
*/
|
|
1028
968
|
static createCpu(canvas: any): WebCpuRenderer;
|
|
1029
969
|
/**
|
|
1030
|
-
* Creates a worker-owned renderer
|
|
970
|
+
* Creates a worker-owned renderer for an `OffscreenCanvas`.
|
|
1031
971
|
*
|
|
1032
|
-
*
|
|
1033
|
-
*
|
|
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.
|
|
977
|
+
*
|
|
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.
|
|
1034
982
|
*/
|
|
1035
|
-
static createForCanvas(canvas: OffscreenCanvas): Promise<WebEffectRegistry>;
|
|
983
|
+
static createForCanvas(canvas: OffscreenCanvas, options?: any | null): Promise<WebEffectRegistry>;
|
|
1036
984
|
/**
|
|
1037
|
-
* Creates a renderer
|
|
1038
|
-
*
|
|
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`].
|
|
1039
990
|
*/
|
|
1040
|
-
static createForHtmlCanvas(canvas: HTMLCanvasElement): Promise<WebEffectRegistry>;
|
|
991
|
+
static createForHtmlCanvas(canvas: HTMLCanvasElement, options?: any | null): Promise<WebEffectRegistry>;
|
|
1041
992
|
/**
|
|
1042
993
|
* Acquires a surface-independent WebGPU device.
|
|
1043
994
|
*/
|
|
@@ -1053,82 +1004,61 @@ export class WebEffectRegistry {
|
|
|
1053
1004
|
/**
|
|
1054
1005
|
* Renders the next export frame and resolves with its pixels.
|
|
1055
1006
|
*
|
|
1056
|
-
*
|
|
1057
|
-
* `
|
|
1058
|
-
*
|
|
1059
|
-
*
|
|
1060
|
-
*
|
|
1061
|
-
* width, height, format: "I420", colorSpace, layout, pixels }`, where
|
|
1062
|
-
* `pixels` holds the planes with padded rows at the offsets and strides
|
|
1063
|
-
* `layout` gives. Waiting never advances the cursor, so a retry after
|
|
1064
|
-
* 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.
|
|
1065
1012
|
*
|
|
1066
1013
|
* # Errors
|
|
1067
|
-
* Returns an error without a running export or
|
|
1068
|
-
*
|
|
1069
|
-
* 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.
|
|
1070
1016
|
*/
|
|
1071
1017
|
exportFrame(): Promise<any>;
|
|
1072
1018
|
/**
|
|
1073
|
-
* Completed and total frame counts for the running export
|
|
1074
|
-
*
|
|
1019
|
+
* Completed and total frame counts for the running export and the range it covers, as
|
|
1020
|
+
* JSON.
|
|
1075
1021
|
*
|
|
1076
|
-
* `effectiveRange` is the requested range widened to the frame grid
|
|
1077
|
-
*
|
|
1078
|
-
* `
|
|
1079
|
-
*
|
|
1080
|
-
* output's zero, and `frames` the sample count. Every host takes its
|
|
1081
|
-
* 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.
|
|
1082
1026
|
*
|
|
1083
1027
|
* # Errors
|
|
1084
|
-
* Returns an error when no export is running
|
|
1085
|
-
* not fit in samples.
|
|
1028
|
+
* Returns an error when no export is running or the range does not fit in samples.
|
|
1086
1029
|
*/
|
|
1087
1030
|
exportProgress(): string;
|
|
1088
1031
|
/**
|
|
1089
|
-
* Exact clip/source/timestamp requests from the same
|
|
1090
|
-
*
|
|
1091
|
-
* 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.
|
|
1092
1034
|
*/
|
|
1093
1035
|
frameNeeds(time_ticks: bigint): string;
|
|
1094
1036
|
/**
|
|
1095
|
-
* Whether the loaded project declares `source_id` an HDR (PQ or HLG)
|
|
1096
|
-
*
|
|
1097
|
-
* [`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`].
|
|
1098
1039
|
*/
|
|
1099
1040
|
hdrSource(source_id: string): boolean;
|
|
1100
1041
|
/**
|
|
1101
|
-
* Whether the still `sourceId` is still the upload `generation` names.
|
|
1102
|
-
*
|
|
1103
|
-
* limit on how many it keeps), so a host that skips uploading a still it
|
|
1104
|
-
* 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.
|
|
1105
1044
|
*/
|
|
1106
1045
|
holdsImage(source_id: string, generation: bigint): boolean;
|
|
1107
1046
|
/**
|
|
1108
1047
|
* Loads and validates a versioned project document.
|
|
1109
1048
|
*
|
|
1110
|
-
*
|
|
1111
|
-
*
|
|
1112
|
-
*
|
|
1113
|
-
*
|
|
1114
|
-
*
|
|
1115
|
-
*
|
|
1116
|
-
*
|
|
1117
|
-
* relocated lose theirs, and all audio goes when the project sample rate
|
|
1118
|
-
* changes. Media that changes under an unchanged locator needs a new
|
|
1119
|
-
* source ID.
|
|
1120
|
-
*
|
|
1121
|
-
* Loading ends a running export (`endExport`): an export renders the
|
|
1122
|
-
* project it began with, so its next step is refused rather than
|
|
1123
|
-
* 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.
|
|
1124
1056
|
*/
|
|
1125
1057
|
loadProject(json: string): void;
|
|
1126
1058
|
/**
|
|
1127
|
-
* The loudness measured since metering started
|
|
1128
|
-
* `
|
|
1129
|
-
*
|
|
1130
|
-
* (`limiterThreshold`, `null` without one), which
|
|
1131
|
-
* `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.
|
|
1132
1062
|
*/
|
|
1133
1063
|
loudnessReport(): string;
|
|
1134
1064
|
/**
|
|
@@ -1136,12 +1066,12 @@ export class WebEffectRegistry {
|
|
|
1136
1066
|
*/
|
|
1137
1067
|
presentUploadedFrame(source_id: string, media_time_ticks: bigint): void;
|
|
1138
1068
|
/**
|
|
1139
|
-
* Adds an effect [`Self::compile_effect`] compiled on this binding and
|
|
1140
|
-
*
|
|
1069
|
+
* Adds an effect [`Self::compile_effect`] compiled on this binding and returns its
|
|
1070
|
+
* `id@version`. The compiled effect is consumed either way.
|
|
1141
1071
|
*
|
|
1142
1072
|
* # Errors
|
|
1143
|
-
* Throws `EFFECT_ERROR` for an effect compiled by another binding, one
|
|
1144
|
-
*
|
|
1073
|
+
* Throws `EFFECT_ERROR` for an effect compiled by another binding, one registered while it
|
|
1074
|
+
* compiled, or a full registry.
|
|
1145
1075
|
*/
|
|
1146
1076
|
registerCompiledEffect(compiled: CompiledEffect): string;
|
|
1147
1077
|
/**
|
|
@@ -1153,8 +1083,8 @@ export class WebEffectRegistry {
|
|
|
1153
1083
|
*/
|
|
1154
1084
|
releaseAudioSource(source_id: string): boolean;
|
|
1155
1085
|
/**
|
|
1156
|
-
* Releases exactly one uploaded generation
|
|
1157
|
-
*
|
|
1086
|
+
* Releases exactly one uploaded generation, leaving any newer texture under the same
|
|
1087
|
+
* source and timestamp.
|
|
1158
1088
|
*/
|
|
1159
1089
|
releaseFrameGeneration(generation: bigint): boolean;
|
|
1160
1090
|
/**
|
|
@@ -1162,42 +1092,33 @@ export class WebEffectRegistry {
|
|
|
1162
1092
|
*/
|
|
1163
1093
|
releaseFrame(source_id: string, media_time_ticks: bigint): boolean;
|
|
1164
1094
|
/**
|
|
1165
|
-
*
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1169
|
-
* is released; later work allocates again what it needs. An export
|
|
1170
|
-
* 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.
|
|
1171
1099
|
*/
|
|
1172
1100
|
releaseIdleMemory(): number;
|
|
1173
1101
|
/**
|
|
1174
|
-
* Releases every uploaded frame and the still of one source
|
|
1175
|
-
*
|
|
1176
|
-
* 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.
|
|
1177
1104
|
*/
|
|
1178
1105
|
releaseSourceFrames(source_id: string): boolean;
|
|
1179
1106
|
/**
|
|
1180
1107
|
* Evaluates and presents one project frame on the worker-owned canvas.
|
|
1181
1108
|
*
|
|
1182
|
-
* Returns JSON `{ requestedTimeTicks, presentedTimeTicks, missingSources,
|
|
1183
|
-
*
|
|
1184
|
-
*
|
|
1185
|
-
*
|
|
1186
|
-
* frame equals the one presented last (see `Player::render_at`): nothing
|
|
1187
|
-
* 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.
|
|
1188
1113
|
*/
|
|
1189
1114
|
renderAt(time_ticks: bigint): string;
|
|
1190
1115
|
/**
|
|
1191
|
-
* Mixes one project audio block of at most `audioMaxBlock` samples per
|
|
1192
|
-
*
|
|
1193
|
-
*
|
|
1194
|
-
*
|
|
1195
|
-
* Channels are returned end to end. Call `audioStatus` for the sources
|
|
1196
|
-
* 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`.
|
|
1197
1119
|
*
|
|
1198
1120
|
* # Errors
|
|
1199
|
-
* Rejects (`INVALID_INPUT`, not fatal) more than `audioMaxBlock` frames
|
|
1200
|
-
* naming the limit.
|
|
1121
|
+
* Rejects (`INVALID_INPUT`, not fatal) more than `audioMaxBlock` frames.
|
|
1201
1122
|
*/
|
|
1202
1123
|
renderAudio(start_sample: bigint, frames: number, playing: boolean): Float32Array;
|
|
1203
1124
|
/**
|
|
@@ -1213,112 +1134,97 @@ export class WebEffectRegistry {
|
|
|
1213
1134
|
*/
|
|
1214
1135
|
resizeSurface(width: number, height: number): void;
|
|
1215
1136
|
/**
|
|
1216
|
-
* Chooses what `renderAudio` does, outside an export, with a block that
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1220
|
-
*
|
|
1221
|
-
*
|
|
1222
|
-
*
|
|
1223
|
-
*
|
|
1224
|
-
* not what a fresh renderer mixes, so loudness measurements and other
|
|
1225
|
-
* output that must repeat stay exact. From `beginExport` to `endExport`
|
|
1226
|
-
* the renderer is exact whatever is chosen. Choosing another policy than
|
|
1227
|
-
* 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.
|
|
1228
1145
|
*
|
|
1229
1146
|
* # Errors
|
|
1230
1147
|
* Rejects any other policy name (`INVALID_INPUT`, not fatal).
|
|
1231
1148
|
*/
|
|
1232
1149
|
setAudioContinuity(policy: string): void;
|
|
1233
1150
|
/**
|
|
1234
|
-
* Starts (from empty) or stops measuring
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1237
|
-
* 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.
|
|
1238
1154
|
*
|
|
1239
1155
|
* # Errors
|
|
1240
1156
|
* Returns an error without an audio renderer.
|
|
1241
1157
|
*/
|
|
1242
1158
|
setLoudnessMetering(enabled: boolean): void;
|
|
1243
1159
|
/**
|
|
1244
|
-
* Applies a static gain
|
|
1245
|
-
*
|
|
1246
|
-
*
|
|
1247
|
-
* returns before rendering its audio; the gain stays until it is set
|
|
1248
|
-
* 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.
|
|
1249
1163
|
*
|
|
1250
1164
|
* # Errors
|
|
1251
|
-
* Returns an error without an audio renderer, or for a gain that is not
|
|
1252
|
-
*
|
|
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`).
|
|
1253
1167
|
*/
|
|
1254
1168
|
setNormalizationGainDb(gain_db: number): void;
|
|
1255
1169
|
/**
|
|
1256
|
-
* Enables or disables per-pass GPU/CPU timing
|
|
1257
|
-
*
|
|
1258
|
-
* Disabled by default: timing reads a clock per pass and allocates GPU
|
|
1259
|
-
* timestamp resources, which is profiling cost rather than rendering work.
|
|
1260
|
-
* 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.
|
|
1261
1172
|
*/
|
|
1262
1173
|
setPassTiming(enabled: boolean): void;
|
|
1263
1174
|
/**
|
|
1264
|
-
* Renders preview frames at `scale` times the project
|
|
1265
|
-
*
|
|
1266
|
-
*
|
|
1267
|
-
* 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.
|
|
1268
1178
|
*
|
|
1269
1179
|
* # Errors
|
|
1270
1180
|
* Rejects a scale that is not finite, above 0 and at most 8.
|
|
1271
1181
|
*/
|
|
1272
1182
|
setPreviewScale(scale: number): void;
|
|
1273
1183
|
/**
|
|
1274
|
-
* Lets rendered results (each clip's finished picture and the frame)
|
|
1275
|
-
*
|
|
1276
|
-
*
|
|
1277
|
-
* sources whose upload is reused are found again: a still, or a frame the
|
|
1278
|
-
* 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.
|
|
1279
1187
|
*
|
|
1280
1188
|
* # Errors
|
|
1281
1189
|
* Rejects a negative or non-finite budget.
|
|
1282
1190
|
*/
|
|
1283
1191
|
setResultCacheBudget(bytes: number): void;
|
|
1284
1192
|
/**
|
|
1285
|
-
* Sets the cache budget for live, image, and retired generations (default
|
|
1286
|
-
*
|
|
1287
|
-
*
|
|
1288
|
-
*
|
|
1289
|
-
*
|
|
1290
|
-
* or alias that would
|
|
1291
|
-
* `RESOURCE_LIMIT` (`failure.stage` `working-set-over-budget`,
|
|
1292
|
-
* `failure.requestedBytes` the
|
|
1293
|
-
* refill could make the frame fit. Renderer pools and submitted GPU work
|
|
1294
|
-
* 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).
|
|
1295
1201
|
*/
|
|
1296
1202
|
setUploadedFrameBudget(bytes: number): void;
|
|
1297
1203
|
/**
|
|
1298
|
-
* The color metadata the loaded project declares for `source_id`, as
|
|
1299
|
-
* JSON, or `undefined` when it declares none.
|
|
1204
|
+
* The color metadata the loaded project declares for `source_id`, as JSON, or `undefined`.
|
|
1300
1205
|
*/
|
|
1301
1206
|
sourceColorMetadata(source_id: string): string | undefined;
|
|
1302
1207
|
/**
|
|
1303
|
-
*
|
|
1304
|
-
*
|
|
1305
|
-
* releases the wasm object borrow immediately, allowing edits while waiting.
|
|
1306
|
-
* 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.
|
|
1307
1210
|
*/
|
|
1308
1211
|
submittedWorkDone(): Promise<any>;
|
|
1309
1212
|
/**
|
|
1310
|
-
*
|
|
1311
|
-
*
|
|
1312
|
-
*
|
|
1313
|
-
|
|
1314
|
-
|
|
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.
|
|
1315
1222
|
*/
|
|
1316
1223
|
trimAudioBefore(source_id: string, ticks: bigint): void;
|
|
1317
1224
|
/**
|
|
1318
|
-
* Releases `source_id`'s
|
|
1319
|
-
*
|
|
1320
|
-
*
|
|
1321
|
-
* 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.
|
|
1322
1228
|
*/
|
|
1323
1229
|
trimFramesBefore(source_id: string, media_time_ticks: bigint): void;
|
|
1324
1230
|
/**
|
|
@@ -1332,142 +1238,138 @@ export class WebEffectRegistry {
|
|
|
1332
1238
|
/**
|
|
1333
1239
|
* Uploads project-rate planar audio for one source.
|
|
1334
1240
|
*
|
|
1335
|
-
* `start_sample` is the
|
|
1336
|
-
*
|
|
1337
|
-
*
|
|
1338
|
-
*
|
|
1339
|
-
*
|
|
1340
|
-
*
|
|
1341
|
-
*
|
|
1342
|
-
*
|
|
1343
|
-
*
|
|
1344
|
-
* its own.
|
|
1345
|
-
*
|
|
1346
|
-
* The mixer reads a window only where it holds every sample a block
|
|
1347
|
-
* needs, so a host decoding past a source's end uploads zeros there, as
|
|
1348
|
-
* the supplied decoders do. `ends_source` says instead that this upload
|
|
1349
|
-
* runs to the source's end, so past it the source is silent: pass it
|
|
1350
|
-
* with a whole decoded source, whose clips may end exactly at its end
|
|
1351
|
-
* 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.
|
|
1352
1250
|
*/
|
|
1353
1251
|
uploadAudioBlock(source_id: string, start_sample: bigint, sample_rate: number, layout: any, samples: Float32Array, ends_source?: boolean | null): void;
|
|
1354
1252
|
/**
|
|
1355
|
-
* [`Self::upload_presented_video_frame`] for a
|
|
1356
|
-
*
|
|
1357
|
-
*
|
|
1358
|
-
*
|
|
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.
|
|
1359
1267
|
*/
|
|
1360
1268
|
uploadPresentedImageBitmap(source_id: string, media_time_ticks: bigint, bitmap: ImageBitmap, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
1361
1269
|
/**
|
|
1362
|
-
* Like [`Self::upload_presented_rgba_frame`], for premultiplied
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
* 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.
|
|
1366
1273
|
*/
|
|
1367
1274
|
uploadPresentedLinearFrame(source_id: string, media_time_ticks: bigint, width: number, height: number, pixels: Uint16Array, output_width: number, output_height: number): any;
|
|
1368
1275
|
/**
|
|
1369
|
-
* Like [`Self::upload_presented_linear_frame`], for a still shown at
|
|
1370
|
-
* every time.
|
|
1276
|
+
* Like [`Self::upload_presented_linear_frame`], for a still shown at every time.
|
|
1371
1277
|
*/
|
|
1372
1278
|
uploadPresentedLinearImage(source_id: string, width: number, height: number, pixels: Uint16Array, output_width: number, output_height: number): any;
|
|
1373
1279
|
/**
|
|
1374
|
-
* Uploads
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1377
|
-
*
|
|
1378
|
-
* 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.
|
|
1379
1284
|
*/
|
|
1380
1285
|
uploadPresentedRgbaFrame(source_id: string, media_time_ticks: bigint, width: number, height: number, pixels: Uint8Array, premultiplied: boolean, output_width: number, output_height: number): any;
|
|
1381
1286
|
/**
|
|
1382
|
-
* Like [`Self::upload_presented_rgba_frame`], for a still shown at every
|
|
1383
|
-
* time.
|
|
1287
|
+
* Like [`Self::upload_presented_rgba_frame`], for a still shown at every time.
|
|
1384
1288
|
*/
|
|
1385
1289
|
uploadPresentedRgbaImage(source_id: string, width: number, height: number, pixels: Uint8Array, premultiplied: boolean, output_width: number, output_height: number): any;
|
|
1386
1290
|
/**
|
|
1387
|
-
* Imports a decoded `VideoFrame` without
|
|
1388
|
-
*
|
|
1389
|
-
*
|
|
1390
|
-
* mirrored left to right when `mirror` is set, then turned clockwise by
|
|
1391
|
-
* `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`.
|
|
1392
1294
|
*
|
|
1393
|
-
* Browser WebGPU copies the frame
|
|
1394
|
-
* browser does not take a `VideoFrame` (Firefox)
|
|
1395
|
-
* 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.
|
|
1396
1297
|
* `videoFrameCopy` says which.
|
|
1397
1298
|
*
|
|
1398
|
-
* Both
|
|
1399
|
-
*
|
|
1400
|
-
*
|
|
1401
|
-
* whatever the project's HDR policy: its planes go to
|
|
1402
|
-
* [`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.
|
|
1403
1302
|
*/
|
|
1404
1303
|
uploadPresentedVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame, output_width: number, output_height: number, rotation_degrees: number, mirror: boolean): any;
|
|
1405
1304
|
/**
|
|
1406
|
-
* Uploads tightly packed premultiplied RGBA8 pixels.
|
|
1407
|
-
*
|
|
1408
|
-
* This compatibility path is used by WebGL2, whose wgpu backend cannot
|
|
1409
|
-
* import a browser `VideoFrame` directly.
|
|
1305
|
+
* Uploads tightly packed premultiplied RGBA8 pixels. Used by WebGL2, whose wgpu backend
|
|
1306
|
+
* cannot import a `VideoFrame` directly.
|
|
1410
1307
|
*/
|
|
1411
1308
|
uploadRgbaFrame(source_id: string, media_time_ticks: bigint, width: number, height: number, pixels: Uint8Array): any;
|
|
1412
1309
|
/**
|
|
1413
|
-
* Uploads one time-independent still image,
|
|
1414
|
-
* is released. Video uploads continue to require an exact timestamp.
|
|
1310
|
+
* Uploads one time-independent still image, kept until its generation is released.
|
|
1415
1311
|
*/
|
|
1416
1312
|
uploadRgbaImage(source_id: string, width: number, height: number, pixels: Uint8Array): any;
|
|
1417
1313
|
/**
|
|
1418
|
-
* Uploads a decoded browser frame as [`Self::upload_presented_video_frame`]
|
|
1419
|
-
*
|
|
1420
|
-
* 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
|
|
1421
1316
|
* `source_id` at `media_time_ticks`.
|
|
1422
1317
|
*
|
|
1423
|
-
*
|
|
1424
|
-
* returning. An HDR frame is refused, as [`Self::upload_presented_video_frame`]
|
|
1425
|
-
* refuses it.
|
|
1318
|
+
* Takes ownership of `frame` and always closes it. HDR frames are refused.
|
|
1426
1319
|
*/
|
|
1427
1320
|
uploadVideoFrame(source_id: string, media_time_ticks: bigint, frame: VideoFrame): any;
|
|
1428
1321
|
/**
|
|
1429
|
-
* Uploads a decoded frame's planar YCbCr samples
|
|
1430
|
-
*
|
|
1431
|
-
*
|
|
1432
|
-
*
|
|
1433
|
-
*
|
|
1434
|
-
* `
|
|
1435
|
-
*
|
|
1436
|
-
*
|
|
1437
|
-
*
|
|
1438
|
-
*
|
|
1439
|
-
* `
|
|
1440
|
-
*
|
|
1441
|
-
*
|
|
1442
|
-
* `top-left`, or `unspecified`) is where the stream puts its chroma
|
|
1443
|
-
* samples, which `WebCodecs` leaves to the demuxer to know.
|
|
1444
|
-
* `display_width` by `display_height` is the size the visible rectangle
|
|
1445
|
-
* is shown at before it is turned (a `VideoFrame`'s `displayWidth` and
|
|
1446
|
-
* `displayHeight`), which gives the pixel aspect ratio. The frame is
|
|
1447
|
-
* 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
|
|
1448
1335
|
* clockwise by `rotation_degrees`.
|
|
1449
1336
|
*
|
|
1450
1337
|
* # Errors
|
|
1451
|
-
* Rejects (`INVALID_INPUT`) an unknown format or chroma siting, a layout
|
|
1452
|
-
*
|
|
1453
|
-
*
|
|
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.
|
|
1454
1341
|
*/
|
|
1455
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;
|
|
1456
1348
|
/**
|
|
1457
1349
|
* The most samples per channel one `renderAudio` call mixes.
|
|
1458
1350
|
*/
|
|
1459
1351
|
readonly audioMaxBlock: number;
|
|
1460
1352
|
/**
|
|
1461
|
-
*
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
*
|
|
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.
|
|
1466
1360
|
*/
|
|
1467
1361
|
readonly deviceLost: boolean;
|
|
1468
1362
|
/**
|
|
1469
|
-
*
|
|
1470
|
-
*
|
|
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.
|
|
1471
1373
|
*
|
|
1472
1374
|
* # Errors
|
|
1473
1375
|
* Fails when no project is loaded.
|
|
@@ -1482,9 +1384,8 @@ export class WebEffectRegistry {
|
|
|
1482
1384
|
*/
|
|
1483
1385
|
readonly retiredFrameCount: number;
|
|
1484
1386
|
/**
|
|
1485
|
-
* Whether decoded `VideoFrame`
|
|
1486
|
-
*
|
|
1487
|
-
* `uploadPresentedVideoFrame`.
|
|
1387
|
+
* Whether decoded `VideoFrame`s can be imported without CPU copies. Both backends can,
|
|
1388
|
+
* directly or through a canvas bitmap (see `uploadPresentedVideoFrame`).
|
|
1488
1389
|
*/
|
|
1489
1390
|
readonly supportsExternalVideoFrame: boolean;
|
|
1490
1391
|
/**
|
|
@@ -1496,37 +1397,34 @@ export class WebEffectRegistry {
|
|
|
1496
1397
|
*/
|
|
1497
1398
|
readonly uploadedFrameCount: number;
|
|
1498
1399
|
/**
|
|
1499
|
-
* How [`Self::upload_presented_video_frame`] copies a frame: `"direct"`,
|
|
1500
|
-
*
|
|
1501
|
-
* 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.
|
|
1502
1402
|
*/
|
|
1503
1403
|
readonly videoFrameCopy: string;
|
|
1504
1404
|
}
|
|
1505
1405
|
|
|
1506
1406
|
/**
|
|
1507
|
-
* Checks that `bytes` hold face `face_index` of a font the engine
|
|
1508
|
-
*
|
|
1407
|
+
* Checks that `bytes` hold face `face_index` of a font the engine can draw with, as
|
|
1408
|
+
* registering it would.
|
|
1509
1409
|
*
|
|
1510
1410
|
* # Errors
|
|
1511
|
-
* Rejects bytes the
|
|
1512
|
-
*
|
|
1411
|
+
* Rejects bytes the font parser refuses, with its reason (for example a WOFF container named
|
|
1412
|
+
* `.ttf`).
|
|
1513
1413
|
*/
|
|
1514
1414
|
export function checkFont(bytes: Uint8Array, face_index: number): void;
|
|
1515
1415
|
|
|
1516
1416
|
/**
|
|
1517
|
-
* Checks that `cube` is a `.cube` 3D LUT the engine
|
|
1518
|
-
*
|
|
1519
|
-
* 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.
|
|
1520
1419
|
*
|
|
1521
1420
|
* # Errors
|
|
1522
|
-
* Rejects text the
|
|
1523
|
-
* one-dimensional table, an unsupported directive, a missing sample).
|
|
1421
|
+
* Rejects text the parser refuses, with its line and reason.
|
|
1524
1422
|
*/
|
|
1525
1423
|
export function checkLut3d(cube: string): void;
|
|
1526
1424
|
|
|
1527
1425
|
/**
|
|
1528
|
-
* Returns a color pipeline's identity (JSON `ColorPipeline`)
|
|
1529
|
-
*
|
|
1426
|
+
* Returns a color pipeline's identity (JSON `ColorPipeline`) as a proxy that bakes it in
|
|
1427
|
+
* records it.
|
|
1530
1428
|
*
|
|
1531
1429
|
* # Errors
|
|
1532
1430
|
* Rejects JSON that is not a color pipeline.
|
|
@@ -1534,45 +1432,40 @@ export function checkLut3d(cube: string): void;
|
|
|
1534
1432
|
export function colorPipelineFingerprint(pipeline: string): string;
|
|
1535
1433
|
|
|
1536
1434
|
/**
|
|
1537
|
-
* Compares a found fingerprint with a recorded one (both JSON
|
|
1538
|
-
*
|
|
1539
|
-
* `
|
|
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`.
|
|
1540
1438
|
*
|
|
1541
1439
|
* # Errors
|
|
1542
|
-
* Rejects JSON that is not a fingerprint, or
|
|
1543
|
-
*
|
|
1544
|
-
* 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).
|
|
1545
1442
|
*/
|
|
1546
1443
|
export function compareFingerprints(recorded: string, found: string): string;
|
|
1547
1444
|
|
|
1548
1445
|
/**
|
|
1549
|
-
* Whether `project`'s media, as `catalog` describes it, is ready for
|
|
1550
|
-
* `
|
|
1551
|
-
*
|
|
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`.
|
|
1552
1449
|
*
|
|
1553
1450
|
* # Errors
|
|
1554
|
-
* Rejects an invalid project, catalog (
|
|
1555
|
-
* formed among them), or purpose.
|
|
1451
|
+
* Rejects an invalid project, catalog (including malformed fingerprints), or purpose.
|
|
1556
1452
|
*/
|
|
1557
1453
|
export function conformProject(project: string, catalog: string, purpose: string): string;
|
|
1558
1454
|
|
|
1559
1455
|
/**
|
|
1560
|
-
* How many faces the font file `bytes` holds: a
|
|
1561
|
-
* count, else 1. `addFontFile` registers each.
|
|
1456
|
+
* How many faces the font file `bytes` holds: a collection's count, else 1.
|
|
1562
1457
|
*/
|
|
1563
1458
|
export function fontFaceCount(bytes: Uint8Array): number;
|
|
1564
1459
|
|
|
1565
1460
|
/**
|
|
1566
|
-
* Returns the family name a caption style's `font_family` must
|
|
1567
|
-
*
|
|
1568
|
-
*
|
|
1569
|
-
* font or the face names no family.
|
|
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.
|
|
1570
1464
|
*/
|
|
1571
1465
|
export function fontFamily(bytes: Uint8Array, face_index: number): string | undefined;
|
|
1572
1466
|
|
|
1573
1467
|
/**
|
|
1574
|
-
*
|
|
1575
|
-
* (`tests/golden/geometry_queries.json`), computed by this module.
|
|
1468
|
+
* Answers to the geometry queries the native tests pin (`tests/golden/geometry_queries.json`).
|
|
1576
1469
|
*/
|
|
1577
1470
|
export function geometryParityAnswers(): string;
|
|
1578
1471
|
|
|
@@ -1585,8 +1478,7 @@ export function geometryParityAnswers(): string;
|
|
|
1585
1478
|
export function hitTest(items_json: string, time: number, width: number, height: number, x: number, y: number): string | undefined;
|
|
1586
1479
|
|
|
1587
1480
|
/**
|
|
1588
|
-
* A project's non-fatal diagnostics
|
|
1589
|
-
* issues (`alpha2/project`'s `LintIssue`).
|
|
1481
|
+
* A project's non-fatal diagnostics as a JSON array of `LintIssue`s.
|
|
1590
1482
|
*
|
|
1591
1483
|
* # Errors
|
|
1592
1484
|
* Rejects a document that does not load as a valid project.
|
|
@@ -1610,17 +1502,17 @@ export function motionPath(point_json: string, width: number, height: number): s
|
|
|
1610
1502
|
export function nearestPoint(path_json: string, width: number, height: number, x: number, y: number): string;
|
|
1611
1503
|
|
|
1612
1504
|
/**
|
|
1613
|
-
* Reads a subtitle file (`format` is `srt` or `webvtt`) into caption cues,
|
|
1614
|
-
*
|
|
1505
|
+
* Reads a subtitle file (`format` is `srt` or `webvtt`) into caption cues, returned as JSON
|
|
1506
|
+
* `{ rows, skipped, notes }`.
|
|
1615
1507
|
*
|
|
1616
|
-
* `rows` holds one caption track's
|
|
1617
|
-
*
|
|
1618
|
-
*
|
|
1619
|
-
*
|
|
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`).
|
|
1620
1512
|
*
|
|
1621
1513
|
* # Errors
|
|
1622
|
-
* Rejects an unknown format, a WebVTT file without its header, and cues that
|
|
1623
|
-
*
|
|
1514
|
+
* Rejects an unknown format, a WebVTT file without its header, and cues that need more
|
|
1515
|
+
* caption tracks than a project holds.
|
|
1624
1516
|
*/
|
|
1625
1517
|
export function parseCaptions(text: string, format: string): string;
|
|
1626
1518
|
|
|
@@ -1633,34 +1525,28 @@ export function parseCaptions(text: string, format: string): string;
|
|
|
1633
1525
|
export function pathLength(path_json: string, width: number, height: number): string;
|
|
1634
1526
|
|
|
1635
1527
|
/**
|
|
1636
|
-
* The gain that brings a measured mix (a `loudnessReport` JSON) to
|
|
1637
|
-
*
|
|
1638
|
-
*
|
|
1639
|
-
* 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,
|
|
1640
1531
|
* limiterLimited }`, or `null` for a mix silent below the absolute gate.
|
|
1641
1532
|
*
|
|
1642
1533
|
* # Errors
|
|
1643
|
-
* Rejects a report that is not a JSON object with
|
|
1644
|
-
*
|
|
1534
|
+
* Rejects a report that is not a JSON object with `frames`, or whose `limiterThreshold` is
|
|
1535
|
+
* neither a positive number nor `null`.
|
|
1645
1536
|
*/
|
|
1646
1537
|
export function planLoudnessNormalization(report_json: string, target_lufs: number, ceiling_dbtp: number): string;
|
|
1647
1538
|
|
|
1648
1539
|
/**
|
|
1649
|
-
* How
|
|
1650
|
-
*
|
|
1651
|
-
*
|
|
1652
|
-
*
|
|
1653
|
-
*
|
|
1654
|
-
* adapters allow past a requested time before they take the last frame at
|
|
1655
|
-
* 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.
|
|
1656
1545
|
*/
|
|
1657
1546
|
export function presentationSlackTicks(num: bigint, den: bigint, quantum: bigint): bigint;
|
|
1658
1547
|
|
|
1659
1548
|
/**
|
|
1660
1549
|
* The engine's quality level names, lowest first, as a JSON array.
|
|
1661
|
-
*
|
|
1662
|
-
* An app builds its quality control from this rather than from a list of its
|
|
1663
|
-
* own, so the names a browser offers are the ones the engine resolves.
|
|
1664
1550
|
*/
|
|
1665
1551
|
export function qualityLevels(): string;
|
|
1666
1552
|
|
|
@@ -1673,29 +1559,31 @@ export function qualityLevels(): string;
|
|
|
1673
1559
|
export function resamplePath(path_json: string, width: number, height: number, counts: Uint32Array): string;
|
|
1674
1560
|
|
|
1675
1561
|
/**
|
|
1676
|
-
* Resolves a quality level into a stereo audio bitrate in bits per second.
|
|
1677
|
-
*
|
|
1678
|
-
* `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`.
|
|
1679
1564
|
*/
|
|
1680
1565
|
export function resolveAudioBitrate(codec: string, level: string): number;
|
|
1681
1566
|
|
|
1682
1567
|
/**
|
|
1683
|
-
* Resolves a quality level into the rate control every sink encodes with
|
|
1684
|
-
*
|
|
1685
|
-
* Returns JSON: `{ "bitrate", "mode", "quantizer" }`. The native host calls
|
|
1686
|
-
* the same engine function, so a browser export and a native export at the
|
|
1687
|
-
* 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.
|
|
1688
1570
|
*/
|
|
1689
1571
|
export function resolveRateControl(codec: string, width: number, height: number, frame_rate_num: number, frame_rate_den: number, level: string): string;
|
|
1690
1572
|
|
|
1691
1573
|
/**
|
|
1692
|
-
* The unit a stream's first timestamps (in
|
|
1693
|
-
*
|
|
1574
|
+
* The unit a stream's first timestamps (in time base units) are rounded to, or 0 for none
|
|
1575
|
+
* ([`alpha2_time::rounding_quantum`]).
|
|
1694
1576
|
*/
|
|
1695
1577
|
export function roundingQuantum(timestamps: BigInt64Array): bigint;
|
|
1696
1578
|
|
|
1697
1579
|
/**
|
|
1698
|
-
*
|
|
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 }]`.
|
|
1699
1587
|
*
|
|
1700
1588
|
* # Errors
|
|
1701
1589
|
* Rejects items that are not a valid content tree, or a bad size or time.
|
|
@@ -1703,10 +1591,8 @@ export function roundingQuantum(timestamps: BigInt64Array): bigint;
|
|
|
1703
1591
|
export function shapeBounds(items_json: string, time: number, width: number, height: number): string;
|
|
1704
1592
|
|
|
1705
1593
|
/**
|
|
1706
|
-
* Installs the panic reporter
|
|
1707
|
-
*
|
|
1708
|
-
* `wasm-bindgen` calls this from the generated initializer, so every entry
|
|
1709
|
-
* 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.
|
|
1710
1596
|
*/
|
|
1711
1597
|
export function start(): void;
|
|
1712
1598
|
|
|
@@ -1728,7 +1614,7 @@ export function trimPath(path_json: string, width: number, height: number, start
|
|
|
1728
1614
|
|
|
1729
1615
|
/**
|
|
1730
1616
|
* The vector coverage and scene hashes the native tests pin
|
|
1731
|
-
* (`tests/golden/vector_coverage.json`)
|
|
1617
|
+
* (`tests/golden/vector_coverage.json`).
|
|
1732
1618
|
*/
|
|
1733
1619
|
export function vectorParityHashes(): string;
|
|
1734
1620
|
|
|
@@ -1783,11 +1669,13 @@ export interface InitOutput {
|
|
|
1783
1669
|
readonly presentationSlackTicks: (a: bigint, b: bigint, c: bigint) => bigint;
|
|
1784
1670
|
readonly qualityLevels: () => [number, number];
|
|
1785
1671
|
readonly rasterizedtext_descriptor: (a: number) => [number, number];
|
|
1672
|
+
readonly rasterizedtext_takeBackground: (a: number) => any;
|
|
1786
1673
|
readonly rasterizedtext_takePixels: (a: number) => any;
|
|
1787
1674
|
readonly resamplePath: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1788
1675
|
readonly resolveAudioBitrate: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
1789
1676
|
readonly resolveRateControl: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
1790
1677
|
readonly roundingQuantum: (a: number, b: number) => bigint;
|
|
1678
|
+
readonly setGpuWatchdogMs: (a: number) => void;
|
|
1791
1679
|
readonly shapeBounds: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
1792
1680
|
readonly start: () => void;
|
|
1793
1681
|
readonly toPath: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
@@ -1825,7 +1713,7 @@ export interface InitOutput {
|
|
|
1825
1713
|
readonly webcpurenderer_audioRetainedWindows: (a: number, b: number, c: number) => [number, number, number, number];
|
|
1826
1714
|
readonly webcpurenderer_audioSampleRate: (a: number) => number;
|
|
1827
1715
|
readonly webcpurenderer_beginExport: (a: number, b: bigint, c: bigint, d: number, e: number, f: number, g: number) => [number, number];
|
|
1828
|
-
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];
|
|
1829
1717
|
readonly webcpurenderer_beginExportFrame: (a: number) => [number, number, number];
|
|
1830
1718
|
readonly webcpurenderer_builtinCatalog: (a: number) => [number, number];
|
|
1831
1719
|
readonly webcpurenderer_capabilityReport: (a: number) => [number, number, number, number];
|
|
@@ -1888,6 +1776,7 @@ export interface InitOutput {
|
|
|
1888
1776
|
readonly webcpurenderer_uploadedFrameBytes: (a: number) => bigint;
|
|
1889
1777
|
readonly webcpurenderer_uploadedFrameCount: (a: number) => number;
|
|
1890
1778
|
readonly webcpurenderer_videoFrameCopy: (a: number) => [number, number];
|
|
1779
|
+
readonly webeffectregistry_adapter: (a: number) => [number, number];
|
|
1891
1780
|
readonly webeffectregistry_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
1892
1781
|
readonly webeffectregistry_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
1893
1782
|
readonly webeffectregistry_aliasVideoFrame: (a: number, b: number, c: number, d: bigint, e: bigint) => [number, number, number];
|
|
@@ -1899,8 +1788,9 @@ export interface InitOutput {
|
|
|
1899
1788
|
readonly webeffectregistry_audioRetainedFrames: (a: number) => number;
|
|
1900
1789
|
readonly webeffectregistry_audioRetainedWindows: (a: number, b: number, c: number) => [number, number, number, number];
|
|
1901
1790
|
readonly webeffectregistry_audioSampleRate: (a: number) => number;
|
|
1791
|
+
readonly webeffectregistry_backend: (a: number) => [number, number];
|
|
1902
1792
|
readonly webeffectregistry_beginExport: (a: number, b: bigint, c: bigint, d: number, e: number, f: number, g: number) => [number, number];
|
|
1903
|
-
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];
|
|
1904
1794
|
readonly webeffectregistry_beginExportFrame: (a: number) => [number, number, number];
|
|
1905
1795
|
readonly webeffectregistry_beginExportPresent: (a: number) => [number, number, number];
|
|
1906
1796
|
readonly webeffectregistry_builtinCatalog: (a: number) => [number, number];
|
|
@@ -1913,8 +1803,8 @@ export interface InitOutput {
|
|
|
1913
1803
|
readonly webeffectregistry_compileEffect: (a: number, b: number, c: number) => [number, number, number];
|
|
1914
1804
|
readonly webeffectregistry_create: () => any;
|
|
1915
1805
|
readonly webeffectregistry_createCpu: (a: any) => [number, number, number];
|
|
1916
|
-
readonly webeffectregistry_createForCanvas: (a: any) => any;
|
|
1917
|
-
readonly webeffectregistry_createForHtmlCanvas: (a: any) => any;
|
|
1806
|
+
readonly webeffectregistry_createForCanvas: (a: any, b: number) => any;
|
|
1807
|
+
readonly webeffectregistry_createForHtmlCanvas: (a: any, b: number) => any;
|
|
1918
1808
|
readonly webeffectregistry_deviceLost: (a: number) => number;
|
|
1919
1809
|
readonly webeffectregistry_diagnostics: (a: number) => [number, number, number, number];
|
|
1920
1810
|
readonly webeffectregistry_endExport: (a: number) => void;
|
|
@@ -1924,6 +1814,7 @@ export interface InitOutput {
|
|
|
1924
1814
|
readonly webeffectregistry_hdrSource: (a: number, b: number, c: number) => number;
|
|
1925
1815
|
readonly webeffectregistry_holdsImage: (a: number, b: number, c: number, d: bigint) => number;
|
|
1926
1816
|
readonly webeffectregistry_loadProject: (a: number, b: number, c: number) => [number, number];
|
|
1817
|
+
readonly webeffectregistry_lossReport: (a: number) => [number, number];
|
|
1927
1818
|
readonly webeffectregistry_loudnessReport: (a: number) => [number, number];
|
|
1928
1819
|
readonly webeffectregistry_presentUploadedFrame: (a: number, b: number, c: number, d: bigint) => [number, number];
|
|
1929
1820
|
readonly webeffectregistry_previewSize: (a: number) => [number, number, number, number];
|
|
@@ -1951,11 +1842,13 @@ export interface InitOutput {
|
|
|
1951
1842
|
readonly webeffectregistry_sourceColorMetadata: (a: number, b: number, c: number) => [number, number];
|
|
1952
1843
|
readonly webeffectregistry_submittedWorkDone: (a: number) => any;
|
|
1953
1844
|
readonly webeffectregistry_supportsExternalVideoFrame: (a: number) => number;
|
|
1845
|
+
readonly webeffectregistry_takeGpuSubmissionStats: (a: number) => [number, number];
|
|
1954
1846
|
readonly webeffectregistry_trimAudioBefore: (a: number, b: number, c: number, d: bigint) => void;
|
|
1955
1847
|
readonly webeffectregistry_trimFramesBefore: (a: number, b: number, c: number, d: bigint) => void;
|
|
1956
1848
|
readonly webeffectregistry_unregisterEffect: (a: number, b: number, c: number, d: number) => number;
|
|
1957
1849
|
readonly webeffectregistry_unregisterEffectResource: (a: number, b: number, c: number) => number;
|
|
1958
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];
|
|
1959
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];
|
|
1960
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];
|
|
1961
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];
|
|
@@ -1972,12 +1865,12 @@ export interface InitOutput {
|
|
|
1972
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;
|
|
1973
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];
|
|
1974
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];
|
|
1975
|
-
readonly
|
|
1976
|
-
readonly
|
|
1977
|
-
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];
|
|
1978
1871
|
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_: (a: number, b: number, c: any) => void;
|
|
1979
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;
|
|
1980
|
-
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;
|
|
1981
1874
|
readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
1982
1875
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1983
1876
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|