@glissade/export-web 0.9.1 → 0.10.0-pre.1
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/dist/index.d.ts +7 -0
- package/dist/index.js +9 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,13 @@ declare class MediabunnyVideoFrameSource implements VideoFrameSource {
|
|
|
15
15
|
private frameIndex;
|
|
16
16
|
warm(fromT: number, toT: number): Promise<void>;
|
|
17
17
|
getFrameSync(mediaT: number): HTMLCanvasElement | OffscreenCanvas;
|
|
18
|
+
/**
|
|
19
|
+
* Test-only introspection (§5.4): the number of decoded frames currently
|
|
20
|
+
* held, so the lookahead/eviction bound (MAX_CACHED_FRAMES) is assertable
|
|
21
|
+
* without reaching into the private cache.
|
|
22
|
+
* @internal — not part of the public API surface (api-extractor strips it).
|
|
23
|
+
*/
|
|
24
|
+
cachedFrameCount(): number;
|
|
18
25
|
close(): void;
|
|
19
26
|
}
|
|
20
27
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -66,6 +66,15 @@ var MediabunnyVideoFrameSource = class MediabunnyVideoFrameSource {
|
|
|
66
66
|
if (!hit) throw new ColdAssetError(this.label, `frame ${idx} not decoded`, mediaT);
|
|
67
67
|
return hit;
|
|
68
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Test-only introspection (§5.4): the number of decoded frames currently
|
|
71
|
+
* held, so the lookahead/eviction bound (MAX_CACHED_FRAMES) is assertable
|
|
72
|
+
* without reaching into the private cache.
|
|
73
|
+
* @internal — not part of the public API surface (api-extractor strips it).
|
|
74
|
+
*/
|
|
75
|
+
cachedFrameCount() {
|
|
76
|
+
return this.cache.size;
|
|
77
|
+
}
|
|
69
78
|
close() {
|
|
70
79
|
this.cache.clear();
|
|
71
80
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/export-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-pre.1",
|
|
4
4
|
"description": "glissade in-browser export: WebCodecs VideoEncoder + Mediabunny muxing, OfflineAudioContext audio mix. Frame-accurate, faster than realtime, no server.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"mediabunny": "^1.0.0",
|
|
19
|
-
"@glissade/backend-canvas2d": "0.
|
|
20
|
-
"@glissade/core": "0.
|
|
21
|
-
"@glissade/scene": "0.
|
|
19
|
+
"@glissade/backend-canvas2d": "0.10.0-pre.1",
|
|
20
|
+
"@glissade/core": "0.10.0-pre.1",
|
|
21
|
+
"@glissade/scene": "0.10.0-pre.1"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|