@viji-dev/core 0.3.16 → 0.3.17

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 CHANGED
@@ -1460,7 +1460,24 @@ export declare class VijiCore {
1460
1460
  */
1461
1461
  injectTouchEvent(data: TouchEventData): void;
1462
1462
  /**
1463
- * Inject frames directly (compositor pipeline)
1463
+ * Worker-side stream index offset for direct frame slots.
1464
+ * Accounts for main video stream and additional media streams.
1465
+ */
1466
+ private get directFrameStartIndex();
1467
+ /**
1468
+ * Ensure the worker has enough direct frame slots prepared.
1469
+ * Auto-grows as needed; skips if already sufficient.
1470
+ */
1471
+ private ensureDirectFrameSlots;
1472
+ /**
1473
+ * Inject a single frame into a specific direct-frame stream slot.
1474
+ * Allows independent per-stream updates (e.g. during source hot-swap).
1475
+ * Auto-prepares slots as needed. Transfers ownership of the bitmap (zero-copy).
1476
+ */
1477
+ injectFrame(bitmap: ImageBitmap, streamIndex: number): void;
1478
+ /**
1479
+ * Inject frames for all direct-frame stream slots at once (compositor pipeline).
1480
+ * Auto-prepares slots on first call. Transfers ownership of all bitmaps (zero-copy).
1464
1481
  */
1465
1482
  injectFrames(bitmaps: ImageBitmap[]): void;
1466
1483
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, V, a, b } from "./index-CcPOjcNA.js";
1
+ import { A, V, a, b } from "./index-DSNSJDmw.js";
2
2
  export {
3
3
  A as AudioSystem,
4
4
  V as VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viji-dev/core",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "Universal execution engine for Viji Creative scenes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",