alpha2 0.4.5 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/abort.d.ts +12 -0
- package/dist/abort.js +48 -0
- package/dist/active-clock.d.ts +35 -0
- package/dist/active-clock.js +99 -0
- package/dist/assets.d.ts +28 -22
- package/dist/assets.js +8 -12
- package/dist/audio-layout.d.ts +52 -74
- package/dist/audio-layout.js +114 -148
- package/dist/audio-timeline.d.ts +89 -117
- package/dist/audio-timeline.js +102 -118
- package/dist/audio-worker.d.ts +12 -21
- package/dist/audio-worker.js +8 -13
- package/dist/audio-worklet-processor.js +45 -58
- package/dist/audio-worklet.d.ts +45 -76
- package/dist/audio-worklet.js +44 -79
- package/dist/audio.d.ts +15 -23
- package/dist/audio.js +9 -13
- package/dist/builder.d.ts +45 -63
- package/dist/builder.js +49 -45
- package/dist/capabilities.d.ts +99 -16
- package/dist/capabilities.js +2 -2
- package/dist/captions.d.ts +45 -22
- package/dist/captions.js +60 -15
- package/dist/chroma-siting.d.ts +24 -41
- package/dist/chroma-siting.js +38 -71
- package/dist/containers.d.ts +41 -30
- package/dist/containers.js +59 -27
- package/dist/decoder-fallback.d.ts +13 -0
- package/dist/decoder-fallback.js +38 -0
- package/dist/decoder-order.d.ts +24 -39
- package/dist/decoder-order.js +28 -42
- package/dist/edit.d.ts +77 -154
- package/dist/edit.js +98 -180
- package/dist/effects.d.ts +109 -173
- package/dist/effects.js +7 -9
- package/dist/export-destination.d.ts +25 -41
- package/dist/export-destination.js +20 -32
- package/dist/export-failure.d.ts +34 -59
- package/dist/export-failure.js +54 -48
- package/dist/export-metrics.d.ts +116 -0
- package/dist/export-metrics.js +74 -0
- package/dist/export-retry.d.ts +46 -29
- package/dist/export-retry.js +86 -51
- package/dist/exporter.d.ts +67 -116
- package/dist/exporter.js +133 -133
- package/dist/extensions.d.ts +69 -115
- package/dist/extensions.js +55 -82
- package/dist/frame-intake.d.ts +92 -0
- package/dist/frame-intake.js +114 -0
- package/dist/frame-supply.d.ts +98 -157
- package/dist/frame-supply.js +191 -162
- package/dist/generated/project-schema.d.ts +742 -464
- package/dist/generated/project-schema.js +63 -2
- package/dist/generated/project-shape.js +663 -118
- package/dist/geometry.d.ts +28 -34
- package/dist/geometry.js +18 -23
- package/dist/gpu-recovery.d.ts +92 -0
- package/dist/gpu-recovery.js +135 -0
- package/dist/hdr-frames.d.ts +88 -62
- package/dist/hdr-frames.js +123 -46
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/json-text.d.ts +13 -23
- package/dist/json-text.js +10 -20
- package/dist/layout-values.d.ts +14 -22
- package/dist/layout-values.js +18 -21
- package/dist/layout.d.ts +55 -55
- package/dist/layout.js +37 -36
- package/dist/loudness.d.ts +27 -32
- package/dist/loudness.js +19 -23
- package/dist/media.d.ts +85 -237
- package/dist/media.js +133 -287
- package/dist/mediabunny.d.ts +173 -237
- package/dist/mediabunny.js +943 -518
- package/dist/physical-frames.d.ts +5 -17
- package/dist/physical-frames.js +4 -11
- package/dist/player.d.ts +56 -47
- package/dist/player.js +155 -40
- package/dist/presented-frames.d.ts +2 -7
- package/dist/presented-frames.js +3 -8
- package/dist/project.d.ts +83 -110
- package/dist/project.js +421 -447
- package/dist/rate-control.d.ts +9 -23
- package/dist/rate-control.js +7 -18
- package/dist/renderer-choice.d.ts +41 -0
- package/dist/renderer-choice.js +82 -0
- package/dist/repacked-bytes.d.ts +0 -2
- package/dist/repacked-bytes.js +2 -5
- package/dist/robustness.d.ts +25 -37
- package/dist/robustness.js +71 -54
- package/dist/sha256.d.ts +5 -13
- package/dist/sha256.js +9 -24
- package/dist/text.d.ts +106 -63
- package/dist/text.js +44 -69
- package/dist/video-frames.d.ts +7 -25
- package/dist/video-frames.js +12 -29
- package/dist/waveform.d.ts +5 -11
- package/dist/waveform.js +4 -9
- package/dist/worker-error.d.ts +5 -20
- package/dist/worker-error.js +8 -25
- package/dist/worker.d.ts +82 -92
- package/dist/worker.js +239 -144
- package/package.json +26 -2
- package/wasm/alpha2_audio_worklet.wasm +0 -0
- package/wasm/alpha2_extensions.d.ts +26 -47
- package/wasm/alpha2_extensions.js +26 -47
- package/wasm/alpha2_extensions_bg.wasm +0 -0
- package/wasm/alpha2_wasm.d.ts +487 -543
- package/wasm/alpha2_wasm.js +669 -572
- package/wasm/alpha2_wasm_bg.wasm +0 -0
- package/wasm/alpha2_wasm_bg.wasm.d.ts +20 -8
- package/wasm/rust-crate-licenses.md +2 -2
- package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline1.js +1 -0
- package/wasm/snippets/alpha2-wasm-1313375d424845c0/inline2.js +82 -0
- package/wasm/snippets/alpha2-wasm-57b04ecc6db57e1f/inline2.js +0 -52
- /package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline0.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline3.js +0 -0
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
export const AUDIO_EFFECT_STATE_MARGIN_MS = 1100;
|
|
6
6
|
/** Mirrors `alpha2_model::CURRENT_SCHEMA_VERSION`. */
|
|
7
7
|
export const CURRENT_SCHEMA_VERSION = 1;
|
|
8
|
+
/** Mirrors `alpha2_model::MAX_ANIMATOR_SCALE`. */
|
|
9
|
+
export const MAX_ANIMATOR_SCALE = 10;
|
|
8
10
|
/** Mirrors `alpha2_model::MAX_AUDIO_DELAY_MS`. */
|
|
9
11
|
export const MAX_AUDIO_DELAY_MS = 120000;
|
|
10
12
|
/** Mirrors `alpha2_model::MAX_AUDIO_EFFECTS`. */
|
|
@@ -19,8 +21,14 @@ export const MAX_CAPTION_FILE_BYTES = 67108864;
|
|
|
19
21
|
export const MAX_CAPTION_FILE_CUES = 65536;
|
|
20
22
|
/** Mirrors `alpha2_model::MAX_CAPTION_FONT_SIZE`. */
|
|
21
23
|
export const MAX_CAPTION_FONT_SIZE = 0.25;
|
|
24
|
+
/** Mirrors `alpha2_model::MAX_CAPTION_NAME_BYTES`. */
|
|
25
|
+
export const MAX_CAPTION_NAME_BYTES = 64;
|
|
26
|
+
/** Mirrors `alpha2_model::MAX_CAPTION_STYLES`. */
|
|
27
|
+
export const MAX_CAPTION_STYLES = 32;
|
|
22
28
|
/** Mirrors `alpha2_model::MAX_CHAIN_EFFECTS`. */
|
|
23
29
|
export const MAX_CHAIN_EFFECTS = 16;
|
|
30
|
+
/** Mirrors `alpha2_model::MAX_CLASS_NAME_BYTES`. */
|
|
31
|
+
export const MAX_CLASS_NAME_BYTES = 64;
|
|
24
32
|
/** Mirrors `alpha2_model::MAX_CLIPS`. */
|
|
25
33
|
export const MAX_CLIPS = 100000;
|
|
26
34
|
/** Mirrors `alpha2_model::MAX_CLIPS_PER_TRACK`. */
|
|
@@ -53,6 +61,8 @@ export const MAX_EQ_GAIN_DB = 36;
|
|
|
53
61
|
export const MAX_EQ_Q = 50;
|
|
54
62
|
/** Mirrors `alpha2_model::MAX_FONT_FAMILY_BYTES`. */
|
|
55
63
|
export const MAX_FONT_FAMILY_BYTES = 256;
|
|
64
|
+
/** Mirrors `alpha2_model::MAX_FONT_WEIGHT`. */
|
|
65
|
+
export const MAX_FONT_WEIGHT = 1000;
|
|
56
66
|
/** Mirrors `alpha2_model::MAX_FRAME_INLINED_NODES`. */
|
|
57
67
|
export const MAX_FRAME_INLINED_NODES = 65536;
|
|
58
68
|
/** Mirrors `alpha2_model::MAX_GAIN`. */
|
|
@@ -77,6 +87,8 @@ export const MAX_LAYOUT_ISOLATED = 16;
|
|
|
77
87
|
export const MAX_LAYOUT_NODES = 256;
|
|
78
88
|
/** Mirrors `alpha2_model::MAX_LAYOUT_TEXTS`. */
|
|
79
89
|
export const MAX_LAYOUT_TEXTS = 64;
|
|
90
|
+
/** Mirrors `alpha2_model::MAX_LETTER_SPACING`. */
|
|
91
|
+
export const MAX_LETTER_SPACING = 1;
|
|
80
92
|
/** Mirrors `alpha2_model::MAX_LINE_HEIGHT`. */
|
|
81
93
|
export const MAX_LINE_HEIGHT = 3;
|
|
82
94
|
/** Mirrors `alpha2_model::MAX_LOOKAHEAD_MS`. */
|
|
@@ -95,6 +107,12 @@ export const MAX_POLYSTAR_POINTS = 100;
|
|
|
95
107
|
export const MAX_PROJECT_JSON_BYTES = 67108864;
|
|
96
108
|
/** Mirrors `alpha2_model::MAX_PROVIDER_DOCUMENT_BYTES`. */
|
|
97
109
|
export const MAX_PROVIDER_DOCUMENT_BYTES = 268435456;
|
|
110
|
+
/** Mirrors `alpha2_model::MAX_RANGE_INDEX`. */
|
|
111
|
+
export const MAX_RANGE_INDEX = 4096;
|
|
112
|
+
/** Mirrors `alpha2_model::MAX_RANGE_PERCENT`. */
|
|
113
|
+
export const MAX_RANGE_PERCENT = 200;
|
|
114
|
+
/** Mirrors `alpha2_model::MAX_RUN_CLASSES`. */
|
|
115
|
+
export const MAX_RUN_CLASSES = 8;
|
|
98
116
|
/** Mirrors `alpha2_model::MAX_SAMPLE_RATE`. */
|
|
99
117
|
export const MAX_SAMPLE_RATE = 96000;
|
|
100
118
|
/** Mirrors `alpha2_model::MAX_SEQUENCE_FRAMES`. */
|
|
@@ -105,14 +123,26 @@ export const MAX_SHAPE_DEPTH = 32;
|
|
|
105
123
|
export const MAX_SHAPE_ITEMS = 1024;
|
|
106
124
|
/** Mirrors `alpha2_model::MAX_SVG_DOCUMENT_BYTES`. */
|
|
107
125
|
export const MAX_SVG_DOCUMENT_BYTES = 33554432;
|
|
126
|
+
/** Mirrors `alpha2_model::MAX_TEXT_ANIMATORS`. */
|
|
127
|
+
export const MAX_TEXT_ANIMATORS = 8;
|
|
108
128
|
/** Mirrors `alpha2_model::MAX_TEXT_CONTENT_BYTES`. */
|
|
109
129
|
export const MAX_TEXT_CONTENT_BYTES = 4096;
|
|
110
130
|
/** Mirrors `alpha2_model::MAX_TEXT_GENERATOR_FONT_SIZE`. */
|
|
111
131
|
export const MAX_TEXT_GENERATOR_FONT_SIZE = 1;
|
|
112
|
-
/** Mirrors `alpha2_model::MAX_TEXT_OUTLINE_WIDTH`. */
|
|
113
|
-
export const MAX_TEXT_OUTLINE_WIDTH = 0.5;
|
|
114
132
|
/** Mirrors `alpha2_model::MAX_TEXT_PADDING`. */
|
|
115
133
|
export const MAX_TEXT_PADDING = 2;
|
|
134
|
+
/** Mirrors `alpha2_model::MAX_TEXT_RUNS`. */
|
|
135
|
+
export const MAX_TEXT_RUNS = 512;
|
|
136
|
+
/** Mirrors `alpha2_model::MAX_TEXT_SHADOWS`. */
|
|
137
|
+
export const MAX_TEXT_SHADOWS = 4;
|
|
138
|
+
/** Mirrors `alpha2_model::MAX_TEXT_SHADOW_BLUR`. */
|
|
139
|
+
export const MAX_TEXT_SHADOW_BLUR = 1;
|
|
140
|
+
/** Mirrors `alpha2_model::MAX_TEXT_SHADOW_OFFSET`. */
|
|
141
|
+
export const MAX_TEXT_SHADOW_OFFSET = 1;
|
|
142
|
+
/** Mirrors `alpha2_model::MAX_TEXT_STROKES`. */
|
|
143
|
+
export const MAX_TEXT_STROKES = 4;
|
|
144
|
+
/** Mirrors `alpha2_model::MAX_TEXT_STROKE_EXTENT`. */
|
|
145
|
+
export const MAX_TEXT_STROKE_EXTENT = 0.5;
|
|
116
146
|
/** Mirrors `alpha2_model::MAX_TRACKS`. */
|
|
117
147
|
export const MAX_TRACKS = 256;
|
|
118
148
|
/** Mirrors `alpha2_model::MAX_TRANSITIONS_PER_TRACK`. */
|
|
@@ -121,14 +151,20 @@ export const MAX_TRANSITIONS_PER_TRACK = 4096;
|
|
|
121
151
|
export const MIN_EQ_FREQUENCY_HZ = 10;
|
|
122
152
|
/** Mirrors `alpha2_model::MIN_EQ_Q`. */
|
|
123
153
|
export const MIN_EQ_Q = 0.05;
|
|
154
|
+
/** Mirrors `alpha2_model::MIN_FONT_WEIGHT`. */
|
|
155
|
+
export const MIN_FONT_WEIGHT = 1;
|
|
124
156
|
/** Mirrors `alpha2_model::MIN_HDR_PEAK_NITS`. */
|
|
125
157
|
export const MIN_HDR_PEAK_NITS = 100;
|
|
158
|
+
/** Mirrors `alpha2_model::MIN_LETTER_SPACING`. */
|
|
159
|
+
export const MIN_LETTER_SPACING = -0.5;
|
|
126
160
|
/** Mirrors `alpha2_model::MIN_LEVEL_DB`. */
|
|
127
161
|
export const MIN_LEVEL_DB = -96;
|
|
128
162
|
/** Mirrors `alpha2_model::MIN_LINE_HEIGHT`. */
|
|
129
163
|
export const MIN_LINE_HEIGHT = 0.5;
|
|
130
164
|
/** Mirrors `alpha2_model::MIN_POLYSTAR_POINTS`. */
|
|
131
165
|
export const MIN_POLYSTAR_POINTS = 3;
|
|
166
|
+
/** Mirrors `alpha2_model::MIN_RANGE_PERCENT`. */
|
|
167
|
+
export const MIN_RANGE_PERCENT = -100;
|
|
132
168
|
/** Mirrors `alpha2_model::MIN_SAMPLE_RATE`. */
|
|
133
169
|
export const MIN_SAMPLE_RATE = 8000;
|
|
134
170
|
/** Mirrors `alpha2_model::REVERB_DELAY_MS`. */
|
|
@@ -181,6 +217,7 @@ export const CLIP_BLEND_MODE_VALUES = [
|
|
|
181
217
|
"saturation",
|
|
182
218
|
"color",
|
|
183
219
|
"luminosity",
|
|
220
|
+
"plus_lighter",
|
|
184
221
|
];
|
|
185
222
|
/** Every {@link ColorMatrix}, in the model's order. */
|
|
186
223
|
export const COLOR_MATRIX_VALUES = [
|
|
@@ -299,6 +336,23 @@ export const POLYSTAR_KIND_VALUES = [
|
|
|
299
336
|
];
|
|
300
337
|
/** Every {@link Position}, in the model's order. */
|
|
301
338
|
export const POSITION_VALUES = ["relative", "absolute"];
|
|
339
|
+
/** Every {@link RangeShape}, in the model's order. */
|
|
340
|
+
export const RANGE_SHAPE_VALUES = [
|
|
341
|
+
"square",
|
|
342
|
+
"ramp_up",
|
|
343
|
+
"ramp_down",
|
|
344
|
+
"triangle",
|
|
345
|
+
"round",
|
|
346
|
+
"smooth",
|
|
347
|
+
];
|
|
348
|
+
/** Every {@link RangeUnits}, in the model's order. */
|
|
349
|
+
export const RANGE_UNITS_VALUES = ["percent", "index"];
|
|
350
|
+
/** Every {@link RunState}, in the model's order. */
|
|
351
|
+
export const RUN_STATE_VALUES = [
|
|
352
|
+
"upcoming",
|
|
353
|
+
"active",
|
|
354
|
+
"spoken",
|
|
355
|
+
];
|
|
302
356
|
/** Every {@link Spread}, in the model's order. */
|
|
303
357
|
export const SPREAD_VALUES = ["pad", "repeat", "reflect"];
|
|
304
358
|
/** Every {@link TextAlign}, in the model's order. */
|
|
@@ -307,6 +361,13 @@ export const TEXT_ALIGN_VALUES = [
|
|
|
307
361
|
"center",
|
|
308
362
|
"end",
|
|
309
363
|
];
|
|
364
|
+
/** Every {@link TextUnit}, in the model's order. */
|
|
365
|
+
export const TEXT_UNIT_VALUES = [
|
|
366
|
+
"characters",
|
|
367
|
+
"characters_excluding_spaces",
|
|
368
|
+
"words",
|
|
369
|
+
"lines",
|
|
370
|
+
];
|
|
310
371
|
/** Every {@link TrackKind}, in the model's order. */
|
|
311
372
|
export const TRACK_KIND_VALUES = [
|
|
312
373
|
"video",
|