supervision 0.1.7 → 0.2.0-next.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.
Files changed (182) hide show
  1. package/dist/constants/media-renderer.d.ts +3 -0
  2. package/dist/constants/media-renderer.d.ts.map +1 -1
  3. package/dist/detections/chunked-detection-frame-source.d.ts.map +1 -1
  4. package/dist/index.d.ts +8 -4
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +9281 -5038
  7. package/dist/index.js.map +1 -1
  8. package/dist/mask-preparation.worker.js +409 -185
  9. package/dist/mask-preparation.worker.js.map +1 -1
  10. package/dist/media/display-pixel-ratio.d.ts +15 -0
  11. package/dist/media/display-pixel-ratio.d.ts.map +1 -0
  12. package/dist/media/engine-import-failure.d.ts +16 -0
  13. package/dist/media/engine-import-failure.d.ts.map +1 -0
  14. package/dist/media/media-errors.d.ts +6 -0
  15. package/dist/media/media-errors.d.ts.map +1 -1
  16. package/dist/media/media-normalization.d.ts.map +1 -1
  17. package/dist/media/media-probe.d.ts.map +1 -1
  18. package/dist/media/media-source-state.d.ts.map +1 -1
  19. package/dist/media/media-source.d.ts +17 -0
  20. package/dist/media/media-source.d.ts.map +1 -1
  21. package/dist/media/mediabunny-media-source.d.ts.map +1 -1
  22. package/dist/media/video-engine-media-source.d.ts +54 -0
  23. package/dist/media/video-engine-media-source.d.ts.map +1 -0
  24. package/dist/media/video-engine-media-source.js +3 -0
  25. package/dist/media/video-engine-media-source.js.map +1 -0
  26. package/dist/playback/media-playback-controller.d.ts +7 -1
  27. package/dist/playback/media-playback-controller.d.ts.map +1 -1
  28. package/dist/render-preparation/mask-frame-artifact.d.ts +48 -12
  29. package/dist/render-preparation/mask-frame-artifact.d.ts.map +1 -1
  30. package/dist/render-preparation/mask-frame-compositor.d.ts +12 -5
  31. package/dist/render-preparation/mask-frame-compositor.d.ts.map +1 -1
  32. package/dist/render-preparation/mask-frame-preparer.d.ts.map +1 -1
  33. package/dist/render-preparation/mask-preparation-worker-count.d.ts +4 -4
  34. package/dist/render-preparation/mask-preparation-worker-protocol.d.ts +13 -3
  35. package/dist/render-preparation/mask-preparation-worker-protocol.d.ts.map +1 -1
  36. package/dist/render-preparation/prepared-render-window.d.ts +44 -2
  37. package/dist/render-preparation/prepared-render-window.d.ts.map +1 -1
  38. package/dist/render-preparation/prepared-window-timeline.d.ts +2 -6
  39. package/dist/render-preparation/prepared-window-timeline.d.ts.map +1 -1
  40. package/dist/renderers/injected-pixi.d.ts +38 -0
  41. package/dist/renderers/injected-pixi.d.ts.map +1 -0
  42. package/dist/renderers/mask-palette.d.ts +14 -0
  43. package/dist/renderers/mask-palette.d.ts.map +1 -0
  44. package/dist/renderers/mask-vertex.d.ts +14 -0
  45. package/dist/renderers/mask-vertex.d.ts.map +1 -0
  46. package/dist/renderers/media-renderer-core.d.ts +9 -0
  47. package/dist/renderers/media-renderer-core.d.ts.map +1 -1
  48. package/dist/renderers/media-renderer-scene.d.ts +50 -2
  49. package/dist/renderers/media-renderer-scene.d.ts.map +1 -1
  50. package/dist/renderers/media-renderer-state.d.ts +20 -1
  51. package/dist/renderers/media-renderer-state.d.ts.map +1 -1
  52. package/dist/renderers/media-renderer-transport.d.ts +72 -0
  53. package/dist/renderers/media-renderer-transport.d.ts.map +1 -0
  54. package/dist/renderers/pixi-box-layer.d.ts +5 -0
  55. package/dist/renderers/pixi-box-layer.d.ts.map +1 -1
  56. package/dist/renderers/pixi-focus-layer.d.ts +19 -2
  57. package/dist/renderers/pixi-focus-layer.d.ts.map +1 -1
  58. package/dist/renderers/pixi-frame-present.d.ts +77 -0
  59. package/dist/renderers/pixi-frame-present.d.ts.map +1 -0
  60. package/dist/renderers/pixi-id-mask-shader.d.ts +6 -25
  61. package/dist/renderers/pixi-id-mask-shader.d.ts.map +1 -1
  62. package/dist/renderers/pixi-interaction-layer.d.ts.map +1 -1
  63. package/dist/renderers/pixi-interaction-presentation-layer.d.ts +12 -2
  64. package/dist/renderers/pixi-interaction-presentation-layer.d.ts.map +1 -1
  65. package/dist/renderers/pixi-mask-halo.d.ts +18 -23
  66. package/dist/renderers/pixi-mask-halo.d.ts.map +1 -1
  67. package/dist/renderers/pixi-mask-layer.d.ts +94 -32
  68. package/dist/renderers/pixi-mask-layer.d.ts.map +1 -1
  69. package/dist/renderers/pixi-media-scene.d.ts +67 -0
  70. package/dist/renderers/pixi-media-scene.d.ts.map +1 -1
  71. package/dist/renderers/pixi-polygon-layer.d.ts +9 -2
  72. package/dist/renderers/pixi-polygon-layer.d.ts.map +1 -1
  73. package/dist/renderers/pixi-region-coverage-mask.d.ts +62 -0
  74. package/dist/renderers/pixi-region-coverage-mask.d.ts.map +1 -0
  75. package/dist/renderers/pixi-region-effect.d.ts +42 -0
  76. package/dist/renderers/pixi-region-effect.d.ts.map +1 -0
  77. package/dist/renderers/pixi-region-layer.d.ts +43 -2
  78. package/dist/renderers/pixi-region-layer.d.ts.map +1 -1
  79. package/dist/renderers/pixi-shader-lifecycle.d.ts +14 -0
  80. package/dist/renderers/pixi-shader-lifecycle.d.ts.map +1 -0
  81. package/dist/renderers/pixi-vector-layer.d.ts.map +1 -1
  82. package/dist/renderers/prepared-annotation-window.d.ts +47 -0
  83. package/dist/renderers/prepared-annotation-window.d.ts.map +1 -0
  84. package/dist/renderers/presented-frame-channel.d.ts +138 -0
  85. package/dist/renderers/presented-frame-channel.d.ts.map +1 -0
  86. package/dist/renderers/scene-render-scheduler.d.ts +20 -0
  87. package/dist/renderers/scene-render-scheduler.d.ts.map +1 -0
  88. package/dist/sessions/media-session-defaults.d.ts +10 -6
  89. package/dist/sessions/media-session-defaults.d.ts.map +1 -1
  90. package/dist/sessions/media-session-media.d.ts.map +1 -1
  91. package/dist/sessions/media-session-state.d.ts.map +1 -1
  92. package/dist/sessions/media-session.d.ts.map +1 -1
  93. package/dist/tracking.worker.js +73 -4
  94. package/dist/tracking.worker.js.map +1 -1
  95. package/dist/types/media-normalization.d.ts +34 -0
  96. package/dist/types/media-normalization.d.ts.map +1 -1
  97. package/dist/types/media-renderer.d.ts +31 -1
  98. package/dist/types/media-renderer.d.ts.map +1 -1
  99. package/dist/types/media-session.d.ts +89 -15
  100. package/dist/types/media-session.d.ts.map +1 -1
  101. package/dist/types/render-preparation.d.ts +149 -5
  102. package/dist/types/render-preparation.d.ts.map +1 -1
  103. package/dist/video-engine-media-source-CUXnOJOV.js +450 -0
  104. package/dist/video-engine-media-source-CUXnOJOV.js.map +1 -0
  105. package/dist/web-video-engine/analysis-session.d.ts +75 -0
  106. package/dist/web-video-engine/analysis.d.ts +6 -0
  107. package/dist/web-video-engine/analysis.js +1850 -0
  108. package/dist/web-video-engine/cache-budget.d.ts +18 -0
  109. package/dist/web-video-engine/canvas-sink-scrub-cursor.d.ts +89 -0
  110. package/dist/web-video-engine/clock.d.ts +82 -0
  111. package/dist/web-video-engine/constants.d.ts +261 -0
  112. package/dist/web-video-engine/create-scrub-cursor.d.ts +65 -0
  113. package/dist/web-video-engine/decode-resolution.d.ts +114 -0
  114. package/dist/web-video-engine/decode-scheduler.d.ts +371 -0
  115. package/dist/web-video-engine/decode-session.d.ts +283 -0
  116. package/dist/web-video-engine/decode-source.d.ts +258 -0
  117. package/dist/web-video-engine/diagnostics-store.d.ts +17 -0
  118. package/dist/web-video-engine/diagnostics.d.ts +316 -0
  119. package/dist/web-video-engine/embedded-engine-worker.d.ts +1 -0
  120. package/dist/web-video-engine/engine-core.d.ts +269 -0
  121. package/dist/web-video-engine/engine.d.ts +25 -0
  122. package/dist/web-video-engine/engine.js +912 -0
  123. package/dist/web-video-engine/engine.worker.d.ts +1 -0
  124. package/dist/web-video-engine/engine.worker.js +33624 -0
  125. package/dist/web-video-engine/frame-cache.d.ts +236 -0
  126. package/dist/web-video-engine/frame-extractor.d.ts +27 -0
  127. package/dist/web-video-engine/frame-timeline-DreEwsRY.js +616 -0
  128. package/dist/web-video-engine/frame-timeline.d.ts +80 -0
  129. package/dist/web-video-engine/frame-walker.d.ts +73 -0
  130. package/dist/web-video-engine/index.d.ts +13 -0
  131. package/dist/web-video-engine/index.d.ts.map +1 -0
  132. package/dist/web-video-engine/index.js +3 -0
  133. package/dist/web-video-engine/index.js.map +1 -0
  134. package/dist/web-video-engine/key-packet.d.ts +64 -0
  135. package/dist/web-video-engine/keyframe-index.d.ts +90 -0
  136. package/dist/web-video-engine/mirror-store.d.ts +55 -0
  137. package/dist/web-video-engine/renderer.d.ts +93 -0
  138. package/dist/web-video-engine/rotation.d.ts +34 -0
  139. package/dist/web-video-engine/scrub-controller.d.ts +375 -0
  140. package/dist/web-video-engine/scrub-cursor.d.ts +347 -0
  141. package/dist/web-video-engine/scrub-trajectory.d.ts +29 -0
  142. package/dist/web-video-engine/source-residency.d.ts +91 -0
  143. package/dist/web-video-engine/trace-recorder.d.ts +163 -0
  144. package/dist/web-video-engine/types.d.ts +200 -0
  145. package/dist/web-video-engine/video-engine.d.ts +437 -0
  146. package/dist/web-video-engine/webgpu-renderer.d.ts +61 -0
  147. package/dist/web-video-engine/worker-bridge.d.ts +11 -0
  148. package/dist/web-video-engine/worker-dispatch.d.ts +16 -0
  149. package/dist/web-video-engine/worker-protocol.d.ts +282 -0
  150. package/node_modules/supervision-js-core/dist/detections/buffered-detection-timeline.d.ts.map +1 -1
  151. package/node_modules/supervision-js-core/dist/detections/composite-detection-frame-source.d.ts.map +1 -1
  152. package/node_modules/supervision-js-core/dist/index.d.ts +5 -4
  153. package/node_modules/supervision-js-core/dist/index.d.ts.map +1 -1
  154. package/node_modules/supervision-js-core/dist/index.js +1167 -280
  155. package/node_modules/supervision-js-core/dist/index.js.map +1 -1
  156. package/node_modules/supervision-js-core/dist/styles/default-annotation-presentation.d.ts.map +1 -1
  157. package/node_modules/supervision-js-core/dist/styles/interaction-style.d.ts +4 -36
  158. package/node_modules/supervision-js-core/dist/styles/interaction-style.d.ts.map +1 -1
  159. package/node_modules/supervision-js-core/dist/styles/polyline-style.d.ts +5 -0
  160. package/node_modules/supervision-js-core/dist/styles/polyline-style.d.ts.map +1 -1
  161. package/node_modules/supervision-js-core/dist/types/annotation-renderer.d.ts +92 -7
  162. package/node_modules/supervision-js-core/dist/types/annotation-renderer.d.ts.map +1 -1
  163. package/node_modules/supervision-js-core/dist/types/detection-timeline.d.ts +191 -17
  164. package/node_modules/supervision-js-core/dist/types/detection-timeline.d.ts.map +1 -1
  165. package/node_modules/supervision-js-core/dist/types/media-rendering.d.ts +83 -5
  166. package/node_modules/supervision-js-core/dist/types/media-rendering.d.ts.map +1 -1
  167. package/node_modules/supervision-js-core/dist/types/polyline-style.d.ts +2 -0
  168. package/node_modules/supervision-js-core/dist/types/polyline-style.d.ts.map +1 -1
  169. package/node_modules/supervision-js-core/dist/types/session-lifecycle.d.ts +32 -0
  170. package/node_modules/supervision-js-core/dist/types/session-lifecycle.d.ts.map +1 -1
  171. package/node_modules/supervision-js-core/dist/utils/detection-conversions.d.ts.map +1 -1
  172. package/node_modules/supervision-js-core/dist/utils/detection-frames.d.ts +5 -0
  173. package/node_modules/supervision-js-core/dist/utils/detection-frames.d.ts.map +1 -1
  174. package/node_modules/supervision-js-core/dist/utils/detection-masks.d.ts +9 -0
  175. package/node_modules/supervision-js-core/dist/utils/detection-masks.d.ts.map +1 -1
  176. package/node_modules/supervision-js-core/dist/utils/detection-ranges.d.ts +18 -0
  177. package/node_modules/supervision-js-core/dist/utils/detection-ranges.d.ts.map +1 -0
  178. package/node_modules/supervision-js-core/dist/utils/id-mask-frame.d.ts +34 -2
  179. package/node_modules/supervision-js-core/dist/utils/id-mask-frame.d.ts.map +1 -1
  180. package/node_modules/supervision-js-core/dist/utils/wait-bound.d.ts +7 -0
  181. package/node_modules/supervision-js-core/dist/utils/wait-bound.d.ts.map +1 -0
  182. package/package.json +24 -3
@@ -46,7 +46,7 @@ export declare enum MediaRendererPlaybackState {
46
46
  * kinds may be added over time, so treat unrecognized values like `Unknown`.
47
47
  */
48
48
  export declare enum MediaErrorKind {
49
- /** The media could not be opened or read at all. */
49
+ /** The media could not be opened or read, or was refused before any read. */
50
50
  Unreadable = "unreadable",
51
51
  /** The container or codec is not supported by this platform. */
52
52
  UnsupportedFormat = "unsupportedFormat",
@@ -132,6 +132,12 @@ export interface MediaRendererAssetError {
132
132
  */
133
133
  export interface MediaSourceState {
134
134
  readonly status: MediaSourceStatus;
135
+ /**
136
+ * True while the renderer is waiting on a read it cannot draw without.
137
+ * Prefetch that runs behind a moving picture is not a wait and leaves this
138
+ * false, so this is set only where the picture has stopped for the source.
139
+ */
140
+ readonly awaitingRead?: boolean;
135
141
  readonly canRead: boolean | null;
136
142
  readonly formatName: string | null;
137
143
  readonly formatMimeType: string | null;
@@ -153,18 +159,41 @@ export interface MediaSourceState {
153
159
  * Stable failure classification when `status` is `Error`, otherwise `null`.
154
160
  *
155
161
  * Prefer this over `errorMessage` for control flow. Messages are diagnostic
156
- * text and may name vendor internals. Optional so state fixtures written
157
- * against the previous shape stay assignable.
162
+ * text and may name vendor internals.
158
163
  */
159
164
  readonly errorKind?: MediaErrorKind | null;
160
165
  }
161
166
  /**
162
167
  * Current renderer state.
163
168
  */
169
+ /**
170
+ * What a playback gate holds back.
171
+ *
172
+ * A source the renderer pulls samples from can be held between any two frames,
173
+ * because the renderer decides when each one is drawn. A source that presents
174
+ * its own frames owns the playhead, so holding it means stopping the producer
175
+ * and starting it again, and a gate that stops one has to bound its own wait
176
+ * or a producer nothing answers for never runs again.
177
+ */
178
+ export declare enum PlaybackGateReach {
179
+ /** No gate: the picture moves and unprepared layers are absent from it. */
180
+ Off = "off",
181
+ /**
182
+ * Playback waits to begin, and stops again at any frame whose artifacts are
183
+ * missing, until they arrive or the gate's own wait bound gives up on them.
184
+ */
185
+ EveryFrame = "everyFrame"
186
+ }
164
187
  export interface MediaRendererState {
165
188
  readonly rendererBackend: string | null;
166
189
  readonly playbackState: MediaRendererPlaybackState;
167
190
  readonly fit: MediaRendererFit;
191
+ /**
192
+ * Media time of the pixels currently composited, or `null` before the first
193
+ * frame reaches the scene. Unlike `currentTime`, this does not move when a
194
+ * producer advances its playhead ahead of the picture under load.
195
+ */
196
+ readonly presentedTime?: number | null;
168
197
  readonly currentTime: number;
169
198
  readonly playbackRate: number;
170
199
  readonly duration: number | null;
@@ -174,6 +203,53 @@ export interface MediaRendererState {
174
203
  readonly activeDetectionFrameTime: number | null;
175
204
  readonly activeDetectionFrameIndex: number | null;
176
205
  readonly activeDetectionCount: number;
206
+ /**
207
+ * Detection frame the mask raster on screen belongs to, null when no mask is
208
+ * up. A renderer should either name `activeDetectionFrameTime` or draw no
209
+ * raster; another value exposes a presentation invariant breach.
210
+ */
211
+ readonly drawnMaskFrameTime?: number | null;
212
+ /**
213
+ * How far the active playback gates reach on the source this renderer opened.
214
+ */
215
+ readonly playbackGateReach?: PlaybackGateReach;
216
+ /**
217
+ * The render-preparation gate stopped playback for artifacts that never
218
+ * arrived and gave up on them, so the picture is moving without them. False
219
+ * again once preparation covers the playhead.
220
+ */
221
+ readonly renderPreparationGateAbandoned?: boolean;
222
+ /**
223
+ * Whether the raster on screen belongs to a frame other than the one the rest
224
+ * of the annotations were drawn from. Renderers report the mismatch instead
225
+ * of hiding it so diagnostics can fail loudly.
226
+ */
227
+ readonly maskHeldStale?: boolean;
228
+ /**
229
+ * Whether the playhead has been moved to a frame that is not on screen yet.
230
+ * `playbackState` cannot answer this: it keeps reporting what the transport
231
+ * settled on before the seek, so a seek of any length reads as paused or
232
+ * playing.
233
+ *
234
+ * A scrub sets this on every tick, so a host that draws it owes the viewer a
235
+ * delay before it appears, and owes them `scrubbing` too: a viewer dragging
236
+ * the playhead is not waiting for the picture, they are leading it.
237
+ *
238
+ * It answers for the transport, which settles one message before the frame it
239
+ * landed on reaches this thread. In that window the picture on screen is the
240
+ * cached stand-in the seek painted on its way out, which can be a quarter of a
241
+ * second from the frame requested, while this already reads false. A host that
242
+ * needs "is the right picture up" should compare the presented frame's own
243
+ * media time; reading a position the instant a seek resolves can return a
244
+ * frame that was never asked for.
245
+ */
246
+ readonly seeking?: boolean;
247
+ /**
248
+ * Whether a drag is open on the playhead. True from the first scrub of a
249
+ * gesture until the seek that lands it, which is what separates a viewer
250
+ * leading the picture from one waiting on it.
251
+ */
252
+ readonly scrubbing?: boolean;
177
253
  readonly detectionBuffer: DetectionBufferState;
178
254
  readonly lastFrameRenderTimings: MediaFrameRenderTimings | null;
179
255
  readonly source: MediaSourceState;
@@ -234,8 +310,10 @@ export interface MediaRendererQuality {
234
310
  /**
235
311
  * Caps render resolution relative to device pixels.
236
312
  *
237
- * Use `undefined` or a non-positive value to restore native device
238
- * resolution.
313
+ * Unset, non-finite, or non-positive takes the library's own ceiling of 2,
314
+ * which is what keeps the presentation surface, the mask rasters drawn onto
315
+ * it, and the decode under both on one pixel grid. Pass
316
+ * `window.devicePixelRatio` to rasterize at the display's full ratio.
239
317
  */
240
318
  readonly maxDevicePixelRatio?: number;
241
319
  }
@@ -1 +1 @@
1
- {"version":3,"file":"media-rendering.d.ts","sourceRoot":"","sources":["../../src/types/media-rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MA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,IAAI,CAAC;IACpD,qBAAqB,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3D,uBAAuB,IAAI,cAAc,GAAG,IAAI,CAAC;IACjD,QAAQ,IAAI,kBAAkB,CAAC;CAChC"}
@@ -5,6 +5,8 @@ export type PolylineStyleContext = AnnotationStyleContext;
5
5
  export interface PolylineDrawInstruction {
6
6
  readonly points: readonly Point[];
7
7
  readonly stroke: BoxStrokeStyle;
8
+ /** Drawn under `stroke` so the path reads over any media beneath it. */
9
+ readonly shadowStroke?: BoxStrokeStyle;
8
10
  }
9
11
  export interface PolylineStyle {
10
12
  resolve(detection: Detection, context: PolylineStyleContext): PolylineDrawInstruction | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"polyline-style.d.ts","sourceRoot":"","sources":["../../src/types/polyline-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAE1D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,oBAAoB,GAC5B,uBAAuB,GAAG,SAAS,CAAC;CACxC"}
1
+ {"version":3,"file":"polyline-style.d.ts","sourceRoot":"","sources":["../../src/types/polyline-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAE1D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,wEAAwE;IACxE,QAAQ,CAAC,YAAY,CAAC,EAAE,cAAc,CAAC;CACxC;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CACL,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,oBAAoB,GAC5B,uBAAuB,GAAG,SAAS,CAAC;CACxC"}
@@ -1,3 +1,4 @@
1
+ import type { MediaErrorKind } from "#types/media-rendering";
1
2
  /**
2
3
  * Media-session operating mode.
3
4
  *
@@ -34,12 +35,35 @@ export declare enum MediaSessionStatus {
34
35
  * Subsystem currently affecting session readiness or presentation.
35
36
  */
36
37
  export declare enum MediaSessionActivityKind {
38
+ /**
39
+ * Playback is held waiting for a producer to emit detections for the frame
40
+ * about to be shown, which is a wait on inference rather than on transfer or
41
+ * decode. `DetectionsBuffering` is the transfer of detections that already
42
+ * exist, and `PlaybackBuffering` is the wait for media bytes.
43
+ */
44
+ DetectionsAwaitingCoverage = "detectionsAwaitingCoverage",
37
45
  DetectionsBuffering = "detectionsBuffering",
38
46
  DetectionsLoading = "detectionsLoading",
39
47
  Error = "error",
40
48
  MediaNormalizing = "mediaNormalizing",
41
49
  MediaOpening = "mediaOpening",
50
+ /**
51
+ * The picture is waiting on media the source has not handed over yet, which
52
+ * is the bytes and their decode rather than anything downstream of them.
53
+ * `PlaybackBuffering` is what a transport reports once it has already
54
+ * stopped; this is reported from the read itself, including the reads a seek
55
+ * makes while the transport still reads as paused.
56
+ */
57
+ MediaSourceReading = "mediaSourceReading",
42
58
  PlaybackBuffering = "playbackBuffering",
59
+ /**
60
+ * The render-preparation gate held the picture for artifacts that never
61
+ * arrived and let it go. Nothing is blocked: the frames reaching the screen
62
+ * are the ones whose artifacts were given up on. What is waited on is
63
+ * preparation finishing another frame, which is what lets the gate hold the
64
+ * picture again; `RenderPreparing` covers the holds that are running.
65
+ */
66
+ RenderPreparationAbandoned = "renderPreparationAbandoned",
43
67
  RenderPreparing = "renderPreparing"
44
68
  }
45
69
  /**
@@ -69,6 +93,14 @@ export interface MediaSessionActivity {
69
93
  */
70
94
  readonly blockingPresentation: boolean;
71
95
  readonly detail?: string | null;
96
+ /**
97
+ * Stable failure classification when this activity reports an error.
98
+ *
99
+ * Prefer this over `errorMessage` for control flow: messages are diagnostic
100
+ * text and may name vendor internals. Absent when the reporting subsystem
101
+ * does not classify its failures.
102
+ */
103
+ readonly errorKind?: MediaErrorKind | null;
72
104
  readonly errorMessage?: string | null;
73
105
  readonly kind: MediaSessionActivityKind;
74
106
  readonly label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"session-lifecycle.d.ts","sourceRoot":"","sources":["../../src/types/session-lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oBAAY,gBAAgB;IAC1B;;;OAGG;IACH,IAAI,SAAS;IACb;;;OAGG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,oBAAY,wBAAwB;IAClC,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,KAAK,UAAU;IACf,gBAAgB,qBAAqB;IACrC,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;CACpC;AAED;;GAEG;AACH,oBAAY,0BAA0B;IACpC,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED;;;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,MAAM,MAAM,yBAAyB,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AACxE,MAAM,MAAM,4BAA4B,GAAG,MAAM,IAAI,CAAC"}
1
+ {"version":3,"file":"session-lifecycle.d.ts","sourceRoot":"","sources":["../../src/types/session-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;;GAMG;AACH,oBAAY,gBAAgB;IAC1B;;;OAGG;IACH,IAAI,SAAS;IACb;;;OAGG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,oBAAY,wBAAwB;IAClC;;;;;OAKG;IACH,0BAA0B,+BAA+B;IACzD,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,KAAK,UAAU;IACf,gBAAgB,qBAAqB;IACrC,YAAY,iBAAiB;IAC7B;;;;;;OAMG;IACH,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC;;;;;;OAMG;IACH,0BAA0B,+BAA+B;IACzD,eAAe,oBAAoB;CACpC;AAED;;GAEG;AACH,oBAAY,0BAA0B;IACpC,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CA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CAAC,EAAE,CAClB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,UAAU,EAAE,MAAM,KACf,MAAM,GAAG,MAAM,CAAC;CACjB,GACL,SAAS,EAAE,CAkCb"}
1
+ {"version":3,"file":"detection-conversions.d.ts","sourceRoot":"","sources":["../../src/utils/detection-conversions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAET,KAAK,EACL,eAAe,EACf,IAAI,EACL,MAAM,mBAAmB,CAAC;AAS3B,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,eAAe,CAYzD;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,CAExE;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,eAAe,GAC1B,UAAU,CAkBZ;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,KAAK,EAAE,EACxB,UAAU,EAAE,eAAe,GAC1B,UAAU,CA+CZ;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAI5E;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAI5E;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAMzE;AAED,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAoB7E;AAED,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,eAAe,GAC1B,SAAS,CAYX;AAED,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,eAAe,GAC1B,SAAS,CAYX;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,SAAS,SAAS,EAAE,GAC/B,SAAS,GAAG,IAAI,CA8BlB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,OAAO,GAAE;IACP,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAClB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,UAAU,EAAE,MAAM,KACf,MAAM,GAAG,MAAM,CAAC;CACjB,GACL,SAAS,EAAE,CAkCb"}
@@ -6,6 +6,11 @@ export interface DecodedDetectionMask {
6
6
  readonly data: Uint8Array;
7
7
  }
8
8
  export declare function copySortedDetectionFrames(detectionFrames: readonly DetectionFrame[] | undefined): DetectionFrame[];
9
+ /**
10
+ * One frame's deep copy, for a caller that already knows which frames it is
11
+ * keeping and only needs the ones it does not hold.
12
+ */
13
+ export declare function copyDetectionFrame(frame: DetectionFrame): DetectionFrame;
9
14
  export declare function validateDetectionFrames(detectionFrames: readonly DetectionFrame[]): void;
10
15
  export declare function filterDetectionFramesForRange(detectionFrames: readonly DetectionFrame[], startTime: number, endTime: number): DetectionFrame[];
11
16
  export declare function selectDetectionFrame(detectionFrames: readonly DetectionFrame[], mediaTime: number, options?: DetectionFrameSelectionOptions): DetectionFrame | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"detection-frames.d.ts","sourceRoot":"","sources":["../../src/utils/detection-frames.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B;AAOD,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,SAAS,cAAc,EAAE,GAAG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CA0CxE;AA2FD,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,SAAS,cAAc,EAAE,GACzC,IAAI,CA8KN;AAmED,wBAAgB,6BAA6B,CAC3C,eAAe,EAAE,SAAS,cAAc,EAAE,EAC1C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,cAAc,EAAE,CAIlB;AAED,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,SAAS,cAAc,EAAE,EAC1C,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,8BAAmC,GAC3C,cAAc,GAAG,SAAS,CAc5B;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,aAAa,GAClB,oBAAoB,CAkCtB;AAiJD,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,cAAc,EACrB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,WAOhB;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,YA4BvD;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,UA0BlE"}
@@ -28,4 +28,13 @@ export declare function computeDetectionMaskRect(mask: DetectionMask): Rect | un
28
28
  export declare function detectMaskBorders(data: Uint8Array, width: number, height: number): Uint8Array;
29
29
  export declare function extractMaskContour(data: Uint8Array, width: number, height: number): readonly Point[] | undefined;
30
30
  export declare function extractMaskRectRuns(data: Uint8Array, width: number, height: number): readonly MaskRectRun[] | undefined;
31
+ /**
32
+ * The rect runs of a compressed-RLE mask, without holding the mask's raster.
33
+ *
34
+ * A mask is the size of the whole frame, so reading a silhouette that covers a
35
+ * fraction of one percent of it otherwise costs a megabytes-wide allocation and
36
+ * a pass over every pixel. The counts carry the occupied box, so the raster and
37
+ * the pass are that box.
38
+ */
39
+ export declare function extractDetectionMaskRectRuns(mask: DetectionMask): readonly MaskRectRun[] | undefined;
31
40
  //# sourceMappingURL=detection-masks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"detection-masks.d.ts","sourceRoot":"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EAAE,GAAG,SAAS,CAiDpC"}
@@ -0,0 +1,18 @@
1
+ import type { DetectionFrameSourceVersionRange } from "#types/detection-timeline";
2
+ /**
3
+ * Slack allowed when comparing two range ends.
4
+ *
5
+ * Range bounds are computed from frame times and durations, so an end that
6
+ * should meet another exactly can miss it by a float's last bits.
7
+ */
8
+ export declare const RANGE_EPSILON_SECONDS = 0.000001;
9
+ /**
10
+ * Whether the available ranges together span the whole of `range`.
11
+ *
12
+ * Detections arrive a batch at a time, and a source that has not coalesced its
13
+ * ranges holds several that abut. Asking each range on its own whether it spans
14
+ * the window reports a window that is entirely covered as uncovered, so the
15
+ * walk below spends ranges in order and asks how far their union reaches.
16
+ */
17
+ export declare function isRangeCovered(range: DetectionFrameSourceVersionRange, availableRanges: readonly DetectionFrameSourceVersionRange[]): boolean;
18
+ //# sourceMappingURL=detection-ranges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detection-ranges.d.ts","sourceRoot":"","sources":["../../src/utils/detection-ranges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAElF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,WAAO,CAAC;AAE1C;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,gCAAgC,EACvC,eAAe,EAAE,SAAS,gCAAgC,EAAE,WA6B7D"}
@@ -1,5 +1,11 @@
1
1
  import type { MaskDrawInstruction } from "#types/mask-style";
2
- export declare const MAX_ID_MASK_PALETTE_ENTRIES = 64;
2
+ /**
3
+ * Palette slots an id raster can name, one of them the background. A GLSL
4
+ * fragment stage is guaranteed only 224 uniform vectors, and a palette entry
5
+ * costs 2.25 of them, so this stays a multiple of four and well inside that
6
+ * budget; past it a frame draws from the RGBA composite instead.
7
+ */
8
+ export declare const MAX_ID_MASK_PALETTE_ENTRIES = 80;
3
9
  export declare const MAX_ID_MASK_STROKE_WIDTH = 16;
4
10
  export interface IdMaskInstruction extends MaskDrawInstruction {
5
11
  readonly detectionIndex: number;
@@ -10,9 +16,35 @@ export interface IdMaskFrame {
10
16
  readonly hasStroke: boolean;
11
17
  readonly height: number;
12
18
  readonly maxStrokeWidth: number;
19
+ /** The frame-wide mask width every stroke on this raster is scaled against. */
20
+ readonly sourceWidth: number;
13
21
  readonly strokePalette: Float32Array<ArrayBuffer>;
14
22
  readonly strokeWidths: Float32Array<ArrayBuffer>;
15
23
  readonly width: number;
16
24
  }
17
- export declare function createIdMaskFrame(instructions: readonly IdMaskInstruction[]): IdMaskFrame | undefined;
25
+ export interface IdMaskFrameOptions {
26
+ /**
27
+ * Widest raster to cook. A value at or above the instructions' own width
28
+ * cooks at their width, and a smaller one keeps their aspect ratio.
29
+ */
30
+ readonly maxWidth?: number;
31
+ }
32
+ export declare function createIdMaskFrame(instructions: readonly IdMaskInstruction[], options?: IdMaskFrameOptions): IdMaskFrame | undefined;
33
+ /**
34
+ * A stroke is measured in texels of the raster it is drawn on, so a coarser
35
+ * raster measures it in coarser texels. A stroke of a texel or more keeps at
36
+ * least one, the thinnest line the shader can draw; a narrower one keeps its
37
+ * own width, which the shader draws as an inner boundary at any scale. The
38
+ * ceiling is the widest neighbourhood the shaders scan, so a wider stroke would
39
+ * be drawn at the ceiling anyway and every layer drawing the same annotation
40
+ * has to arrive at the same width.
41
+ */
42
+ export declare function resolveIdMaskStrokeTexels(strokeWidth: number, maskWidth: number, rasterWidth: number): number;
43
+ /**
44
+ * The palette slot a detection index names, or undefined when the palette has
45
+ * no slot for it. Slot zero is the background, so the ids start at one and the
46
+ * last detection the palette can name sits one index below the last slot.
47
+ */
48
+ export declare function resolveIdMaskPaletteId(detectionIndex: number): number | undefined;
49
+ export declare function writeIdMaskPaletteEntry(palette: Float32Array, detectionMaskId: number, color: number, alpha: number): void;
18
50
  //# sourceMappingURL=id-mask-frame.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"id-mask-frame.d.ts","sourceRoot":"","sources":["../../src/utils/id-m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,CAAC,WAAW,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAChD,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAClD,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,SAAS,iBAAiB,EAAE,EAC1C,OAAO,GAAE,kBAAuB,GAC/B,WAAW,GAAG,SAAS,CA+EzB;AAsGD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,UAQpB;AAmCD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,MAAM,sBAM5D;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,YAAY,EACrB,eAAe,EAAE,MAAM,EACvB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,QAQd"}
@@ -0,0 +1,7 @@
1
+ export interface WaitBound {
2
+ readonly cancel: () => void;
3
+ /** Resolves false once `timeoutMs` has passed, so a race reads as unmet. */
4
+ readonly expired: Promise<false>;
5
+ }
6
+ export declare function startWaitBound(timeoutMs: number): WaitBound;
7
+ //# sourceMappingURL=wait-bound.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait-bound.d.ts","sourceRoot":"","sources":["../../src/utils/wait-bound.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAClC;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAO3D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supervision",
3
- "version": "0.1.7",
3
+ "version": "0.2.0-next.1",
4
4
  "description": "Browser-native computer vision media rendering and annotation engine.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,10 +36,31 @@
36
36
  "types": "./dist/editing.d.ts",
37
37
  "import": "./dist/editing.js"
38
38
  },
39
+ "./web-video-engine": {
40
+ "types": "./dist/web-video-engine/index.d.ts",
41
+ "import": "./dist/web-video-engine/index.js",
42
+ "default": "./dist/web-video-engine/index.js"
43
+ },
44
+ "./web-video-engine/analysis": {
45
+ "types": "./dist/web-video-engine/analysis.d.ts",
46
+ "import": "./dist/web-video-engine/analysis.js",
47
+ "default": "./dist/web-video-engine/analysis.js"
48
+ },
49
+ "./web-video-engine/worker": "./dist/web-video-engine/engine.worker.js",
39
50
  "./render-preparation-worker": "./dist/mask-preparation.worker.js",
40
51
  "./detection-post-processing-worker": "./dist/tracking.worker.js"
41
52
  },
42
53
  "imports": {
54
+ "#web-video-engine": {
55
+ "types": "./dist/web-video-engine/engine.d.ts",
56
+ "import": "./dist/web-video-engine/engine.js",
57
+ "default": "./dist/web-video-engine/engine.js"
58
+ },
59
+ "#web-video-engine/analysis": {
60
+ "types": "./dist/web-video-engine/analysis.d.ts",
61
+ "import": "./dist/web-video-engine/analysis.js",
62
+ "default": "./dist/web-video-engine/analysis.js"
63
+ },
43
64
  "#editing/*": {
44
65
  "types": "./dist/editing/*.d.ts",
45
66
  "import": "./dist/editing/*.js"
@@ -98,8 +119,8 @@
98
119
  "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.test.json"
99
120
  },
100
121
  "dependencies": {
101
- "mediabunny": "^1.52.3",
102
- "pixi.js": "^8.19.0",
122
+ "mediabunny": "^1.55.5",
123
+ "pixi.js": "^8.20.1",
103
124
  "supervision-js-core": "0.0.0"
104
125
  },
105
126
  "bundleDependencies": [