@automovie/render 0.2.0 → 0.3.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.
Files changed (681) hide show
  1. package/lib/IAutoMovieCaptionEntry.d.ts +1 -28
  2. package/lib/IAutoMovieCaptionSidecar.d.ts +1 -25
  3. package/lib/IAutoMovieCapturedFrame.d.ts +1 -22
  4. package/lib/IAutoMovieGuidePassOutput.d.ts +1 -23
  5. package/lib/IAutoMoviePoseKeypointActor.d.ts +1 -36
  6. package/lib/IAutoMoviePoseKeypointFrame.d.ts +1 -25
  7. package/lib/IAutoMoviePoseKeypointSidecar.d.ts +1 -21
  8. package/lib/IAutoMovieRenderAdapters.d.ts +1 -34
  9. package/lib/IAutoMovieRenderAndSeeRequest.d.ts +1 -32
  10. package/lib/IAutoMovieRenderAndSeeResult.d.ts +1 -20
  11. package/lib/IAutoMovieRenderChunk.d.ts +1 -48
  12. package/lib/IAutoMovieRenderChunkPlan.d.ts +1 -32
  13. package/lib/IAutoMovieRenderPassManifest.d.ts +1 -21
  14. package/lib/IAutoMovieRenderReassembly.d.ts +1 -24
  15. package/lib/IAutoMovieRenderResult.d.ts +1 -39
  16. package/lib/IAutoMovieSequenceRenderAdapters.d.ts +1 -36
  17. package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +1 -36
  18. package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +1 -23
  19. package/lib/IAutoMovieSequenceRenderFrame.d.ts +1 -41
  20. package/lib/IAutoMovieSequenceRenderPlan.d.ts +1 -76
  21. package/lib/IAutoMovieSequenceRenderResult.d.ts +1 -44
  22. package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +1 -39
  23. package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +1 -39
  24. package/lib/audio/mixAutoMovieAudioPcm.d.ts +2 -39
  25. package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -1
  26. package/lib/audio/mixAutoMovieAudioPcm.mjs.map +1 -1
  27. package/lib/auditAutoMovieRenderObservation.d.ts +2 -14
  28. package/lib/auditAutoMovieRenderObservation.js.map +1 -1
  29. package/lib/auditAutoMovieRenderObservation.mjs.map +1 -1
  30. package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +1 -1
  31. package/lib/cache/createAutoMovieHttpArtifactStore.mjs.map +1 -1
  32. package/lib/caption/IAutoMovieBeatCaption.d.ts +1 -22
  33. package/lib/caption/beatCaptions.d.ts +1 -2
  34. package/lib/caption/beatCaptions.js.map +1 -1
  35. package/lib/caption/beatCaptions.mjs.map +1 -1
  36. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +1 -12
  37. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -1
  38. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.mjs.map +1 -1
  39. package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +1 -14
  40. package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -1
  41. package/lib/caption/parseAutoMovieCaptionLanguage.mjs.map +1 -1
  42. package/lib/capture/AutoMovieCaptureFolder.d.ts +3 -13
  43. package/lib/capture/AutoMovieCaptureFolder.js.map +1 -1
  44. package/lib/capture/AutoMovieCaptureFolder.mjs.map +1 -1
  45. package/lib/capture/IAutoMovieCaptureBudget.d.ts +1 -24
  46. package/lib/capture/IAutoMovieCaptureCell.d.ts +1 -33
  47. package/lib/capture/IAutoMovieCaptureComparison.d.ts +1 -75
  48. package/lib/capture/IAutoMovieCaptureDrawing.d.ts +1 -56
  49. package/lib/capture/IAutoMovieCaptureLayout.d.ts +1 -47
  50. package/lib/capture/IAutoMovieCapturePlan.d.ts +1 -30
  51. package/lib/capture/IAutoMovieCapturePlanRequest.d.ts +1 -97
  52. package/lib/capture/IAutoMovieCaptureRecord.d.ts +1 -134
  53. package/lib/capture/IAutoMovieCaptureRequestSource.d.ts +1 -36
  54. package/lib/capture/IAutoMovieCaptureResolution.d.ts +1 -20
  55. package/lib/capture/IAutoMovieCaptureSelection.d.ts +1 -23
  56. package/lib/capture/IAutoMovieCaptureStorage.d.ts +1 -76
  57. package/lib/capture/IAutoMovieCaptureSubject.d.ts +1 -81
  58. package/lib/capture/IAutoMovieCaptureTime.d.ts +1 -16
  59. package/lib/capture/IAutoMovieCaptureWindow.d.ts +1 -24
  60. package/lib/capture/compareAutoMovieCaptureRounds.d.ts +2 -23
  61. package/lib/capture/compareAutoMovieCaptureRounds.js.map +1 -1
  62. package/lib/capture/compareAutoMovieCaptureRounds.mjs.map +1 -1
  63. package/lib/capture/formatAutoMovieCapturePlanRequest.d.ts +1 -1
  64. package/lib/capture/formatAutoMovieCapturePlanRequest.js.map +1 -1
  65. package/lib/capture/formatAutoMovieCapturePlanRequest.mjs.map +1 -1
  66. package/lib/capture/markAutoMovieCaptureCell.d.ts +1 -1
  67. package/lib/capture/markAutoMovieCaptureCell.mjs.map +1 -1
  68. package/lib/capture/parseAutoMovieCapturePlanRequest.d.ts +1 -2
  69. package/lib/capture/parseAutoMovieCapturePlanRequest.js.map +1 -1
  70. package/lib/capture/parseAutoMovieCapturePlanRequest.mjs.map +1 -1
  71. package/lib/capture/planAutoMovieCapture.d.ts +2 -11
  72. package/lib/capture/planAutoMovieCapture.js.map +1 -1
  73. package/lib/capture/planAutoMovieCapture.mjs.map +1 -1
  74. package/lib/capture/planAutoMovieCaptureFrames.d.ts +2 -22
  75. package/lib/capture/planAutoMovieCaptureFrames.js.map +1 -1
  76. package/lib/capture/planAutoMovieCaptureFrames.mjs.map +1 -1
  77. package/lib/capture/planAutoMovieCaptureLayout.d.ts +2 -16
  78. package/lib/capture/planAutoMovieCaptureLayout.js.map +1 -1
  79. package/lib/capture/planAutoMovieCaptureLayout.mjs.map +1 -1
  80. package/lib/capture/planAutoMovieVideoFrames.d.ts +2 -8
  81. package/lib/capture/planAutoMovieVideoFrames.js.map +1 -1
  82. package/lib/capture/planAutoMovieVideoFrames.mjs.map +1 -1
  83. package/lib/capture/planAutoMovieVideoSceneCuts.d.ts +2 -8
  84. package/lib/capture/planAutoMovieVideoSceneCuts.js.map +1 -1
  85. package/lib/capture/planAutoMovieVideoSceneCuts.mjs.map +1 -1
  86. package/lib/capture/readAutoMovieVideoSceneCuts.d.ts +2 -6
  87. package/lib/capture/readAutoMovieVideoSceneCuts.js.map +1 -1
  88. package/lib/capture/readAutoMovieVideoSceneCuts.mjs.map +1 -1
  89. package/lib/capture/resolveAutoMovieCapturePatterns.d.ts +2 -10
  90. package/lib/capture/resolveAutoMovieCapturePatterns.js.map +1 -1
  91. package/lib/capture/resolveAutoMovieCapturePatterns.mjs.map +1 -1
  92. package/lib/capture/runAutoMovieCapture.d.ts +2 -21
  93. package/lib/capture/runAutoMovieCapture.js.map +1 -1
  94. package/lib/capture/runAutoMovieCapture.mjs.map +1 -1
  95. package/lib/capture/runAutoMovieVideoCapture.d.ts +2 -20
  96. package/lib/capture/runAutoMovieVideoCapture.js.map +1 -1
  97. package/lib/capture/runAutoMovieVideoCapture.mjs.map +1 -1
  98. package/lib/capture/scaleAutoMovieCaptureLabels.d.ts +2 -5
  99. package/lib/capture/scaleAutoMovieCaptureLabels.js.map +1 -1
  100. package/lib/capture/scaleAutoMovieCaptureLabels.mjs.map +1 -1
  101. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +2 -6
  102. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -1
  103. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.mjs.map +1 -1
  104. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +2 -14
  105. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -1
  106. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.mjs.map +1 -1
  107. package/lib/delivery/AutoMovieProductionPngRole.d.ts +1 -14
  108. package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +1 -41
  109. package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +1 -46
  110. package/lib/delivery/assertAutoMovieCaptureClock.d.ts +2 -9
  111. package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -1
  112. package/lib/delivery/assertAutoMovieCaptureClock.mjs.map +1 -1
  113. package/lib/delivery/assertProductionPngPicture.d.ts +2 -6
  114. package/lib/delivery/assertProductionPngPicture.js.map +1 -1
  115. package/lib/delivery/assertProductionPngPicture.mjs.map +1 -1
  116. package/lib/delivery/assertProductionVideoProfile.d.ts +2 -6
  117. package/lib/delivery/assertProductionVideoProfile.js.map +1 -1
  118. package/lib/delivery/assertProductionVideoProfile.mjs.map +1 -1
  119. package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +2 -35
  120. package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -1
  121. package/lib/delivery/auditAutoMovieDecodedFrames.mjs.map +1 -1
  122. package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +2 -8
  123. package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -1
  124. package/lib/delivery/auditAutoMovieEncodedPresentation.mjs.map +1 -1
  125. package/lib/delivery/planAutoMovieVideoEncoding.d.ts +2 -18
  126. package/lib/delivery/planAutoMovieVideoEncoding.js.map +1 -1
  127. package/lib/delivery/planAutoMovieVideoEncoding.mjs.map +1 -1
  128. package/lib/delivery/productionOpusDescription.d.ts +2 -6
  129. package/lib/delivery/productionOpusDescription.js.map +1 -1
  130. package/lib/delivery/productionOpusDescription.mjs.map +1 -1
  131. package/lib/delivery/resolveProductionPngProfile.d.ts +2 -7
  132. package/lib/delivery/resolveProductionPngProfile.js.map +1 -1
  133. package/lib/delivery/resolveProductionPngProfile.mjs.map +1 -1
  134. package/lib/delivery/resolveProductionVideoProfile.d.ts +2 -7
  135. package/lib/delivery/resolveProductionVideoProfile.js.map +1 -1
  136. package/lib/delivery/resolveProductionVideoProfile.mjs.map +1 -1
  137. package/lib/draw/AutoMovieDrawSession.d.ts +3 -16
  138. package/lib/draw/AutoMovieDrawSession.js.map +1 -1
  139. package/lib/draw/AutoMovieDrawSession.mjs.map +1 -1
  140. package/lib/draw/IAutoMovieDrawCall.d.ts +1 -27
  141. package/lib/draw/IAutoMovieDrawDescription.d.ts +1 -15
  142. package/lib/draw/IAutoMovieDrawFunction.d.ts +1 -3
  143. package/lib/draw/IAutoMovieDrawResult.d.ts +1 -36
  144. package/lib/draw/IAutoMovieDrawScene.d.ts +9 -2
  145. package/lib/draw/decodeAutoMovieDrawPixels.d.ts +2 -6
  146. package/lib/draw/decodeAutoMovieDrawPixels.js.map +1 -1
  147. package/lib/draw/decodeAutoMovieDrawPixels.mjs.map +1 -1
  148. package/lib/draw/describeAutoMovieDrawScene.d.ts +4 -4
  149. package/lib/draw/describeAutoMovieDrawScene.js +10 -4
  150. package/lib/draw/describeAutoMovieDrawScene.js.map +1 -1
  151. package/lib/draw/describeAutoMovieDrawScene.mjs +8 -4
  152. package/lib/draw/describeAutoMovieDrawScene.mjs.map +1 -1
  153. package/lib/draw/index.d.ts +1 -0
  154. package/lib/draw/index.js +1 -0
  155. package/lib/draw/index.js.map +1 -1
  156. package/lib/draw/index.mjs +2 -1
  157. package/lib/draw/installAutoMovieDraw.d.ts +6 -6
  158. package/lib/draw/installAutoMovieDraw.js +18 -23
  159. package/lib/draw/installAutoMovieDraw.js.map +1 -1
  160. package/lib/draw/installAutoMovieDraw.mjs +16 -23
  161. package/lib/draw/installAutoMovieDraw.mjs.map +1 -1
  162. package/lib/draw/planAutoMovieDrawCall.d.ts +1 -3
  163. package/lib/draw/planAutoMovieDrawCall.js.map +1 -1
  164. package/lib/draw/planAutoMovieDrawCall.mjs.map +1 -1
  165. package/lib/draw/renderAutoMovieDrawnVideo.d.ts +2 -12
  166. package/lib/draw/renderAutoMovieDrawnVideo.js.map +1 -1
  167. package/lib/draw/renderAutoMovieDrawnVideo.mjs.map +1 -1
  168. package/lib/draw/replaceAutoMovieDrawInspection.d.ts +24 -0
  169. package/lib/draw/replaceAutoMovieDrawInspection.js +29 -0
  170. package/lib/draw/replaceAutoMovieDrawInspection.js.map +1 -0
  171. package/lib/draw/replaceAutoMovieDrawInspection.mjs +29 -0
  172. package/lib/draw/replaceAutoMovieDrawInspection.mjs.map +1 -0
  173. package/lib/draw/stampAutoMovieDrawLegend.d.ts +2 -4
  174. package/lib/draw/stampAutoMovieDrawLegend.js.map +1 -1
  175. package/lib/draw/stampAutoMovieDrawLegend.mjs.map +1 -1
  176. package/lib/film/AutoMovieOrderedScalar.d.ts +1 -15
  177. package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +1 -28
  178. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +1 -29
  179. package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +1 -36
  180. package/lib/film/IAutoMovieProductionRenderChunk.d.ts +1 -39
  181. package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +1 -53
  182. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +1 -31
  183. package/lib/film/IAutoMovieProductionRenderTier.d.ts +1 -25
  184. package/lib/film/equalOrderedScalars.d.ts +2 -5
  185. package/lib/film/equalOrderedScalars.js.map +1 -1
  186. package/lib/film/equalOrderedScalars.mjs.map +1 -1
  187. package/lib/film/normalizeAudioAssets.d.ts +1 -1
  188. package/lib/film/normalizeAudioAssets.js.map +1 -1
  189. package/lib/film/normalizeAudioAssets.mjs.map +1 -1
  190. package/lib/film/normalizeRenderTier.d.ts +1 -1
  191. package/lib/film/normalizeRenderTier.mjs.map +1 -1
  192. package/lib/film/planProductionRenderJob.d.ts +2 -16
  193. package/lib/film/planProductionRenderJob.js.map +1 -1
  194. package/lib/film/planProductionRenderJob.mjs.map +1 -1
  195. package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +1 -2
  196. package/lib/film/resolveProductionRenderTierFrameFormat.mjs.map +1 -1
  197. package/lib/film/validWaveAudioIdentity.d.ts +1 -1
  198. package/lib/film/validWaveAudioIdentity.mjs.map +1 -1
  199. package/lib/index.mjs +8 -7
  200. package/lib/picture/AutoMovieRasterSheet.d.ts +2 -2
  201. package/lib/picture/AutoMovieRasterSheet.js.map +1 -1
  202. package/lib/picture/AutoMovieRasterSheet.mjs.map +1 -1
  203. package/lib/picture/IAutoMovieRasterComparison.d.ts +1 -33
  204. package/lib/picture/IAutoMovieRasterImage.d.ts +1 -17
  205. package/lib/picture/compareAutoMovieRasters.d.ts +1 -2
  206. package/lib/picture/compareAutoMovieRasters.js.map +1 -1
  207. package/lib/picture/compareAutoMovieRasters.mjs.map +1 -1
  208. package/lib/picture/decodeAutoMovieRasterPng.d.ts +1 -1
  209. package/lib/picture/decodeAutoMovieRasterPng.js.map +1 -1
  210. package/lib/picture/decodeAutoMovieRasterPng.mjs.map +1 -1
  211. package/lib/picture/encodeAutoMovieRasterPng.d.ts +1 -1
  212. package/lib/picture/encodeAutoMovieRasterPng.js.map +1 -1
  213. package/lib/picture/encodeAutoMovieRasterPng.mjs.map +1 -1
  214. package/lib/picture/hashAutoMovieRasterImage.d.ts +1 -1
  215. package/lib/picture/hashAutoMovieRasterImage.mjs.map +1 -1
  216. package/lib/picture/stampAutoMovieRasterLabel.d.ts +2 -5
  217. package/lib/picture/stampAutoMovieRasterLabel.js.map +1 -1
  218. package/lib/picture/stampAutoMovieRasterLabel.mjs.map +1 -1
  219. package/lib/planCaptionSidecar.d.ts +2 -8
  220. package/lib/planCaptionSidecar.js.map +1 -1
  221. package/lib/planCaptionSidecar.mjs.map +1 -1
  222. package/lib/planChunkedSequenceRender.d.ts +2 -9
  223. package/lib/planChunkedSequenceRender.js.map +1 -1
  224. package/lib/planChunkedSequenceRender.mjs.map +1 -1
  225. package/lib/planGuidePassOutputs.d.ts +2 -6
  226. package/lib/planGuidePassOutputs.js.map +1 -1
  227. package/lib/planGuidePassOutputs.mjs.map +1 -1
  228. package/lib/planPoseKeypointSidecar.d.ts +2 -12
  229. package/lib/planPoseKeypointSidecar.js.map +1 -1
  230. package/lib/planPoseKeypointSidecar.mjs.map +1 -1
  231. package/lib/planSequenceRender.d.ts +2 -9
  232. package/lib/planSequenceRender.js.map +1 -1
  233. package/lib/planSequenceRender.mjs.map +1 -1
  234. package/lib/planViewerFrameTimes.d.ts +2 -16
  235. package/lib/planViewerFrameTimes.js.map +1 -1
  236. package/lib/planViewerFrameTimes.mjs.map +1 -1
  237. package/lib/renderAndSee.d.ts +1 -2
  238. package/lib/renderAndSee.js.map +1 -1
  239. package/lib/renderAndSee.mjs.map +1 -1
  240. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +1 -41
  241. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +1 -53
  242. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +1 -27
  243. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +2 -13
  244. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -1
  245. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.mjs.map +1 -1
  246. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +2 -8
  247. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -1
  248. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.mjs.map +1 -1
  249. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +1 -1
  250. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -1
  251. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.mjs.map +1 -1
  252. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +1 -2
  253. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -1
  254. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.mjs.map +1 -1
  255. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +2 -8
  256. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -1
  257. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.mjs.map +1 -1
  258. package/lib/renderCaptionSidecar.d.ts +1 -1
  259. package/lib/renderCaptionSidecar.mjs.map +1 -1
  260. package/lib/renderPoseKeypointSidecar.d.ts +1 -1
  261. package/lib/renderPoseKeypointSidecar.mjs.map +1 -1
  262. package/lib/renderSequenceAndSee.d.ts +1 -2
  263. package/lib/renderSequenceAndSee.js.map +1 -1
  264. package/lib/renderSequenceAndSee.mjs.map +1 -1
  265. package/lib/renderSequenceVideo.d.ts +1 -3
  266. package/lib/renderSequenceVideo.js.map +1 -1
  267. package/lib/renderSequenceVideo.mjs.map +1 -1
  268. package/lib/renderVideo.d.ts +1 -3
  269. package/lib/renderVideo.js.map +1 -1
  270. package/lib/renderVideo.mjs.map +1 -1
  271. package/lib/scene/AutoMovieFilmBeautyComposition.d.ts +1 -25
  272. package/lib/scene/AutoMoviePlayer.d.ts +1 -2
  273. package/lib/scene/AutoMoviePlayer.js.map +1 -1
  274. package/lib/scene/AutoMoviePlayer.mjs.map +1 -1
  275. package/lib/scene/IApplyAutoMovieSectionPlanesProps.d.ts +1 -1
  276. package/lib/scene/IAutoMovieFilmBeautyLayer.d.ts +1 -12
  277. package/lib/scene/IAutoMovieFormationPoseTake.d.ts +1 -22
  278. package/lib/scene/IAutoMovieFormationViewerObject.d.ts +1 -2
  279. package/lib/scene/IAutoMovieRigLocalTransform.d.ts +1 -15
  280. package/lib/scene/IAutoMovieSpringAxisSettlement.d.ts +2 -2
  281. package/lib/scene/IBakeFormationCycleProps.d.ts +1 -2
  282. package/lib/scene/applyAutoMovieRigLocals.d.ts +1 -2
  283. package/lib/scene/applyAutoMovieRigLocals.js.map +1 -1
  284. package/lib/scene/applyAutoMovieRigLocals.mjs.map +1 -1
  285. package/lib/scene/applyAutoMovieSectionPlanes.mjs.map +1 -1
  286. package/lib/scene/applyFormationCycleCadence.d.ts +1 -1
  287. package/lib/scene/applyFormationCycleCadence.mjs.map +1 -1
  288. package/lib/scene/applyPose.d.ts +1 -2
  289. package/lib/scene/applyPose.js.map +1 -1
  290. package/lib/scene/applyPose.mjs.map +1 -1
  291. package/lib/scene/applyRenderMode.js.map +1 -1
  292. package/lib/scene/applyRenderMode.mjs.map +1 -1
  293. package/lib/scene/applySampledObjectMotion.d.ts +1 -1
  294. package/lib/scene/applySampledObjectMotion.mjs.map +1 -1
  295. package/lib/scene/applySemanticMaskMode.d.ts +1 -1
  296. package/lib/scene/applySemanticMaskMode.js.map +1 -1
  297. package/lib/scene/applySemanticMaskMode.mjs.map +1 -1
  298. package/lib/scene/autoMovieAnalysisRampColor.d.ts +2 -5
  299. package/lib/scene/autoMovieAnalysisRampColor.js.map +1 -1
  300. package/lib/scene/autoMovieAnalysisRampColor.mjs.map +1 -1
  301. package/lib/scene/bakeFormationCycle.d.ts +2 -1
  302. package/lib/scene/bakeFormationCycle.js +3 -2
  303. package/lib/scene/bakeFormationCycle.js.map +1 -1
  304. package/lib/scene/bakeFormationCycle.mjs +3 -2
  305. package/lib/scene/bakeFormationCycle.mjs.map +1 -1
  306. package/lib/scene/buildAutoMovieConstruction.d.ts +2 -5
  307. package/lib/scene/buildAutoMovieConstruction.js.map +1 -1
  308. package/lib/scene/buildAutoMovieConstruction.mjs.map +1 -1
  309. package/lib/scene/buildGeometry.d.ts +1 -1
  310. package/lib/scene/buildGeometry.js.map +1 -1
  311. package/lib/scene/buildGeometry.mjs.map +1 -1
  312. package/lib/scene/buildInstancedEffect.js.map +1 -1
  313. package/lib/scene/buildInstancedEffect.mjs.map +1 -1
  314. package/lib/scene/buildInstancedFormation.js.map +1 -1
  315. package/lib/scene/buildInstancedFormation.mjs.map +1 -1
  316. package/lib/scene/buildSpaceObject.js.map +1 -1
  317. package/lib/scene/buildSpaceObject.mjs.map +1 -1
  318. package/lib/scene/createAutoMoviePhysicalPoseAdapter.d.ts +2 -2
  319. package/lib/scene/createAutoMoviePhysicalPoseAdapter.js.map +1 -1
  320. package/lib/scene/createAutoMoviePhysicalPoseAdapter.mjs.map +1 -1
  321. package/lib/scene/describeFormationTextureSources.d.ts +1 -2
  322. package/lib/scene/describeFormationTextureSources.mjs.map +1 -1
  323. package/lib/scene/formation/index.d.ts +1 -1
  324. package/lib/scene/formationCycleCadence.d.ts +1 -1
  325. package/lib/scene/formationCycleCadence.mjs.map +1 -1
  326. package/lib/scene/human-polygon/AutoMovieHumanPolygon.d.ts +7 -57
  327. package/lib/scene/human-polygon/applyHumanPolygonPose.d.ts +2 -2
  328. package/lib/scene/human-polygon/applyHumanPolygonPose.js.map +1 -1
  329. package/lib/scene/human-polygon/applyHumanPolygonPose.mjs.map +1 -1
  330. package/lib/scene/human-polygon/buildHumanPolygon.d.ts +2 -1
  331. package/lib/scene/human-polygon/buildHumanPolygon.js.map +1 -1
  332. package/lib/scene/human-polygon/buildHumanPolygon.mjs.map +1 -1
  333. package/lib/scene/human-polygon/buildHumanPolygonModule.d.ts +2 -2
  334. package/lib/scene/human-polygon/buildHumanPolygonModule.js.map +1 -1
  335. package/lib/scene/human-polygon/buildHumanPolygonModule.mjs.map +1 -1
  336. package/lib/scene/human-polygon/buildHumanPolygonParts.d.ts +2 -2
  337. package/lib/scene/human-polygon/buildHumanPolygonParts.js.map +1 -1
  338. package/lib/scene/human-polygon/buildHumanPolygonParts.mjs.map +1 -1
  339. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +3 -2
  340. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -1
  341. package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.mjs.map +1 -1
  342. package/lib/scene/index.d.ts +1 -1
  343. package/lib/scene/index.js +0 -1
  344. package/lib/scene/index.js.map +1 -1
  345. package/lib/scene/index.mjs +6 -6
  346. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.d.ts +2 -4
  347. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.js.map +1 -1
  348. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs.map +1 -1
  349. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.d.ts +1 -1
  350. package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.mjs.map +1 -1
  351. package/lib/scene/inspection/IApplyAutoMovieInspectionProps.d.ts +2 -3
  352. package/lib/scene/inspection/IAutoMovieInspectionCamera.d.ts +1 -29
  353. package/lib/scene/inspection/IAutoMovieInspectionHandle.d.ts +3 -6
  354. package/lib/scene/inspection/IAutoMovieInspectionKind.d.ts +1 -16
  355. package/lib/scene/inspection/IAutoMovieInspectionLabel.d.ts +1 -18
  356. package/lib/scene/inspection/IAutoMovieInspectionLegendEntry.d.ts +1 -22
  357. package/lib/scene/inspection/IAutoMovieInspectionMarkSet.d.ts +1 -1
  358. package/lib/scene/inspection/IAutoMovieInspectionMeasured.d.ts +1 -1
  359. package/lib/scene/inspection/IAutoMovieInspectionRequest.d.ts +1 -99
  360. package/lib/scene/inspection/IAutoMovieInspectionTrail.d.ts +1 -18
  361. package/lib/scene/inspection/IAutoMovieInspectionView.d.ts +1 -80
  362. package/lib/scene/inspection/applyAutoMovieInspection.js.map +1 -1
  363. package/lib/scene/inspection/applyAutoMovieInspection.mjs.map +1 -1
  364. package/lib/scene/inspection/applyAutoMovieInspectionSection.d.ts +1 -1
  365. package/lib/scene/inspection/applyAutoMovieInspectionSection.mjs.map +1 -1
  366. package/lib/scene/inspection/applyAutoMovieInspectionShade.d.ts +2 -2
  367. package/lib/scene/inspection/applyAutoMovieInspectionShade.js.map +1 -1
  368. package/lib/scene/inspection/applyAutoMovieInspectionShade.mjs.map +1 -1
  369. package/lib/scene/inspection/buildAutoMovieInspectionMarks.mjs.map +1 -1
  370. package/lib/scene/inspection/chooseAutoMovieInspectionMarks.d.ts +1 -1
  371. package/lib/scene/inspection/chooseAutoMovieInspectionMarks.mjs.map +1 -1
  372. package/lib/scene/inspection/colorAutoMovieInspectionObjects.d.ts +3 -3
  373. package/lib/scene/inspection/colorAutoMovieInspectionObjects.js.map +1 -1
  374. package/lib/scene/inspection/colorAutoMovieInspectionObjects.mjs.map +1 -1
  375. package/lib/scene/inspection/expandAutoMovieInspectionSweep.d.ts +2 -17
  376. package/lib/scene/inspection/expandAutoMovieInspectionSweep.js.map +1 -1
  377. package/lib/scene/inspection/expandAutoMovieInspectionSweep.mjs.map +1 -1
  378. package/lib/scene/inspection/focusAutoMovieInspection.d.ts +2 -3
  379. package/lib/scene/inspection/focusAutoMovieInspection.js.map +1 -1
  380. package/lib/scene/inspection/focusAutoMovieInspection.mjs.map +1 -1
  381. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.d.ts +1 -1
  382. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.js.map +1 -1
  383. package/lib/scene/inspection/formatAutoMovieInspectionCameraView.mjs.map +1 -1
  384. package/lib/scene/inspection/formatAutoMovieInspectionRequest.d.ts +1 -1
  385. package/lib/scene/inspection/formatAutoMovieInspectionRequest.js.map +1 -1
  386. package/lib/scene/inspection/formatAutoMovieInspectionRequest.mjs.map +1 -1
  387. package/lib/scene/inspection/formatAutoMovieInspectionView.d.ts +1 -1
  388. package/lib/scene/inspection/formatAutoMovieInspectionView.js.map +1 -1
  389. package/lib/scene/inspection/formatAutoMovieInspectionView.mjs.map +1 -1
  390. package/lib/scene/inspection/legendAutoMovieInspectionMarks.d.ts +2 -6
  391. package/lib/scene/inspection/legendAutoMovieInspectionMarks.js.map +1 -1
  392. package/lib/scene/inspection/legendAutoMovieInspectionMarks.mjs.map +1 -1
  393. package/lib/scene/inspection/listAutoMovieInspectionKinds.d.ts +2 -9
  394. package/lib/scene/inspection/listAutoMovieInspectionKinds.js.map +1 -1
  395. package/lib/scene/inspection/listAutoMovieInspectionKinds.mjs.map +1 -1
  396. package/lib/scene/inspection/markAutoMovieInspectionTrails.d.ts +1 -2
  397. package/lib/scene/inspection/markAutoMovieInspectionTrails.js.map +1 -1
  398. package/lib/scene/inspection/markAutoMovieInspectionTrails.mjs.map +1 -1
  399. package/lib/scene/inspection/measureAutoMovieInspectionDefects.d.ts +1 -1
  400. package/lib/scene/inspection/measureAutoMovieInspectionDefects.js.map +1 -1
  401. package/lib/scene/inspection/measureAutoMovieInspectionDefects.mjs.map +1 -1
  402. package/lib/scene/inspection/measureAutoMovieInspectionEdges.mjs.map +1 -1
  403. package/lib/scene/inspection/measureAutoMovieInspectionMeshes.d.ts +1 -1
  404. package/lib/scene/inspection/measureAutoMovieInspectionMeshes.mjs.map +1 -1
  405. package/lib/scene/inspection/measureAutoMovieInspectionPaths.d.ts +2 -7
  406. package/lib/scene/inspection/measureAutoMovieInspectionPaths.js.map +1 -1
  407. package/lib/scene/inspection/measureAutoMovieInspectionPaths.mjs.map +1 -1
  408. package/lib/scene/inspection/mergeAutoMovieInspectionLegends.d.ts +1 -1
  409. package/lib/scene/inspection/mergeAutoMovieInspectionLegends.mjs.map +1 -1
  410. package/lib/scene/inspection/parseAutoMovieInspectionRequest.d.ts +1 -1
  411. package/lib/scene/inspection/parseAutoMovieInspectionRequest.js.map +1 -1
  412. package/lib/scene/inspection/parseAutoMovieInspectionRequest.mjs.map +1 -1
  413. package/lib/scene/inspection/parseAutoMovieInspectionView.d.ts +1 -1
  414. package/lib/scene/inspection/parseAutoMovieInspectionView.js.map +1 -1
  415. package/lib/scene/inspection/parseAutoMovieInspectionView.mjs.map +1 -1
  416. package/lib/scene/inspection/placeAutoMovieInspectionLabels.d.ts +2 -6
  417. package/lib/scene/inspection/placeAutoMovieInspectionLabels.js.map +1 -1
  418. package/lib/scene/inspection/placeAutoMovieInspectionLabels.mjs.map +1 -1
  419. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.d.ts +2 -9
  420. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.js.map +1 -1
  421. package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.mjs.map +1 -1
  422. package/lib/scene/inspection/resolveAutoMovieInspectionColors.d.ts +2 -18
  423. package/lib/scene/inspection/resolveAutoMovieInspectionColors.js.map +1 -1
  424. package/lib/scene/inspection/resolveAutoMovieInspectionColors.mjs.map +1 -1
  425. package/lib/scene/inspection/resolveAutoMovieInspectionView.d.ts +1 -2
  426. package/lib/scene/inspection/resolveAutoMovieInspectionView.js.map +1 -1
  427. package/lib/scene/inspection/resolveAutoMovieInspectionView.mjs.map +1 -1
  428. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.d.ts +1 -1
  429. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.js.map +1 -1
  430. package/lib/scene/inspection/sampleAutoMovieInspectionTrails.mjs.map +1 -1
  431. package/lib/scene/matchesAutoMovieShadowTextureProfile.d.ts +1 -1
  432. package/lib/scene/matchesAutoMovieShadowTextureProfile.mjs.map +1 -1
  433. package/lib/scene/observeAutoMovieRendererFrame.d.ts +2 -5
  434. package/lib/scene/observeAutoMovieRendererFrame.js.map +1 -1
  435. package/lib/scene/observeAutoMovieRendererFrame.mjs.map +1 -1
  436. package/lib/scene/planAutoMovieShadowTextureTarget.d.ts +1 -1
  437. package/lib/scene/planAutoMovieShadowTextureTarget.mjs.map +1 -1
  438. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.d.ts +2 -6
  439. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.js.map +1 -1
  440. package/lib/scene/readAutoMovieFilmDisplayTextureResidency.mjs.map +1 -1
  441. package/lib/scene/readAutoMovieMaterialTextureSources.d.ts +3 -5
  442. package/lib/scene/readAutoMovieMaterialTextureSources.js.map +1 -1
  443. package/lib/scene/readAutoMovieMaterialTextureSources.mjs.map +1 -1
  444. package/lib/scene/readAutoMovieRenderTextureTarget.d.ts +1 -1
  445. package/lib/scene/readAutoMovieRenderTextureTarget.mjs.map +1 -1
  446. package/lib/scene/readAutoMovieShadowTextureTargets.d.ts +1 -2
  447. package/lib/scene/readAutoMovieShadowTextureTargets.js.map +1 -1
  448. package/lib/scene/readAutoMovieShadowTextureTargets.mjs.map +1 -1
  449. package/lib/scene/readAutoMovieTextureSource.d.ts +1 -1
  450. package/lib/scene/readAutoMovieTextureSource.js.map +1 -1
  451. package/lib/scene/readAutoMovieTextureSource.mjs.map +1 -1
  452. package/lib/scene/readAutoMovieTransmissionTextureTarget.d.ts +1 -1
  453. package/lib/scene/readAutoMovieTransmissionTextureTarget.mjs.map +1 -1
  454. package/lib/scene/resolveAutoMovieFilmBeautyComposition.d.ts +2 -3
  455. package/lib/scene/resolveAutoMovieFilmBeautyComposition.js.map +1 -1
  456. package/lib/scene/resolveAutoMovieFilmBeautyComposition.mjs.map +1 -1
  457. package/lib/scene/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +1 -19
  458. package/lib/scene/semanticMask/attachAutoMovieSemanticMask.d.ts +1 -1
  459. package/lib/scene/semanticMask/attachAutoMovieSemanticMask.mjs.map +1 -1
  460. package/lib/scene/semanticMask/autoMovieSemanticMaskOf.d.ts +1 -1
  461. package/lib/scene/semanticMask/autoMovieSemanticMaskOf.mjs.map +1 -1
  462. package/lib/sliceCaptionSidecar.d.ts +1 -1
  463. package/lib/sliceCaptionSidecar.mjs.map +1 -1
  464. package/package.json +7 -7
  465. package/src/IAutoMovieCaptionEntry.ts +1 -32
  466. package/src/IAutoMovieCaptionSidecar.ts +1 -29
  467. package/src/IAutoMovieCapturedFrame.ts +1 -24
  468. package/src/IAutoMovieGuidePassOutput.ts +1 -27
  469. package/src/IAutoMoviePoseKeypointActor.ts +1 -39
  470. package/src/IAutoMoviePoseKeypointFrame.ts +1 -28
  471. package/src/IAutoMoviePoseKeypointSidecar.ts +1 -25
  472. package/src/IAutoMovieRenderAdapters.ts +1 -39
  473. package/src/IAutoMovieRenderAndSeeRequest.ts +1 -38
  474. package/src/IAutoMovieRenderAndSeeResult.ts +1 -23
  475. package/src/IAutoMovieRenderChunk.ts +1 -62
  476. package/src/IAutoMovieRenderChunkPlan.ts +1 -40
  477. package/src/IAutoMovieRenderPassManifest.ts +1 -25
  478. package/src/IAutoMovieRenderReassembly.ts +1 -28
  479. package/src/IAutoMovieRenderResult.ts +1 -46
  480. package/src/IAutoMovieSequenceRenderAdapters.ts +1 -41
  481. package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +1 -47
  482. package/src/IAutoMovieSequenceRenderAndSeeResult.ts +1 -23
  483. package/src/IAutoMovieSequenceRenderFrame.ts +1 -48
  484. package/src/IAutoMovieSequenceRenderPlan.ts +1 -88
  485. package/src/IAutoMovieSequenceRenderResult.ts +1 -52
  486. package/src/IAutoMovieSequenceRenderShotSpan.ts +1 -46
  487. package/src/IAutoMovieSequenceRenderTransitionSpan.ts +1 -46
  488. package/src/audio/mixAutoMovieAudioPcm.ts +10 -44
  489. package/src/auditAutoMovieRenderObservation.ts +5 -14
  490. package/src/cache/createAutoMovieHttpArtifactStore.ts +1 -1
  491. package/src/caption/IAutoMovieBeatCaption.ts +1 -23
  492. package/src/caption/beatCaptions.ts +1 -1
  493. package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +1 -12
  494. package/src/caption/parseAutoMovieCaptionLanguage.ts +1 -13
  495. package/src/capture/AutoMovieCaptureFolder.ts +10 -16
  496. package/src/capture/IAutoMovieCaptureBudget.ts +1 -26
  497. package/src/capture/IAutoMovieCaptureCell.ts +1 -42
  498. package/src/capture/IAutoMovieCaptureComparison.ts +1 -96
  499. package/src/capture/IAutoMovieCaptureDrawing.ts +1 -64
  500. package/src/capture/IAutoMovieCaptureLayout.ts +1 -51
  501. package/src/capture/IAutoMovieCapturePlan.ts +1 -36
  502. package/src/capture/IAutoMovieCapturePlanRequest.ts +1 -117
  503. package/src/capture/IAutoMovieCaptureRecord.ts +1 -174
  504. package/src/capture/IAutoMovieCaptureRequestSource.ts +1 -37
  505. package/src/capture/IAutoMovieCaptureResolution.ts +1 -23
  506. package/src/capture/IAutoMovieCaptureSelection.ts +1 -28
  507. package/src/capture/IAutoMovieCaptureStorage.ts +1 -76
  508. package/src/capture/IAutoMovieCaptureSubject.ts +1 -94
  509. package/src/capture/IAutoMovieCaptureTime.ts +1 -17
  510. package/src/capture/IAutoMovieCaptureWindow.ts +1 -29
  511. package/src/capture/compareAutoMovieCaptureRounds.ts +33 -48
  512. package/src/capture/formatAutoMovieCapturePlanRequest.ts +7 -3
  513. package/src/capture/markAutoMovieCaptureCell.ts +1 -1
  514. package/src/capture/parseAutoMovieCapturePlanRequest.ts +13 -10
  515. package/src/capture/planAutoMovieCapture.ts +20 -21
  516. package/src/capture/planAutoMovieCaptureFrames.ts +9 -28
  517. package/src/capture/planAutoMovieCaptureLayout.ts +8 -21
  518. package/src/capture/planAutoMovieVideoFrames.ts +5 -10
  519. package/src/capture/planAutoMovieVideoSceneCuts.ts +5 -10
  520. package/src/capture/readAutoMovieVideoSceneCuts.ts +5 -7
  521. package/src/capture/resolveAutoMovieCapturePatterns.ts +11 -14
  522. package/src/capture/runAutoMovieCapture.ts +19 -33
  523. package/src/capture/runAutoMovieVideoCapture.ts +13 -32
  524. package/src/capture/scaleAutoMovieCaptureLabels.ts +5 -2
  525. package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +5 -6
  526. package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +17 -27
  527. package/src/delivery/AutoMovieProductionPngRole.ts +1 -18
  528. package/src/delivery/IAutoMovieProductionPngProfile.ts +1 -52
  529. package/src/delivery/IAutoMovieProductionVideoProfile.ts +1 -48
  530. package/src/delivery/assertAutoMovieCaptureClock.ts +7 -7
  531. package/src/delivery/assertProductionPngPicture.ts +8 -13
  532. package/src/delivery/assertProductionVideoProfile.ts +5 -12
  533. package/src/delivery/auditAutoMovieDecodedFrames.ts +17 -56
  534. package/src/delivery/auditAutoMovieEncodedPresentation.ts +3 -8
  535. package/src/delivery/planAutoMovieVideoEncoding.ts +8 -23
  536. package/src/delivery/productionOpusDescription.ts +9 -15
  537. package/src/delivery/resolveProductionPngProfile.ts +9 -17
  538. package/src/delivery/resolveProductionVideoProfile.ts +9 -16
  539. package/src/draw/AutoMovieDrawSession.ts +19 -18
  540. package/src/draw/IAutoMovieDrawCall.ts +1 -34
  541. package/src/draw/IAutoMovieDrawDescription.ts +1 -17
  542. package/src/draw/IAutoMovieDrawFunction.ts +5 -3
  543. package/src/draw/IAutoMovieDrawResult.ts +1 -45
  544. package/src/draw/IAutoMovieDrawScene.ts +10 -2
  545. package/src/draw/decodeAutoMovieDrawPixels.ts +5 -3
  546. package/src/draw/describeAutoMovieDrawScene.ts +18 -11
  547. package/src/draw/index.ts +1 -0
  548. package/src/draw/installAutoMovieDraw.ts +43 -45
  549. package/src/draw/planAutoMovieDrawCall.ts +8 -5
  550. package/src/draw/renderAutoMovieDrawnVideo.ts +6 -9
  551. package/src/draw/replaceAutoMovieDrawInspection.ts +36 -0
  552. package/src/draw/stampAutoMovieDrawLegend.ts +7 -5
  553. package/src/film/AutoMovieOrderedScalar.ts +1 -15
  554. package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +1 -40
  555. package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +1 -34
  556. package/src/film/IAutoMovieProductionEncoderIdentity.ts +1 -42
  557. package/src/film/IAutoMovieProductionRenderChunk.ts +1 -47
  558. package/src/film/IAutoMovieProductionRenderJobPlan.ts +1 -73
  559. package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +1 -37
  560. package/src/film/IAutoMovieProductionRenderTier.ts +1 -27
  561. package/src/film/equalOrderedScalars.ts +10 -10
  562. package/src/film/normalizeAudioAssets.ts +4 -2
  563. package/src/film/normalizeRenderTier.ts +1 -1
  564. package/src/film/planProductionRenderJob.ts +11 -48
  565. package/src/film/resolveProductionRenderTierFrameFormat.ts +1 -1
  566. package/src/film/validWaveAudioIdentity.ts +3 -3
  567. package/src/picture/AutoMovieRasterSheet.ts +7 -3
  568. package/src/picture/IAutoMovieRasterComparison.ts +1 -33
  569. package/src/picture/IAutoMovieRasterImage.ts +1 -19
  570. package/src/picture/compareAutoMovieRasters.ts +4 -2
  571. package/src/picture/decodeAutoMovieRasterPng.ts +2 -1
  572. package/src/picture/encodeAutoMovieRasterPng.ts +2 -1
  573. package/src/picture/hashAutoMovieRasterImage.ts +1 -1
  574. package/src/picture/stampAutoMovieRasterLabel.ts +5 -2
  575. package/src/planCaptionSidecar.ts +11 -30
  576. package/src/planChunkedSequenceRender.ts +15 -26
  577. package/src/planGuidePassOutputs.ts +10 -16
  578. package/src/planPoseKeypointSidecar.ts +11 -40
  579. package/src/planSequenceRender.ts +11 -32
  580. package/src/planViewerFrameTimes.ts +5 -22
  581. package/src/renderAndSee.ts +5 -2
  582. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +1 -53
  583. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +1 -61
  584. package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +1 -29
  585. package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +9 -37
  586. package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +11 -15
  587. package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +2 -3
  588. package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +4 -3
  589. package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +7 -19
  590. package/src/renderCaptionSidecar.ts +1 -1
  591. package/src/renderPoseKeypointSidecar.ts +1 -1
  592. package/src/renderSequenceAndSee.ts +5 -2
  593. package/src/renderSequenceVideo.ts +6 -4
  594. package/src/renderVideo.ts +5 -3
  595. package/src/scene/AutoMovieFilmBeautyComposition.ts +1 -24
  596. package/src/scene/AutoMoviePlayer.ts +12 -12
  597. package/src/scene/IApplyAutoMovieSectionPlanesProps.ts +1 -1
  598. package/src/scene/IAutoMovieFilmBeautyLayer.ts +1 -12
  599. package/src/scene/IAutoMovieFormationPoseTake.ts +1 -26
  600. package/src/scene/IAutoMovieFormationViewerObject.ts +4 -2
  601. package/src/scene/IAutoMovieRigLocalTransform.ts +1 -16
  602. package/src/scene/IAutoMovieSpringAxisSettlement.ts +2 -2
  603. package/src/scene/IBakeFormationCycleProps.ts +4 -2
  604. package/src/scene/applyAutoMovieRigLocals.ts +4 -2
  605. package/src/scene/applyAutoMovieSectionPlanes.ts +1 -1
  606. package/src/scene/applyFormationCycleCadence.ts +1 -1
  607. package/src/scene/applyPose.ts +2 -5
  608. package/src/scene/applyRenderMode.ts +5 -5
  609. package/src/scene/applySampledObjectMotion.ts +1 -1
  610. package/src/scene/applySemanticMaskMode.ts +1 -1
  611. package/src/scene/autoMovieAnalysisRampColor.ts +7 -5
  612. package/src/scene/bakeFormationCycle.ts +4 -3
  613. package/src/scene/buildAutoMovieConstruction.ts +2 -5
  614. package/src/scene/buildGeometry.ts +6 -9
  615. package/src/scene/buildInstancedEffect.ts +6 -6
  616. package/src/scene/buildInstancedFormation.ts +3 -3
  617. package/src/scene/buildSpaceObject.ts +7 -3
  618. package/src/scene/createAutoMoviePhysicalPoseAdapter.ts +4 -4
  619. package/src/scene/describeFormationTextureSources.ts +2 -2
  620. package/src/scene/formation/index.ts +1 -1
  621. package/src/scene/formationCycleCadence.ts +1 -1
  622. package/src/scene/human-polygon/AutoMovieHumanPolygon.ts +7 -67
  623. package/src/scene/human-polygon/applyHumanPolygonPose.ts +12 -7
  624. package/src/scene/human-polygon/buildHumanPolygon.ts +23 -12
  625. package/src/scene/human-polygon/buildHumanPolygonModule.ts +6 -3
  626. package/src/scene/human-polygon/buildHumanPolygonParts.ts +10 -6
  627. package/src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts +10 -3
  628. package/src/scene/index.ts +1 -1
  629. package/src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts +3 -1
  630. package/src/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.ts +1 -1
  631. package/src/scene/inspection/IApplyAutoMovieInspectionProps.ts +5 -3
  632. package/src/scene/inspection/IAutoMovieInspectionCamera.ts +1 -38
  633. package/src/scene/inspection/IAutoMovieInspectionHandle.ts +8 -6
  634. package/src/scene/inspection/IAutoMovieInspectionKind.ts +1 -18
  635. package/src/scene/inspection/IAutoMovieInspectionLabel.ts +1 -21
  636. package/src/scene/inspection/IAutoMovieInspectionLegendEntry.ts +1 -24
  637. package/src/scene/inspection/IAutoMovieInspectionMarkSet.ts +1 -1
  638. package/src/scene/inspection/IAutoMovieInspectionMeasured.ts +1 -1
  639. package/src/scene/inspection/IAutoMovieInspectionRequest.ts +1 -115
  640. package/src/scene/inspection/IAutoMovieInspectionTrail.ts +1 -21
  641. package/src/scene/inspection/IAutoMovieInspectionView.ts +1 -92
  642. package/src/scene/inspection/applyAutoMovieInspection.ts +12 -8
  643. package/src/scene/inspection/applyAutoMovieInspectionSection.ts +1 -1
  644. package/src/scene/inspection/applyAutoMovieInspectionShade.ts +2 -2
  645. package/src/scene/inspection/buildAutoMovieInspectionMarks.ts +1 -1
  646. package/src/scene/inspection/chooseAutoMovieInspectionMarks.ts +1 -1
  647. package/src/scene/inspection/colorAutoMovieInspectionObjects.ts +6 -3
  648. package/src/scene/inspection/expandAutoMovieInspectionSweep.ts +8 -15
  649. package/src/scene/inspection/focusAutoMovieInspection.ts +6 -4
  650. package/src/scene/inspection/formatAutoMovieInspectionCameraView.ts +2 -1
  651. package/src/scene/inspection/formatAutoMovieInspectionRequest.ts +6 -3
  652. package/src/scene/inspection/formatAutoMovieInspectionView.ts +4 -3
  653. package/src/scene/inspection/legendAutoMovieInspectionMarks.ts +6 -3
  654. package/src/scene/inspection/listAutoMovieInspectionKinds.ts +7 -10
  655. package/src/scene/inspection/markAutoMovieInspectionTrails.ts +4 -2
  656. package/src/scene/inspection/measureAutoMovieInspectionDefects.ts +5 -5
  657. package/src/scene/inspection/measureAutoMovieInspectionEdges.ts +1 -1
  658. package/src/scene/inspection/measureAutoMovieInspectionMeshes.ts +1 -1
  659. package/src/scene/inspection/measureAutoMovieInspectionPaths.ts +6 -3
  660. package/src/scene/inspection/mergeAutoMovieInspectionLegends.ts +1 -1
  661. package/src/scene/inspection/parseAutoMovieInspectionRequest.ts +10 -7
  662. package/src/scene/inspection/parseAutoMovieInspectionView.ts +6 -4
  663. package/src/scene/inspection/placeAutoMovieInspectionLabels.ts +6 -7
  664. package/src/scene/inspection/planAutoMovieInspectionTrailTimes.ts +4 -11
  665. package/src/scene/inspection/resolveAutoMovieInspectionColors.ts +7 -11
  666. package/src/scene/inspection/resolveAutoMovieInspectionView.ts +5 -3
  667. package/src/scene/inspection/sampleAutoMovieInspectionTrails.ts +1 -1
  668. package/src/scene/matchesAutoMovieShadowTextureProfile.ts +1 -1
  669. package/src/scene/observeAutoMovieRendererFrame.ts +3 -3
  670. package/src/scene/planAutoMovieShadowTextureTarget.ts +1 -1
  671. package/src/scene/readAutoMovieFilmDisplayTextureResidency.ts +3 -12
  672. package/src/scene/readAutoMovieMaterialTextureSources.ts +5 -3
  673. package/src/scene/readAutoMovieRenderTextureTarget.ts +1 -1
  674. package/src/scene/readAutoMovieShadowTextureTargets.ts +5 -5
  675. package/src/scene/readAutoMovieTextureSource.ts +4 -2
  676. package/src/scene/readAutoMovieTransmissionTextureTarget.ts +1 -1
  677. package/src/scene/resolveAutoMovieFilmBeautyComposition.ts +6 -4
  678. package/src/scene/semanticMask/IAutoMovieSemanticMaskBinding.ts +1 -24
  679. package/src/scene/semanticMask/attachAutoMovieSemanticMask.ts +1 -1
  680. package/src/scene/semanticMask/autoMovieSemanticMaskOf.ts +1 -1
  681. package/src/sliceCaptionSidecar.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"planAutoMovieCaptureLayout.js","sourceRoot":"","sources":["../../src/capture/planAutoMovieCaptureLayout.ts"],"names":[],"mappings":";;;AAAA,gFAA0E;AAI1E,kHAAkH;AAClH,MAAM,OAAO,GAAW,IAAI,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,oCAA2C,KAkB1C;IACC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC/C,KAAK,MA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E,KAAK,EAAE,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,2GAA2G;IAC3G,IAAI,IAAI,KAAK,IAAI;QACf,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC;YAC5D,MAAM,EAAE,IAAI,CAAC,IAAI;SAClB;QACD,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM;QAChC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,QAAQ;QACR,MAAM;QACN,SAAS,EAAE,MAAM,CAAC,SAAS;KAC5B,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"planAutoMovieCaptureLayout.mjs","names":[],"sources":["../../src/capture/planAutoMovieCaptureLayout.ts"],"sourcesContent":["import { AutoMovieRasterSheet } from \"../picture/AutoMovieRasterSheet.js\";\nimport type { IAutoMovieCaptureBudget } from \"./IAutoMovieCaptureBudget.js\";\nimport type { IAutoMovieCaptureLayout } from \"./IAutoMovieCaptureLayout.js\";\n\n/** Slack for the rounding of a pixel size that is a whole number in exact arithmetic, such as 720 × 200 / 720. */\nconst EPSILON: number = 1e-9;\n\n/**\n * Lay out a capture's cells on contact sheets for a stated reader: every sheet's longest edge within `budget.longest`, every cell's shorter edge at least `budget.smallest`, and the cells as large as those two bounds allow. Each cell's caption strip is reserved under it and counted against the longest edge, never taken from the cell: it holds as many lines as the longest of `captions` wraps to at the cell's width, by `AutoMovieRasterSheet.lines`, at the height `AutoMovieRasterSheet.caption` gives, so every caption keeps every word that identifies its cell.\n *\n * A cell keeps the still's proportions, so a portrait still gives upright cells, and never enlarges the still. The smallest cell decides how many cells one sheet can hold; when the cells do not fit one sheet they are spread evenly over as few sheets as hold them. Cells come in groups of `group`, such as the views and passes of one instant: when a group fits a row, a sheet holds whole groups and its column count is a multiple of the group, so each row starts a new group and no group is split between sheets. Among the grids that hold a sheet's cells, the one giving the largest cell wins, ties going to the grid with fewer empty cells, then to the one with fewer rows. A still so elongated that one smallest cell exceeds the longest edge is shrunk to fit it, the one case where a cell falls under `smallest`, because a reader would downsize a larger sheet anyway.\n *\n * It throws for a raster, count or group that is not a positive whole number.\n *\n * ```ts\n * planAutoMovieCaptureLayout({ width: 1280, height: 720, count: 50, group: 1, budget: { longest: 1568, smallest: 200, reduction: \"area\" }, captions: [\"f30 1.000s\"] });\n * // cells of 366 x 206 with an 18 px caption strip, in 4 columns of 7 rows, 25 per sheet on 2 sheets\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States both bounds, the proportion and no-enlargement rules, how cells and groups are spread over sheets, which grid wins, the one case that breaks the smallest edge and why, and the refusal.\n * @evidence contracts/development/implementation.md#principled-implementation A sheet holds at most floor(longest / smallest-cell-width) by floor(longest / (smallest-cell-height + its caption strip)) cells, so the strip never pushes a cell under the smallest edge; spreading the count evenly over the fewest such sheets and then choosing the grid by its cell, the tallest whose width fits longest / columns and whose height with its strip fits longest / rows, maximises the cell size within both bounds. The strip's height changes with the cell in steps, its scale with the height and its line count with the width, so the cell is lowered pixel by pixel from the lower of the width-bound height and the row's share until cell and strip fit; the first fit is the largest cell, and the smallest cell's fit, counted with its own strip in the rows a sheet holds, bounds the search. The smallest cell's sides are rounded up, so a grid that fits it keeps the shorter edge at `smallest`, and the chosen cell's sides are floored, so the sheet never exceeds the longest edge; both allow `1e-9` for floating-point error in a size that is whole in exact arithmetic.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Size the smallest cell, count sheets in whole groups, then one search over column counts.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No cell size, column count or sheet size is fixed: every number comes from the budget, the raster and the group.\n * @evidence contracts/development/implementation.md#efficient-algorithms The search tries at most one grid per column count, bounded by `longest / smallest`, with lowering steps down to at most the smallest cell, each step wrapping the captions; work is linear in the captions' total length per step and independent of the still's pixels.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of its arguments.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns one small record and keeps nothing.\n */\nexport function planAutoMovieCaptureLayout(props: {\n /** Still width in pixels. */\n width: number;\n\n /** Still height in pixels. */\n height: number;\n\n /** Number of cells, at least one. */\n count: number;\n\n /** Cells that belong together in a row, such as the views and passes of one instant, at least one. */\n group: number;\n\n /** The reader the sheets are for. */\n budget: IAutoMovieCaptureBudget;\n\n /** Every caption a cell of these sheets may carry, the longest of which sizes the caption strip; empty for one line. */\n captions: readonly string[];\n}): IAutoMovieCaptureLayout {\n const { width, height, count, budget } = props;\n for (const [key, value] of Object.entries({\n width,\n height,\n count,\n group: props.group,\n }))\n if (!(Number.isSafeInteger(value) && value > 0))\n throw new Error(\n `A capture layout's ${key} ${value} is not a positive whole number`,\n );\n\n // The smallest cell the reader can read, never larger than the still.\n const least: number = Math.min(1, budget.smallest / Math.min(width, height));\n const columnsMost: number = Math.max(\n 1,\n Math.floor(budget.longest / Math.ceil(width * least - EPSILON)),\n );\n const leastHeight: number = Math.ceil(height * least - EPSILON);\n\n // The caption strip under a cell: as many lines as the longest caption wraps to at the cell's width.\n const strip: (cell: number) => { lines: number; height: number } = (\n cell: number,\n ): { lines: number; height: number } => {\n const lines: number = AutoMovieRasterSheet.lines(\n props.captions,\n Math.max(1, Math.floor((width * cell) / height + EPSILON)),\n cell,\n );\n return { lines, height: AutoMovieRasterSheet.caption(cell, lines) };\n };\n const rowsMost: number = Math.max(\n 1,\n Math.floor(budget.longest / (leastHeight + strip(leastHeight).height)),\n );\n\n // Spread whole groups evenly over the fewest sheets that hold them; a group wider than a row is not kept whole.\n const group: number = props.group <= columnsMost ? props.group : 1;\n const groups: number = Math.ceil(count / group);\n const groupsMost: number = Math.floor(columnsMost / group) * rowsMost;\n const sheets: number = Math.ceil(groups / groupsMost);\n const perSheet: number = Math.min(count, Math.ceil(groups / sheets) * group);\n\n // The grid with the largest cell among column counts that are multiples of the group.\n let best: {\n columns: number;\n rows: number;\n scale: number;\n cell: number;\n } | null = null;\n const widest: number = Math.min(\n Math.ceil(perSheet / group) * group,\n Math.floor(columnsMost / group) * group,\n );\n for (let columns: number = group; columns <= widest; columns += group) {\n const rows: number = Math.ceil(perSheet / columns);\n if (rows > rowsMost) continue;\n\n // The tallest cell the row's width allows, lowered until it and its caption strip fit the row's share of the longest edge.\n const rowHeight: number = Math.floor(budget.longest / rows);\n let cell: number = Math.max(\n 1,\n Math.min(\n rowHeight,\n Math.floor(\n height * Math.min(1, budget.longest / (columns * width)) + EPSILON,\n ),\n ),\n );\n while (cell > 1 && cell + strip(cell).height > rowHeight) cell--;\n const scale: number = cell / height;\n if (\n best === null ||\n scale > best.scale ||\n (scale === best.scale &&\n (columns * rows < best.columns * best.rows ||\n (columns * rows === best.columns * best.rows && rows < best.rows)))\n )\n best = { columns, rows, scale, cell };\n }\n\n // The widest grid always fits, since a sheet holds no more whole groups than a row of them times the rows.\n if (best === null)\n throw new Error(\"A capture layout found no grid; this is a defect\");\n return {\n cell: {\n width: Math.max(1, Math.floor(width * best.scale + EPSILON)),\n height: best.cell,\n },\n caption: strip(best.cell).height,\n lines: strip(best.cell).lines,\n columns: best.columns,\n rows: best.rows,\n perSheet,\n sheets,\n reduction: budget.reduction,\n };\n}\n"],"mappings":";;;AAKA,MAAM,UAAkB;;;;;;;;;;;;;;;;;;;;;AAsBxB,SAAgB,2BAA2B,OAkBf;CAC1B,MAAM,EAAE,OAAO,QAAQ,OAAO,WAAW;CACzC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ;EACxC;EACA;EACA;EACA,OAAO,MAAM;CACf,CAAC,GACC,IAAI,EAAE,OAAO,cAAc,KAA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WACA,KAAK,MACH,SAAS,KAAK,IAAI,GAAG,OAAO,WAAW,UAAU,MAAM,IAAI,OAC7D,CACF,CACF;EACA,OAAO,OAAO,KAAK,OAAO,MAAM,IAAI,CAAC,CAAC,SAAS,WAAW;EAC1D,MAAM,QAAgB,OAAO;EAC7B,IACE,SAAS,QACT,QAAQ,KAAK,SACZ,UAAU,KAAK,UACb,UAAU,OAAO,KAAK,UAAU,KAAK,QACnC,UAAU,SAAS,KAAK,UAAU,KAAK,QAAQ,OAAO,KAAK,OAEhE,OAAO;GAAE;GAAS;GAAM;GAAO;EAAK;CACxC;CAGA,IAAI,SAAS,MACX,MAAM,IAAI,MAAM,kDAAkD;CACpE,OAAO;EACL,MAAM;GACJ,OAAO,KAAK,IAAI,GAAG,KAAK,MAAM,QAAQ,KAAK,QAAQ,OAAO,CAAC;GAC3D,QAAQ,KAAK;EACf;EACA,SAAS,MAAM,KAAK,IAAI,CAAC,CAAC;EAC1B,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC;EACxB,SAAS,KAAK;EACd,MAAM,KAAK;EACX;EACA;EACA,WAAW,OAAO;CACpB;AACF"}
1
+ {"version":3,"file":"planAutoMovieCaptureLayout.mjs","names":[],"sources":["../../src/capture/planAutoMovieCaptureLayout.ts"],"sourcesContent":["import type {\n IAutoMovieCaptureLayout,\n IAutoMovieCaptureLayoutProps,\n} from \"@automovie/interface\";\n\nimport { AutoMovieRasterSheet } from \"../picture/AutoMovieRasterSheet.js\";\n\n/** Slack for the rounding of a pixel size that is a whole number in exact arithmetic, such as 720 × 200 / 720. */\nconst EPSILON: number = 1e-9;\n\n/**\n * Lay out a capture's cells on contact sheets for a stated reader: every sheet's longest edge within `budget.longest`, every cell's shorter edge at least `budget.smallest`, and the cells as large as those two bounds allow. Each cell's caption strip is reserved under it and counted against the longest edge, never taken from the cell: it holds as many lines as the longest of `captions` wraps to at the cell's width, by `AutoMovieRasterSheet.lines`, at the height `AutoMovieRasterSheet.caption` gives, so every caption keeps every word that identifies its cell.\n *\n * A cell keeps the still's proportions, so a portrait still gives upright cells, and never enlarges the still. The smallest cell decides how many cells one sheet can hold; when the cells do not fit one sheet they are spread evenly over as few sheets as hold them. Cells come in groups of `group`, such as the views and passes of one instant: when a group fits a row, a sheet holds whole groups and its column count is a multiple of the group, so each row starts a new group and no group is split between sheets. Among the grids that hold a sheet's cells, the one giving the largest cell wins, ties going to the grid with fewer empty cells, then to the one with fewer rows. A still so elongated that one smallest cell exceeds the longest edge is shrunk to fit it, the one case where a cell falls under `smallest`, because a reader would downsize a larger sheet anyway.\n *\n * It throws for a raster, count or group that is not a positive whole number.\n *\n * ```ts\n * planAutoMovieCaptureLayout({ width: 1280, height: 720, count: 50, group: 1, budget: { longest: 1568, smallest: 200, reduction: \"area\" }, captions: [\"f30 1.000s\"] });\n * // cells of 366 x 206 with an 18 px caption strip, in 4 columns of 7 rows, 25 per sheet on 2 sheets\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States both bounds, the proportion and no-enlargement rules, how cells and groups are spread over sheets, which grid wins, the one case that breaks the smallest edge and why, and the refusal.\n * @evidence contracts/development/implementation.md#principled-implementation A sheet holds at most floor(longest / smallest-cell-width) by floor(longest / (smallest-cell-height + its caption strip)) cells, so the strip never pushes a cell under the smallest edge; spreading the count evenly over the fewest such sheets and then choosing the grid by its cell, the tallest whose width fits longest / columns and whose height with its strip fits longest / rows, maximises the cell size within both bounds. The strip's height changes with the cell in steps, its scale with the height and its line count with the width, so the cell is lowered pixel by pixel from the lower of the width-bound height and the row's share until cell and strip fit; the first fit is the largest cell, and the smallest cell's fit, counted with its own strip in the rows a sheet holds, bounds the search. The smallest cell's sides are rounded up, so a grid that fits it keeps the shorter edge at `smallest`, and the chosen cell's sides are floored, so the sheet never exceeds the longest edge; both allow `1e-9` for floating-point error in a size that is whole in exact arithmetic.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Size the smallest cell, count sheets in whole groups, then one search over column counts.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No cell size, column count or sheet size is fixed: every number comes from the budget, the raster and the group.\n * @evidence contracts/development/implementation.md#efficient-algorithms The search tries at most one grid per column count, bounded by `longest / smallest`, with lowering steps down to at most the smallest cell, each step wrapping the captions; work is linear in the captions' total length per step and independent of the still's pixels.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of its arguments.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns one small record and keeps nothing.\n */\nexport function planAutoMovieCaptureLayout(\n props: IAutoMovieCaptureLayoutProps,\n): IAutoMovieCaptureLayout {\n const { width, height, count, budget } = props;\n for (const [key, value] of Object.entries({\n width,\n height,\n count,\n group: props.group,\n }))\n if (!(Number.isSafeInteger(value) && value > 0))\n throw new Error(\n `A capture layout's ${key} ${value} is not a positive whole number`,\n );\n\n // The smallest cell the reader can read, never larger than the still.\n const least: number = Math.min(1, budget.smallest / Math.min(width, height));\n const columnsMost: number = Math.max(\n 1,\n Math.floor(budget.longest / Math.ceil(width * least - EPSILON)),\n );\n const leastHeight: number = Math.ceil(height * least - EPSILON);\n\n // The caption strip under a cell: as many lines as the longest caption wraps to at the cell's width.\n const strip: (cell: number) => { lines: number; height: number } = (\n cell: number,\n ): { lines: number; height: number } => {\n const lines: number = AutoMovieRasterSheet.lines(\n props.captions,\n Math.max(1, Math.floor((width * cell) / height + EPSILON)),\n cell,\n );\n return { lines, height: AutoMovieRasterSheet.caption(cell, lines) };\n };\n const rowsMost: number = Math.max(\n 1,\n Math.floor(budget.longest / (leastHeight + strip(leastHeight).height)),\n );\n\n // Spread whole groups evenly over the fewest sheets that hold them; a group wider than a row is not kept whole.\n const group: number = props.group <= columnsMost ? props.group : 1;\n const groups: number = Math.ceil(count / group);\n const groupsMost: number = Math.floor(columnsMost / group) * rowsMost;\n const sheets: number = Math.ceil(groups / groupsMost);\n const perSheet: number = Math.min(count, Math.ceil(groups / sheets) * group);\n\n // The grid with the largest cell among column counts that are multiples of the group.\n let best: {\n columns: number;\n rows: number;\n scale: number;\n cell: number;\n } | null = null;\n const widest: number = Math.min(\n Math.ceil(perSheet / group) * group,\n Math.floor(columnsMost / group) * group,\n );\n for (let columns: number = group; columns <= widest; columns += group) {\n const rows: number = Math.ceil(perSheet / columns);\n if (rows > rowsMost) continue;\n\n // The tallest cell the row's width allows, lowered until it and its caption strip fit the row's share of the longest edge.\n const rowHeight: number = Math.floor(budget.longest / rows);\n let cell: number = Math.max(\n 1,\n Math.min(\n rowHeight,\n Math.floor(\n height * Math.min(1, budget.longest / (columns * width)) + EPSILON,\n ),\n ),\n );\n while (cell > 1 && cell + strip(cell).height > rowHeight) cell--;\n const scale: number = cell / height;\n if (\n best === null ||\n scale > best.scale ||\n (scale === best.scale &&\n (columns * rows < best.columns * best.rows ||\n (columns * rows === best.columns * best.rows && rows < best.rows)))\n )\n best = { columns, rows, scale, cell };\n }\n\n // The widest grid always fits, since a sheet holds no more whole groups than a row of them times the rows.\n if (best === null)\n throw new Error(\"A capture layout found no grid; this is a defect\");\n return {\n cell: {\n width: Math.max(1, Math.floor(width * best.scale + EPSILON)),\n height: best.cell,\n },\n caption: strip(best.cell).height,\n lines: strip(best.cell).lines,\n columns: best.columns,\n rows: best.rows,\n perSheet,\n sheets,\n reduction: budget.reduction,\n };\n}\n"],"mappings":";;;AAQA,MAAM,UAAkB;;;;;;;;;;;;;;;;;;;;;AAsBxB,SAAgB,2BACd,OACyB;CACzB,MAAM,EAAE,OAAO,QAAQ,OAAO,WAAW;CACzC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ;EACxC;EACA;EACA;EACA,OAAO,MAAM;CACf,CAAC,GACC,IAAI,EAAE,OAAO,cAAc,KAAK,KAAK,QAAQ,IAC3C,MAAM,IAAI,MACR,sBAAsB,IAAI,GAAG,MAAM,gCACrC;CAGJ,MAAM,QAAgB,KAAK,IAAI,GAAG,OAAO,WAAW,KAAK,IAAI,OAAO,MAAM,CAAC;CAC3E,MAAM,cAAsB,KAAK,IAC/B,GACA,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AS,QACT,QAAQ,KAAK,SACZ,UAAU,KAAK,UACb,UAAU,OAAO,KAAK,UAAU,KAAK,QACnC,UAAU,SAAS,KAAK,UAAU,KAAK,QAAQ,OAAO,KAAK,OAEhE,OAAO;GAAE;GAAS;GAAM;GAAO;EAAK;CACxC;CAGA,IAAI,SAAS,MACX,MAAM,IAAI,MAAM,kDAAkD;CACpE,OAAO;EACL,MAAM;GACJ,OAAO,KAAK,IAAI,GAAG,KAAK,MAAM,QAAQ,KAAK,QAAQ,OAAO,CAAC;GAC3D,QAAQ,KAAK;EACf;EACA,SAAS,MAAM,KAAK,IAAI,CAAC,CAAC;EAC1B,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC;EACxB,SAAS,KAAK;EACd,MAAM,KAAK;EACX;EACA;EACA,WAAW,OAAO;CACpB;AACF"}
@@ -1,3 +1,4 @@
1
+ import type { IAutoMoviePlanVideoFramesProps } from "@automovie/interface";
1
2
  /**
2
3
  * Plan the FFmpeg arguments that extract exactly the given frames of a video file, the file's own pixels, as numbered PNG stills.
3
4
  *
@@ -18,11 +19,4 @@
18
19
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of its arguments.
19
20
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.
20
21
  */
21
- export declare function planAutoMovieVideoFrames(props: {
22
- /** Path of the video file. */
23
- file: string;
24
- /** Indices of the frames to extract, from zero. */
25
- frames: readonly number[];
26
- /** Folder the stills are written into. */
27
- directory: string;
28
- }): string[];
22
+ export declare function planAutoMovieVideoFrames(props: IAutoMoviePlanVideoFramesProps): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"planAutoMovieVideoFrames.js","sourceRoot":"","sources":["../../src/capture/planAutoMovieVideoFrames.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,kCAAyC,KASxC;IACC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC;QAC3B,MAA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AG,GAAG,GAAG,CAAC,CAAC;IAClB,CAAC;IACD,OAAO;QACL,cAAc;QACd,UAAU;QACV,IAAI;QACJ,IAAI;QACJ,KAAK,CAAC,IAAI;QACV,KAAK;QACL,KAAK;QACL,WAAW,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG;QAC7B,WAAW;QACX,aAAa;QACb,UAAU;QACV,OAAO;QACP,eAAe;QACf,GAAG;QACH,GAAG,KAAK,CAAC,SAAS,YAAY;KAC/B,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"planAutoMovieVideoFrames.mjs","names":[],"sources":["../../src/capture/planAutoMovieVideoFrames.ts"],"sourcesContent":["/**\n * Plan the FFmpeg arguments that extract exactly the given frames of a video file, the file's own pixels, as numbered PNG stills.\n *\n * One `select` expression names every index: a run of consecutive indices as `between(n,first,last)` and a lone index as `eq(n,index)`, joined by `+`. `-fps_mode passthrough` keeps each selected frame once with its own timestamp instead of duplicating or dropping frames to a constant rate. The k-th selected frame, counting from zero in ascending index order, is written as `<directory>/s<k>.png` with `k` padded to five digits, in 8-bit RGB.\n *\n * It throws for an empty list and for an index that is not a whole number of zero or more.\n *\n * ```ts\n * planAutoMovieVideoFrames({ file: \"delivery.mp4\", frames: [57, 58, 59, 90], directory: \"out\" });\n * // [..., \"-vf\", \"select='between(n,57,59)+eq(n,90)'\", \"-fps_mode\", \"passthrough\", ...]\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the expression's form, what passthrough keeps, how outputs are numbered and in what order, the pixel format, and both refusals.\n * @evidence contracts/development/implementation.md#principled-implementation FFmpeg's `select` filter evaluates its expression per frame with `n` the frame's index from zero and passes a frame when the expression is non-zero; `eq` and `between` are its documented functions and `+` adds their results, so the expression is non-zero exactly on the listed indices. The image2 muxer numbers outputs consecutively from `-start_number`.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Sort and deduplicate, group runs, write one argument list; running it is the host's injected runner.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The quoted expression keeps its commas inside one filter, and no shell is involved, so no shell quoting is added.\n * @evidence contracts/development/implementation.md#efficient-algorithms One sort of the indices, then linear; runs keep the expression short for windows of consecutive frames.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of its arguments.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.\n */\nexport function planAutoMovieVideoFrames(props: {\n /** Path of the video file. */\n file: string;\n\n /** Indices of the frames to extract, from zero. */\n frames: readonly number[];\n\n /** Folder the stills are written into. */\n directory: string;\n}): string[] {\n if (props.frames.length === 0)\n throw new Error(\"A video extraction needs at least one frame\");\n for (const frame of props.frames)\n if (!(Number.isSafeInteger(frame) && frame >= 0))\n throw new Error(\n `Video frame ${frame} is not a whole number of zero or more`,\n );\n\n // Runs of consecutive indices, in ascending order.\n const sorted: number[] = [...new Set(props.frames)].sort(\n (a: number, b: number): number => a - b,\n );\n const terms: string[] = [];\n for (let start: number = 0; start < sorted.length; ) {\n let end: number = start;\n while (end + 1 < sorted.length && sorted[end + 1] === sorted[end]! + 1)\n end++;\n terms.push(\n start === end\n ? `eq(n,${sorted[start]})`\n : `between(n,${sorted[start]},${sorted[end]})`,\n );\n start = end + 1;\n }\n return [\n \"-hide_banner\",\n \"-nostats\",\n \"-y\",\n \"-i\",\n props.file,\n \"-an\",\n \"-vf\",\n `select='${terms.join(\"+\")}'`,\n \"-fps_mode\",\n \"passthrough\",\n \"-pix_fmt\",\n \"rgb24\",\n \"-start_number\",\n \"0\",\n `${props.directory}/s%05d.png`,\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,SAAgB,yBAAyB,OAS5B;CACX,IAAI,MAAM,OAAO,WAAW,GAC1B,MAAM,IAAI,MAAM,6CAA6C;CAC/D,KAAK,MAAM,SAAS,MAAM,QACxB,IAAI,EAAE,OAAO,cAAc,KAAK,KAAK,SAAS,IAC5C,MAAM,IAAI,MACR,eAAe,MAAM,uCACvB;CAGJ,MAAM,SAAmB,CAAC,GAAG,IAAI,IAAI,MAAM,MAAM,CAAC,CAAC,CAAC,MACjD,GAAW,MAAsB,IAAI,CACxC;CACA,MAAM,QAAkB,CAAC;CACzB,KAAK,IAAI,QAAgB,GAAG,QAAQ,OAAO,SAAU;EACnD,IAAI,MAAc;EAClB,OAAO,MAAM,IAAI,OAAO,UAAU,OAAO,MAAM,OAAO,OAAO,OAAQ,GACnE;EACF,MAAM,KACJ,UAAU,MACN,QAAQ,OAAO,OAAO,KACtB,aAAa,OAAO,OAAO,GAAG,OAAO,KAAK,EAChD;EACA,QAAQ,MAAM;CAChB;CACA,OAAO;EACL;EACA;EACA;EACA;EACA,MAAM;EACN;EACA;EACA,WAAW,MAAM,KAAK,GAAG,EAAE;EAC3B;EACA;EACA;EACA;EACA;EACA;EACA,GAAG,MAAM,UAAU;CACrB;AACF"}
1
+ {"version":3,"file":"planAutoMovieVideoFrames.mjs","names":[],"sources":["../../src/capture/planAutoMovieVideoFrames.ts"],"sourcesContent":["import type { IAutoMoviePlanVideoFramesProps } from \"@automovie/interface\";\n\n/**\n * Plan the FFmpeg arguments that extract exactly the given frames of a video file, the file's own pixels, as numbered PNG stills.\n *\n * One `select` expression names every index: a run of consecutive indices as `between(n,first,last)` and a lone index as `eq(n,index)`, joined by `+`. `-fps_mode passthrough` keeps each selected frame once with its own timestamp instead of duplicating or dropping frames to a constant rate. The k-th selected frame, counting from zero in ascending index order, is written as `<directory>/s<k>.png` with `k` padded to five digits, in 8-bit RGB.\n *\n * It throws for an empty list and for an index that is not a whole number of zero or more.\n *\n * ```ts\n * planAutoMovieVideoFrames({ file: \"delivery.mp4\", frames: [57, 58, 59, 90], directory: \"out\" });\n * // [..., \"-vf\", \"select='between(n,57,59)+eq(n,90)'\", \"-fps_mode\", \"passthrough\", ...]\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the expression's form, what passthrough keeps, how outputs are numbered and in what order, the pixel format, and both refusals.\n * @evidence contracts/development/implementation.md#principled-implementation FFmpeg's `select` filter evaluates its expression per frame with `n` the frame's index from zero and passes a frame when the expression is non-zero; `eq` and `between` are its documented functions and `+` adds their results, so the expression is non-zero exactly on the listed indices. The image2 muxer numbers outputs consecutively from `-start_number`.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Sort and deduplicate, group runs, write one argument list; running it is the host's injected runner.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The quoted expression keeps its commas inside one filter, and no shell is involved, so no shell quoting is added.\n * @evidence contracts/development/implementation.md#efficient-algorithms One sort of the indices, then linear; runs keep the expression short for windows of consecutive frames.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of its arguments.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.\n */\nexport function planAutoMovieVideoFrames(\n props: IAutoMoviePlanVideoFramesProps,\n): string[] {\n if (props.frames.length === 0)\n throw new Error(\"A video extraction needs at least one frame\");\n for (const frame of props.frames)\n if (!(Number.isSafeInteger(frame) && frame >= 0))\n throw new Error(\n `Video frame ${frame} is not a whole number of zero or more`,\n );\n\n // Runs of consecutive indices, in ascending order.\n const sorted: number[] = [...new Set(props.frames)].sort(\n (a: number, b: number): number => a - b,\n );\n const terms: string[] = [];\n for (let start: number = 0; start < sorted.length; ) {\n let end: number = start;\n while (end + 1 < sorted.length && sorted[end + 1] === sorted[end]! + 1)\n end++;\n terms.push(\n start === end\n ? `eq(n,${sorted[start]})`\n : `between(n,${sorted[start]},${sorted[end]})`,\n );\n start = end + 1;\n }\n return [\n \"-hide_banner\",\n \"-nostats\",\n \"-y\",\n \"-i\",\n props.file,\n \"-an\",\n \"-vf\",\n `select='${terms.join(\"+\")}'`,\n \"-fps_mode\",\n \"passthrough\",\n \"-pix_fmt\",\n \"rgb24\",\n \"-start_number\",\n \"0\",\n `${props.directory}/s%05d.png`,\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBA,SAAgB,yBACd,OACU;CACV,IAAI,MAAM,OAAO,WAAW,GAC1B,MAAM,IAAI,MAAM,6CAA6C;CAC/D,KAAK,MAAM,SAAS,MAAM,QACxB,IAAI,EAAE,OAAO,cAAc,KAAK,KAAK,SAAS,IAC5C,MAAM,IAAI,MACR,eAAe,MAAM,uCACvB;CAGJ,MAAM,SAAmB,CAAC,GAAG,IAAI,IAAI,MAAM,MAAM,CAAC,CAAC,CAAC,MACjD,GAAW,MAAsB,IAAI,CACxC;CACA,MAAM,QAAkB,CAAC;CACzB,KAAK,IAAI,QAAgB,GAAG,QAAQ,OAAO,SAAU;EACnD,IAAI,MAAc;EAClB,OAAO,MAAM,IAAI,OAAO,UAAU,OAAO,MAAM,OAAO,OAAO,OAAQ,GACnE;EACF,MAAM,KACJ,UAAU,MACN,QAAQ,OAAO,OAAO,KACtB,aAAa,OAAO,OAAO,GAAG,OAAO,KAAK,EAChD;EACA,QAAQ,MAAM;CAChB;CACA,OAAO;EACL;EACA;EACA;EACA;EACA,MAAM;EACN;EACA;EACA,WAAW,MAAM,KAAK,GAAG,EAAE;EAC3B;EACA;EACA;EACA;EACA;EACA;EACA,GAAG,MAAM,UAAU;CACrB;AACF"}
@@ -1,3 +1,4 @@
1
+ import type { IAutoMoviePlanVideoSceneCutsProps } from "@automovie/interface";
1
2
  /**
2
3
  * Plan the FFmpeg arguments that detect a video file's scene cuts with the `scdet` filter and write each cut to a report, which `readAutoMovieVideoSceneCuts` reads.
3
4
  *
@@ -17,11 +18,4 @@
17
18
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of three values.
18
19
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.
19
20
  */
20
- export declare function planAutoMovieVideoSceneCuts(props: {
21
- /** Path of the video file. */
22
- file: string;
23
- /** Path the report is written to. */
24
- report: string;
25
- /** Score from 0 to 100 at which a frame starts a new scene. */
26
- threshold: number;
27
- }): string[];
21
+ export declare function planAutoMovieVideoSceneCuts(props: IAutoMoviePlanVideoSceneCutsProps): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"planAutoMovieVideoSceneCuts.js","sourceRoot":"","sources":["../../src/capture/planAutoMovieVideoSceneCuts.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qCAA4C,KAS3C;IACC,IACE,CAAC,CACC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC;QAChC,KAAK,CAAC,SAAS,IAAI,CAAC;QACpB,KAAK,CAAC,SAAS,IAAI,GAAG,CACvB;QAED,MAAM,IAAI,KAAK,CACb,4BAA4B,KAAK,CAAC,SAAS,+BAA+B,CAC3E,CAAC;IAEJ,mFAAmF;IACnF,MAAM,MAAM,GAAW,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAChE,MAAM,KAAK,GAAW,MAAM,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO;QACL,cAAc;QACd,UAAU;QACV,IAAI;QACJ,KAAK,CAAC,IAAI;QACV,KAAK;QACL,KAAK;QACL,mBAAmB,KAAK,CAAC,SAAS,qEAAqE,KAAK,EAAE;QAC9G,IAAI;QACJ,MAAM;QACN,GAAG;KACJ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"planAutoMovieVideoSceneCuts.js","sourceRoot":"","sources":["../../src/capture/planAutoMovieVideoSceneCuts.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qCACE,KAAwC;IAExC,IACE,CAAC,CACC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC;QAChC,KAAK,CAAC,SAAS,IAAI,CAAC;QACpB,KAAK,CAAC,SAAS,IAAI,GAAG,CACvB;QAED,MAAM,IAAI,KAAK,CACb,4BAA4B,KAAK,CAAC,SAAS,+BAA+B,CAC3E,CAAC;IAEJ,mFAAmF;IACnF,MAAM,MAAM,GAAW,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAChE,MAAM,KAAK,GAAW,MAAM,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO;QACL,cAAc;QACd,UAAU;QACV,IAAI;QACJ,KAAK,CAAC,IAAI;QACV,KAAK;QACL,KAAK;QACL,mBAAmB,KAAK,CAAC,SAAS,qEAAqE,KAAK,EAAE;QAC9G,IAAI;QACJ,MAAM;QACN,GAAG;KACJ,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"planAutoMovieVideoSceneCuts.mjs","names":[],"sources":["../../src/capture/planAutoMovieVideoSceneCuts.ts"],"sourcesContent":["/**\n * Plan the FFmpeg arguments that detect a video file's scene cuts with the `scdet` filter and write each cut to a report, which `readAutoMovieVideoSceneCuts` reads.\n *\n * `scdet` scores how much each frame differs from the one before, from 0 to 100, and marks a frame whose score reaches `threshold` as the first frame of a new scene; FFmpeg's default threshold is 10. The `metadata` filters keep only marked frames and print each one's time and score to `report`. The decoded frames go to the null muxer, so nothing else is written. The report path is escaped for both levels of FFmpeg's filter-graph syntax, so a drive letter or a comma in it stays part of the path.\n *\n * It throws for a threshold outside 0 to 100.\n *\n * ```ts\n * await run(planAutoMovieVideoSceneCuts({ file: \"delivery.mp4\", report: `${folder.directory}/scenecut.txt`, threshold: 10 }));\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is detected, the score's range and the default threshold, what the report holds, what else is written, how the path is escaped, and the refusal.\n * @evidence contracts/development/implementation.md#principled-implementation FFmpeg's `scdet` filter documents the score range and `lavfi.scd.time` on a changed frame; `metadata=mode=select` keeps frames carrying that key and `metadata=mode=print:file=` prints all of their metadata; FFmpeg's filter-graph escaping section gives the two escaping levels applied to the path.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Escape the path, then one argument list; running it is the host's injected runner.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The threshold is the caller's, with FFmpeg's default left to the grammar, and no shell is involved, so no shell quoting is added.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the path's length; FFmpeg decodes the file once without audio.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of three values.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.\n */\nexport function planAutoMovieVideoSceneCuts(props: {\n /** Path of the video file. */\n file: string;\n\n /** Path the report is written to. */\n report: string;\n\n /** Score from 0 to 100 at which a frame starts a new scene. */\n threshold: number;\n}): string[] {\n if (\n !(\n Number.isFinite(props.threshold) &&\n props.threshold >= 0 &&\n props.threshold <= 100\n )\n )\n throw new Error(\n `A scene-cut threshold of ${props.threshold} is not a score from 0 to 100`,\n );\n\n // Level one escapes a filter option's value, level two the filter graph around it.\n const option: string = props.report.replace(/[\\\\':]/gu, \"\\\\$&\");\n const graph: string = option.replace(/[\\\\'[\\],;]/gu, \"\\\\$&\");\n return [\n \"-hide_banner\",\n \"-nostats\",\n \"-i\",\n props.file,\n \"-an\",\n \"-vf\",\n `scdet=threshold=${props.threshold},metadata=mode=select:key=lavfi.scd.time,metadata=mode=print:file=${graph}`,\n \"-f\",\n \"null\",\n \"-\",\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,SAAgB,4BAA4B,OAS/B;CACX,IACE,EACE,OAAO,SAAS,MAAM,SAAS,KAC/B,MAAM,aAAa,KACnB,MAAM,aAAa,MAGrB,MAAM,IAAI,MACR,4BAA4B,MAAM,UAAU,8BAC9C;CAIF,MAAM,QADiB,MAAM,OAAO,QAAQ,YAAY,MAC7B,CAAC,CAAC,QAAQ,gBAAgB,MAAM;CAC3D,OAAO;EACL;EACA;EACA;EACA,MAAM;EACN;EACA;EACA,mBAAmB,MAAM,UAAU,oEAAoE;EACvG;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"planAutoMovieVideoSceneCuts.mjs","names":[],"sources":["../../src/capture/planAutoMovieVideoSceneCuts.ts"],"sourcesContent":["import type { IAutoMoviePlanVideoSceneCutsProps } from \"@automovie/interface\";\n\n/**\n * Plan the FFmpeg arguments that detect a video file's scene cuts with the `scdet` filter and write each cut to a report, which `readAutoMovieVideoSceneCuts` reads.\n *\n * `scdet` scores how much each frame differs from the one before, from 0 to 100, and marks a frame whose score reaches `threshold` as the first frame of a new scene; FFmpeg's default threshold is 10. The `metadata` filters keep only marked frames and print each one's time and score to `report`. The decoded frames go to the null muxer, so nothing else is written. The report path is escaped for both levels of FFmpeg's filter-graph syntax, so a drive letter or a comma in it stays part of the path.\n *\n * It throws for a threshold outside 0 to 100.\n *\n * ```ts\n * await run(planAutoMovieVideoSceneCuts({ file: \"delivery.mp4\", report: `${folder.directory}/scenecut.txt`, threshold: 10 }));\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is detected, the score's range and the default threshold, what the report holds, what else is written, how the path is escaped, and the refusal.\n * @evidence contracts/development/implementation.md#principled-implementation FFmpeg's `scdet` filter documents the score range and `lavfi.scd.time` on a changed frame; `metadata=mode=select` keeps frames carrying that key and `metadata=mode=print:file=` prints all of their metadata; FFmpeg's filter-graph escaping section gives the two escaping levels applied to the path.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Escape the path, then one argument list; running it is the host's injected runner.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The threshold is the caller's, with FFmpeg's default left to the grammar, and no shell is involved, so no shell quoting is added.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the path's length; FFmpeg decodes the file once without audio.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of three values.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.\n */\nexport function planAutoMovieVideoSceneCuts(\n props: IAutoMoviePlanVideoSceneCutsProps,\n): string[] {\n if (\n !(\n Number.isFinite(props.threshold) &&\n props.threshold >= 0 &&\n props.threshold <= 100\n )\n )\n throw new Error(\n `A scene-cut threshold of ${props.threshold} is not a score from 0 to 100`,\n );\n\n // Level one escapes a filter option's value, level two the filter graph around it.\n const option: string = props.report.replace(/[\\\\':]/gu, \"\\\\$&\");\n const graph: string = option.replace(/[\\\\'[\\],;]/gu, \"\\\\$&\");\n return [\n \"-hide_banner\",\n \"-nostats\",\n \"-i\",\n props.file,\n \"-an\",\n \"-vf\",\n `scdet=threshold=${props.threshold},metadata=mode=select:key=lavfi.scd.time,metadata=mode=print:file=${graph}`,\n \"-f\",\n \"null\",\n \"-\",\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,4BACd,OACU;CACV,IACE,EACE,OAAO,SAAS,MAAM,SAAS,KAC/B,MAAM,aAAa,KACnB,MAAM,aAAa,MAGrB,MAAM,IAAI,MACR,4BAA4B,MAAM,UAAU,8BAC9C;CAIF,MAAM,QADiB,MAAM,OAAO,QAAQ,YAAY,MAC7B,CAAC,CAAC,QAAQ,gBAAgB,MAAM;CAC3D,OAAO;EACL;EACA;EACA;EACA,MAAM;EACN;EACA;EACA,mBAAmB,MAAM,UAAU,oEAAoE;EACvG;EACA;EACA;CACF;AACF"}
@@ -1,3 +1,4 @@
1
+ import type { IAutoMovieCaptureVideoSource } from "@automovie/interface";
1
2
  /**
2
3
  * Read the report of `planAutoMovieVideoSceneCuts` into the file's scene cuts: the second each new scene starts and its `scdet` score, in the report's order.
3
4
  *
@@ -13,9 +14,4 @@
13
14
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one text.
14
15
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.
15
16
  */
16
- export declare function readAutoMovieVideoSceneCuts(report: string): {
17
- /** Second of the first frame of the new scene, in the file's time. */
18
- seconds: number;
19
- /** `scdet` score of the change, 0 to 100. */
20
- score: number;
21
- }[];
17
+ export declare function readAutoMovieVideoSceneCuts(report: string): IAutoMovieCaptureVideoSource["cuts"];
@@ -1 +1 @@
1
- {"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AAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,GAAW,IAAI,CAAC,IAAI,EAAE,CAAC;QACjC,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC9B,KAAK,EAAE,CAAC;YACR,KAAK,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC;YAC5C,SAAS;QACX,CAAC;QACD,MAAM,MAAM,GAAW,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACzC,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,GAAG,CAAC;YAC9B,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;IACpE,CAAC;IACD,KAAK,EAAE,CAAC;IACR,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"readAutoMovieVideoSceneCuts.mjs","names":[],"sources":["../../src/capture/readAutoMovieVideoSceneCuts.ts"],"sourcesContent":["/**\n * Read the report of `planAutoMovieVideoSceneCuts` into the file's scene cuts: the second each new scene starts and its `scdet` score, in the report's order.\n *\n * The report is FFmpeg's `metadata` print: a `frame:<n> pts:<t> pts_time:<seconds>` line per marked frame, followed by `key=value` lines among which `lavfi.scd.score` and `lavfi.scd.time`. A frame's second is its `lavfi.scd.time`, or its `pts_time` when that key is missing. Line endings may be `\\n` or `\\r\\n`, and other keys are ignored. An empty report means the file has no cut at the threshold used.\n *\n * It throws naming the frame for a marked frame without a readable second or score.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the report's form, which values are read and their fallback, what is ignored, what an empty report means, and the refusal.\n * @evidence contracts/development/implementation.md#principled-implementation The `metadata` filter prints one header line per frame and one `key=value` line per entry, and `scdet` sets `lavfi.scd.score` on every frame and `lavfi.scd.time` on a changed one, so grouping lines under their header gives one cut per marked frame.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the lines, closing a cut at each new header and at the end.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A frame missing its score throws instead of being dropped or given a score of zero.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the report's length.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one text.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.\n */\nexport function readAutoMovieVideoSceneCuts(report: string): {\n /** Second of the first frame of the new scene, in the file's time. */\n seconds: number;\n\n /** `scdet` score of the change, 0 to 100. */\n score: number;\n}[] {\n const cuts: { seconds: number; score: number }[] = [];\n let frame: { header: string; values: Map<string, string> } | null = null;\n const close: () => void = (): void => {\n if (frame === null) return;\n const header: RegExpExecArray | null = /pts_time:(\\S+)/u.exec(frame.header);\n const seconds: number = Number(\n frame.values.get(\"lavfi.scd.time\") ?? header?.[1],\n );\n const score: number = Number(frame.values.get(\"lavfi.scd.score\"));\n if (!Number.isFinite(seconds) || !Number.isFinite(score))\n throw new Error(\n `The scene-cut report's frame \"${frame.header}\" has no readable time and score`,\n );\n cuts.push({ seconds, score });\n };\n for (const line of report.split(/\\r?\\n/u)) {\n const text: string = line.trim();\n if (text.startsWith(\"frame:\")) {\n close();\n frame = { header: text, values: new Map() };\n continue;\n }\n const equals: number = text.indexOf(\"=\");\n if (frame !== null && equals > 0)\n frame.values.set(text.slice(0, equals), text.slice(equals + 1));\n }\n close();\n return cuts;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAeA,SAAgB,4BAA4B,QAMxC;CACF,MAAM,OAA6C,CAAC;CACpD,IAAI,QAAgE;CACpE,MAAM,cAAgC;EACpC,IAAI,UAAU,MAAM;EACpB,MAAM,SAAiC,kBAAkB,KAAK,MAAM,MAAM;EAC1E,MAAM,UAAkB,OACtB,MAAM,OAAO,IAAI,gBAAgB,KAAK,SAAS,EACjD;EACA,MAAM,QAAgB,OAAO,MAAM,OAAO,IAAI,iBAAiB,CAAC;EAChE,IAAI,CAAC,OAAO,SAAS,OAAO,KAAK,CAAC,OAAO,SAAS,KAAK,GACrD,MAAM,IAAI,MACR,iCAAiC,MAAM,OAAO,iCAChD;EACF,KAAK,KAAK;GAAE;GAAS;EAAM,CAAC;CAC9B;CACA,KAAK,MAAM,QAAQ,OAAO,MAAM,QAAQ,GAAG;EACzC,MAAM,OAAe,KAAK,KAAK;EAC/B,IAAI,KAAK,WAAW,QAAQ,GAAG;GAC7B,MAAM;GACN,QAAQ;IAAE,QAAQ;IAAM,wBAAQ,IAAI,IAAI;GAAE;GAC1C;EACF;EACA,MAAM,SAAiB,KAAK,QAAQ,GAAG;EACvC,IAAI,UAAU,QAAQ,SAAS,GAC7B,MAAM,OAAO,IAAI,KAAK,MAAM,GAAG,MAAM,GAAG,KAAK,MAAM,SAAS,CAAC,CAAC;CAClE;CACA,MAAM;CACN,OAAO;AACT"}
1
+ {"version":3,"file":"readAutoMovieVideoSceneCuts.mjs","names":[],"sources":["../../src/capture/readAutoMovieVideoSceneCuts.ts"],"sourcesContent":["import type { IAutoMovieCaptureVideoSource } from \"@automovie/interface\";\n\n/**\n * Read the report of `planAutoMovieVideoSceneCuts` into the file's scene cuts: the second each new scene starts and its `scdet` score, in the report's order.\n *\n * The report is FFmpeg's `metadata` print: a `frame:<n> pts:<t> pts_time:<seconds>` line per marked frame, followed by `key=value` lines among which `lavfi.scd.score` and `lavfi.scd.time`. A frame's second is its `lavfi.scd.time`, or its `pts_time` when that key is missing. Line endings may be `\\n` or `\\r\\n`, and other keys are ignored. An empty report means the file has no cut at the threshold used.\n *\n * It throws naming the frame for a marked frame without a readable second or score.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the report's form, which values are read and their fallback, what is ignored, what an empty report means, and the refusal.\n * @evidence contracts/development/implementation.md#principled-implementation The `metadata` filter prints one header line per frame and one `key=value` line per entry, and `scdet` sets `lavfi.scd.score` on every frame and `lavfi.scd.time` on a changed one, so grouping lines under their header gives one cut per marked frame.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the lines, closing a cut at each new header and at the end.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A frame missing its score throws instead of being dropped or given a score of zero.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the report's length.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one text.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list and keeps nothing.\n */\nexport function readAutoMovieVideoSceneCuts(\n report: string,\n): IAutoMovieCaptureVideoSource[\"cuts\"] {\n const cuts: { seconds: number; score: number }[] = [];\n let frame: { header: string; values: Map<string, string> } | null = null;\n const close: () => void = (): void => {\n if (frame === null) return;\n const header: RegExpExecArray | null = /pts_time:(\\S+)/u.exec(frame.header);\n const seconds: number = Number(\n frame.values.get(\"lavfi.scd.time\") ?? header?.[1],\n );\n const score: number = Number(frame.values.get(\"lavfi.scd.score\"));\n if (!Number.isFinite(seconds) || !Number.isFinite(score))\n throw new Error(\n `The scene-cut report's frame \"${frame.header}\" has no readable time and score`,\n );\n cuts.push({ seconds, score });\n };\n for (const line of report.split(/\\r?\\n/u)) {\n const text: string = line.trim();\n if (text.startsWith(\"frame:\")) {\n close();\n frame = { header: text, values: new Map() };\n continue;\n }\n const equals: number = text.indexOf(\"=\");\n if (frame !== null && equals > 0)\n frame.values.set(text.slice(0, equals), text.slice(equals + 1));\n }\n close();\n return cuts;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,SAAgB,4BACd,QACsC;CACtC,MAAM,OAA6C,CAAC;CACpD,IAAI,QAAgE;CACpE,MAAM,cAAgC;EACpC,IAAI,UAAU,MAAM;EACpB,MAAM,SAAiC,kBAAkB,KAAK,MAAM,MAAM;EAC1E,MAAM,UAAkB,OACtB,MAAM,OAAO,IAAI,gBAAgB,KAAK,SAAS,EACjD;EACA,MAAM,QAAgB,OAAO,MAAM,OAAO,IAAI,iBAAiB,CAAC;EAChE,IAAI,CAAC,OAAO,SAAS,OAAO,KAAK,CAAC,OAAO,SAAS,KAAK,GACrD,MAAM,IAAI,MACR,iCAAiC,MAAM,OAAO,iCAChD;EACF,KAAK,KAAK;GAAE;GAAS;EAAM,CAAC;CAC9B;CACA,KAAK,MAAM,QAAQ,OAAO,MAAM,QAAQ,GAAG;EACzC,MAAM,OAAe,KAAK,KAAK;EAC/B,IAAI,KAAK,WAAW,QAAQ,GAAG;GAC7B,MAAM;GACN,QAAQ;IAAE,QAAQ;IAAM,wBAAQ,IAAI,IAAI;GAAE;GAC1C;EACF;EACA,MAAM,SAAiB,KAAK,QAAQ,GAAG;EACvC,IAAI,UAAU,QAAQ,SAAS,GAC7B,MAAM,OAAO,IAAI,KAAK,MAAM,GAAG,MAAM,GAAG,KAAK,MAAM,SAAS,CAAC,CAAC;CAClE;CACA,MAAM;CACN,OAAO;AACT"}
@@ -1,5 +1,4 @@
1
- import type { IAutoMovieInspectionRequest } from "../scene/inspection/IAutoMovieInspectionRequest.js";
2
- import type { IAutoMovieCaptureResolution } from "./IAutoMovieCaptureResolution.js";
1
+ import type { IAutoMovieCaptureResolution, IAutoMovieResolveCapturePatternsProps } from "@automovie/interface";
3
2
  /**
4
3
  * Resolve every pattern a cell's request and view carry against the paths a drawn scene holds: the `parts`, `hide`, `label` and `color` patterns in that order and as written, then the view's focus pattern.
5
4
  *
@@ -18,11 +17,4 @@ import type { IAutoMovieCaptureResolution } from "./IAutoMovieCaptureResolution.
18
17
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one cell's request, view and paths.
19
18
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns names and counts only, bounded by the patterns times the distinct subtrees they reach.
20
19
  */
21
- export declare function resolveAutoMovieCapturePatterns(props: {
22
- /** Object and mark paths of the drawn scene, in its order. */
23
- paths: readonly string[];
24
- /** The cell's inspection request. */
25
- request: IAutoMovieInspectionRequest;
26
- /** The cell's view text. */
27
- view: string;
28
- }): IAutoMovieCaptureResolution[];
20
+ export declare function resolveAutoMovieCapturePatterns(props: IAutoMovieResolveCapturePatternsProps): IAutoMovieCaptureResolution[];
@@ -1 +1 @@
1
- {"version":3,"file":"resolveAutoMovieCapturePatterns.js","sourceRoot":"","sources":["../../src/capture/resolveAutoMovieCapturePatterns.ts"],"names":[],"mappings":";;;AAEA,yGAAmG;AACnG,yGAAmG;AAGnG;;;;;;;;;;;;;;;;;GAiBG;AACH,yCAAgD,KAS/C;IACC,MAAM,KAAK,GAAa,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAClD,MAAM,IAAI,GAA6B,IAAA,8DAA4B,EACjE,KAAK,CAAC,IAAI,CACX,CAAC;IACF,MAAM,QAAQ,GAAoD;QAChE,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAe,EAAqB,EAAE,CAAC;YACjE,OAAO;YACP,OAAO;SACR,CAAC;QACF,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAe,EAAoB,EAAE,CAAC;YAC/D,MAAM;YACN,OAAO;SACR,CAAC;QACF,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAe,EAAqB,EAAE,CAAC;YACjE,OAAO;YACP,OAAO;SACR,CAAC;QACF,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CACxB,CAAC,KAAyC,EAAqB,EAAE,CAAC;YAChE,OAAO;YACP,KAAK,CAAC,OAAO;SACd,CACF;QACD,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,SAAS;YACzD,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CA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CAAC,CAAC;YACxC,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE;gBACvD,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAAE,OAAO,KAAK,CAAC;YACjE,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;IAClE,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolveAutoMovieCapturePatterns.mjs","names":[],"sources":["../../src/capture/resolveAutoMovieCapturePatterns.ts"],"sourcesContent":["import type { IAutoMovieInspectionRequest } from \"../scene/inspection/IAutoMovieInspectionRequest.js\";\nimport type { IAutoMovieInspectionView } from \"../scene/inspection/IAutoMovieInspectionView.js\";\nimport { matchAutoMovieInspectionPath } from \"../scene/inspection/matchAutoMovieInspectionPath.js\";\nimport { parseAutoMovieInspectionView } from \"../scene/inspection/parseAutoMovieInspectionView.js\";\nimport type { IAutoMovieCaptureResolution } from \"./IAutoMovieCaptureResolution.js\";\n\n/**\n * Resolve every pattern a cell's request and view carry against the paths a drawn scene holds: the `parts`, `hide`, `label` and `color` patterns in that order and as written, then the view's focus pattern.\n *\n * `paths` are the scene's object paths and the paths of the marks it draws, in the scene's order; a repeated path counts once. Each pattern is matched by the inspection core's own rule, so it resolves exactly as the inspection applied it, and lists only its topmost matched paths, a path whose ancestor it also matched being counted but not listed.\n *\n * ```ts\n * resolveAutoMovieCapturePatterns({ paths: [\"hero\", \"hero/arm\", \"lamp\"], request, view: \"front@focus=hero\" });\n * // [{ role: \"focus\", pattern: \"hero\", paths: [\"hero\"], count: 2 }, ...]\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States which patterns are resolved and in what order, what the paths are, the matching rule and what is listed.\n * @evidence contracts/development/implementation.md#principled-implementation `matchAutoMovieInspectionPath` is the rule the inspection selects, hides, labels, colours and focuses by, so a resolution reports what the picture drew; a pattern takes a matched path's subtree, so listing the topmost matches names every subtree without repeating its contents.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Gather the patterns by role, then one match and one ancestor filter per pattern.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A pattern that matches nothing is listed with no path rather than left out, so the record shows it.\n * @evidence contracts/development/implementation.md#efficient-algorithms Patterns times paths matches, plus one set lookup per ancestor of each matched path.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one cell's request, view and paths.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns names and counts only, bounded by the patterns times the distinct subtrees they reach.\n */\nexport function resolveAutoMovieCapturePatterns(props: {\n /** Object and mark paths of the drawn scene, in its order. */\n paths: readonly string[];\n\n /** The cell's inspection request. */\n request: IAutoMovieInspectionRequest;\n\n /** The cell's view text. */\n view: string;\n}): IAutoMovieCaptureResolution[] {\n const paths: string[] = [...new Set(props.paths)];\n const view: IAutoMovieInspectionView = parseAutoMovieInspectionView(\n props.view,\n );\n const patterns: [IAutoMovieCaptureResolution[\"role\"], string][] = [\n ...props.request.parts.map((pattern: string): [\"parts\", string] => [\n \"parts\",\n pattern,\n ]),\n ...props.request.hide.map((pattern: string): [\"hide\", string] => [\n \"hide\",\n pattern,\n ]),\n ...props.request.label.map((pattern: string): [\"label\", string] => [\n \"label\",\n pattern,\n ]),\n ...props.request.color.map(\n (entry: IAutoMovieInspectionRequest.IColor): [\"color\", string] => [\n \"color\",\n entry.pattern,\n ],\n ),\n ...(view.type === \"named\" && view.focus?.type === \"pattern\"\n ? [[\"focus\", view.focus.pattern] as [\"focus\", string]]\n : []),\n ];\n return patterns.map(\n ([role, pattern]: [\n IAutoMovieCaptureResolution[\"role\"],\n string,\n ]): IAutoMovieCaptureResolution => {\n const matched: string[] = paths.filter((path: string): boolean =>\n matchAutoMovieInspectionPath(path, pattern),\n );\n const reached: Set<string> = new Set(matched);\n\n // A path is listed when none of its ancestors matched too.\n const topmost: string[] = matched.filter((path: string): boolean => {\n const names: string[] = path.split(\"/\");\n for (let depth: number = 1; depth < names.length; depth++)\n if (reached.has(names.slice(0, depth).join(\"/\"))) return false;\n return true;\n });\n return { role, pattern, paths: topmost, count: matched.length };\n },\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,SAAgB,gCAAgC,OASd;CAChC,MAAM,QAAkB,CAAC,GAAG,IAAI,IAAI,MAAM,KAAK,CAAC;CAChD,MAAM,OAAiC,6BACrC,MAAM,IACR;CAwBA,OAAO;EAtBL,GAAG,MAAM,QAAQ,MAAM,KAAK,YAAuC,CACjE,SACA,OACF,CAAC;EACD,GAAG,MAAM,QAAQ,KAAK,KAAK,YAAsC,CAC/D,QACA,OACF,CAAC;EACD,GAAG,MAAM,QAAQ,MAAM,KAAK,YAAuC,CACjE,SACA,OACF,CAAC;EACD,GAAG,MAAM,QAAQ,MAAM,KACpB,UAAiE,CAChE,SACA,MAAM,OACR,CACF;EACA,GAAI,KAAK,SAAS,WAAW,KAAK,OAAO,SAAS,YAC9C,CAAC,CAAC,SAAS,KAAK,MAAM,OAAO,CAAsB,IACnD,CAAC;CAEO,CAAC,CAAC,KACb,CAAC,MAAM,aAG2B;EACjC,MAAM,UAAoB,MAAM,QAAQ,SACtC,6BAA6B,MAAM,OAAO,CAC5C;EACA,MAAM,UAAuB,IAAI,IAAI,OAAO;EAS5C,OAAO;GAAE;GAAM;GAAS,OANE,QAAQ,QAAQ,SAA0B;IAClE,MAAM,QAAkB,KAAK,MAAM,GAAG;IACtC,KAAK,IAAI,QAAgB,GAAG,QAAQ,MAAM,QAAQ,SAChD,IAAI,QAAQ,IAAI,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,OAAO;IAC3D,OAAO;GACT,CACqC;GAAG,OAAO,QAAQ;EAAO;CAChE,CACF;AACF"}
1
+ {"version":3,"file":"resolveAutoMovieCapturePatterns.mjs","names":[],"sources":["../../src/capture/resolveAutoMovieCapturePatterns.ts"],"sourcesContent":["import type {\n IAutoMovieCaptureResolution,\n IAutoMovieInspectionColorAssignment,\n IAutoMovieInspectionView,\n IAutoMovieResolveCapturePatternsProps,\n} from \"@automovie/interface\";\n\nimport { matchAutoMovieInspectionPath } from \"../scene/inspection/matchAutoMovieInspectionPath.js\";\nimport { parseAutoMovieInspectionView } from \"../scene/inspection/parseAutoMovieInspectionView.js\";\n\n/**\n * Resolve every pattern a cell's request and view carry against the paths a drawn scene holds: the `parts`, `hide`, `label` and `color` patterns in that order and as written, then the view's focus pattern.\n *\n * `paths` are the scene's object paths and the paths of the marks it draws, in the scene's order; a repeated path counts once. Each pattern is matched by the inspection core's own rule, so it resolves exactly as the inspection applied it, and lists only its topmost matched paths, a path whose ancestor it also matched being counted but not listed.\n *\n * ```ts\n * resolveAutoMovieCapturePatterns({ paths: [\"hero\", \"hero/arm\", \"lamp\"], request, view: \"front@focus=hero\" });\n * // [{ role: \"focus\", pattern: \"hero\", paths: [\"hero\"], count: 2 }, ...]\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States which patterns are resolved and in what order, what the paths are, the matching rule and what is listed.\n * @evidence contracts/development/implementation.md#principled-implementation `matchAutoMovieInspectionPath` is the rule the inspection selects, hides, labels, colours and focuses by, so a resolution reports what the picture drew; a pattern takes a matched path's subtree, so listing the topmost matches names every subtree without repeating its contents.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Gather the patterns by role, then one match and one ancestor filter per pattern.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A pattern that matches nothing is listed with no path rather than left out, so the record shows it.\n * @evidence contracts/development/implementation.md#efficient-algorithms Patterns times paths matches, plus one set lookup per ancestor of each matched path.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of one cell's request, view and paths.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns names and counts only, bounded by the patterns times the distinct subtrees they reach.\n */\nexport function resolveAutoMovieCapturePatterns(\n props: IAutoMovieResolveCapturePatternsProps,\n): IAutoMovieCaptureResolution[] {\n const paths: string[] = [...new Set(props.paths)];\n const view: IAutoMovieInspectionView = parseAutoMovieInspectionView(\n props.view,\n );\n const patterns: [IAutoMovieCaptureResolution[\"role\"], string][] = [\n ...props.request.parts.map((pattern: string): [\"parts\", string] => [\n \"parts\",\n pattern,\n ]),\n ...props.request.hide.map((pattern: string): [\"hide\", string] => [\n \"hide\",\n pattern,\n ]),\n ...props.request.label.map((pattern: string): [\"label\", string] => [\n \"label\",\n pattern,\n ]),\n ...props.request.color.map(\n (entry: IAutoMovieInspectionColorAssignment): [\"color\", string] => [\n \"color\",\n entry.pattern,\n ],\n ),\n ...(view.type === \"named\" && view.focus?.type === \"pattern\"\n ? [[\"focus\", view.focus.pattern] as [\"focus\", string]]\n : []),\n ];\n return patterns.map(\n ([role, pattern]: [\n IAutoMovieCaptureResolution[\"role\"],\n string,\n ]): IAutoMovieCaptureResolution => {\n const matched: string[] = paths.filter((path: string): boolean =>\n matchAutoMovieInspectionPath(path, pattern),\n );\n const reached: Set<string> = new Set(matched);\n\n // A path is listed when none of its ancestors matched too.\n const topmost: string[] = matched.filter((path: string): boolean => {\n const names: string[] = path.split(\"/\");\n for (let depth: number = 1; depth < names.length; depth++)\n if (reached.has(names.slice(0, depth).join(\"/\"))) return false;\n return true;\n });\n return { role, pattern, paths: topmost, count: matched.length };\n },\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BA,SAAgB,gCACd,OAC+B;CAC/B,MAAM,QAAkB,CAAC,GAAG,IAAI,IAAI,MAAM,KAAK,CAAC;CAChD,MAAM,OAAiC,6BACrC,MAAM,IACR;CAwBA,OAAO;EAtBL,GAAG,MAAM,QAAQ,MAAM,KAAK,YAAuC,CACjE,SACA,OACF,CAAC;EACD,GAAG,MAAM,QAAQ,KAAK,KAAK,YAAsC,CAC/D,QACA,OACF,CAAC;EACD,GAAG,MAAM,QAAQ,MAAM,KAAK,YAAuC,CACjE,SACA,OACF,CAAC;EACD,GAAG,MAAM,QAAQ,MAAM,KACpB,UAAkE,CACjE,SACA,MAAM,OACR,CACF;EACA,GAAI,KAAK,SAAS,WAAW,KAAK,OAAO,SAAS,YAC9C,CAAC,CAAC,SAAS,KAAK,MAAM,OAAO,CAAsB,IACnD,CAAC;CAEO,CAAC,CAAC,KACb,CAAC,MAAM,aAG2B;EACjC,MAAM,UAAoB,MAAM,QAAQ,SACtC,6BAA6B,MAAM,OAAO,CAC5C;EACA,MAAM,UAAuB,IAAI,IAAI,OAAO;EAS5C,OAAO;GAAE;GAAM;GAAS,OANE,QAAQ,QAAQ,SAA0B;IAClE,MAAM,QAAkB,KAAK,MAAM,GAAG;IACtC,KAAK,IAAI,QAAgB,GAAG,QAAQ,MAAM,QAAQ,SAChD,IAAI,QAAQ,IAAI,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,OAAO;IAC3D,OAAO;GACT,CACqC;GAAG,OAAO,QAAQ;EAAO;CAChE,CACF;AACF"}
@@ -1,8 +1,4 @@
1
- import type { AutoMovieCaptureFolder } from "./AutoMovieCaptureFolder.js";
2
- import type { IAutoMovieCaptureCell } from "./IAutoMovieCaptureCell.js";
3
- import type { IAutoMovieCaptureDrawing } from "./IAutoMovieCaptureDrawing.js";
4
- import type { IAutoMovieCapturePlan } from "./IAutoMovieCapturePlan.js";
5
- import type { IAutoMovieCaptureRecord } from "./IAutoMovieCaptureRecord.js";
1
+ import type { IAutoMovieCaptureRecord, IAutoMovieRunCaptureProps } from "@automovie/interface";
6
2
  /**
7
3
  * Draw a planned capture through the host's draw function and write its stills, contact sheets and record into its opened folder, so every rule of a capture runs the same in a Node host, a page and a test.
8
4
  *
@@ -24,21 +20,6 @@ import type { IAutoMovieCaptureRecord } from "./IAutoMovieCaptureRecord.js";
24
20
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each cell is drawn once; nothing is shared between runs.
25
21
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One drawn still and the sheet being filled are held at a time, plus one record row per cell.
26
22
  */
27
- export declare function runAutoMovieCapture(props: {
28
- /** The capture, planned by `planAutoMovieCapture`. */
29
- plan: IAutoMovieCapturePlan;
30
- /** The host's draw function, called once per cell in plan order. */
31
- draw: (cell: IAutoMovieCaptureCell) => Promise<IAutoMovieCaptureDrawing>;
32
- /** The capture's folder, opened for the plan's round and compared round. */
33
- folder: AutoMovieCaptureFolder;
34
- /** Source revision the host draws from, such as a commit hash. */
35
- revision: string;
36
- /** How a comparison pairs cells: `cell` for two captures of a drawn subject, `time` for an encoded file against its source. */
37
- match: "cell" | "time";
38
- /** The video file the stills come from, with its detected cuts, recorded as it is; absent for a drawn subject. */
39
- video?: IAutoMovieCaptureRecord.IVideo;
40
- /** The subject owner's own section of the record, such as a motion case's verdicts and metrics, written as it is; absent when the owner has none. */
41
- section?: Readonly<Record<string, unknown>>;
42
- }): Promise<Extract<IAutoMovieCaptureRecord, {
23
+ export declare function runAutoMovieCapture(props: IAutoMovieRunCaptureProps): Promise<Extract<IAutoMovieCaptureRecord, {
43
24
  state: "complete";
44
25
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"runAutoMovieCapture.js","sourceRoot":"","sources":["../../src/capture/runAutoMovieCapture.ts"],"names":[],"mappings":";;;AAAA,gFAA0E;AAE1E,wFAAkF;AAClF,wFAAkF;AAClF,0FAAoF;AAOpF,yFAAmF;AACnF,iGAA2F;AAC3F,+EAAyE;AACzE,qFAA+E;AAE/E;;;;;;;;;;;;;;;;;;;;GAoBG;AACI,KAAK,8BAA8B,KAqBzC;IACC,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAC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AAE,CAAC;IAC3C,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,IAAA,sDAAwB,EAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACzE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runAutoMovieCapture.mjs","names":[],"sources":["../../src/capture/runAutoMovieCapture.ts"],"sourcesContent":["import { AutoMovieRasterSheet } from \"../picture/AutoMovieRasterSheet.js\";\nimport type { IAutoMovieRasterImage } from \"../picture/IAutoMovieRasterImage.js\";\nimport { encodeAutoMovieRasterPng } from \"../picture/encodeAutoMovieRasterPng.js\";\nimport { hashAutoMovieRasterImage } from \"../picture/hashAutoMovieRasterImage.js\";\nimport { stampAutoMovieRasterLabel } from \"../picture/stampAutoMovieRasterLabel.js\";\nimport type { AutoMovieCaptureFolder } from \"./AutoMovieCaptureFolder.js\";\nimport type { IAutoMovieCaptureCell } from \"./IAutoMovieCaptureCell.js\";\nimport type { IAutoMovieCaptureComparison } from \"./IAutoMovieCaptureComparison.js\";\nimport type { IAutoMovieCaptureDrawing } from \"./IAutoMovieCaptureDrawing.js\";\nimport type { IAutoMovieCapturePlan } from \"./IAutoMovieCapturePlan.js\";\nimport type { IAutoMovieCaptureRecord } from \"./IAutoMovieCaptureRecord.js\";\nimport { compareAutoMovieCaptureRounds } from \"./compareAutoMovieCaptureRounds.js\";\nimport { formatAutoMovieCapturePlanRequest } from \"./formatAutoMovieCapturePlanRequest.js\";\nimport { markAutoMovieCaptureCell } from \"./markAutoMovieCaptureCell.js\";\nimport { scaleAutoMovieCaptureLabels } from \"./scaleAutoMovieCaptureLabels.js\";\n\n/**\n * Draw a planned capture through the host's draw function and write its stills, contact sheets and record into its opened folder, so every rule of a capture runs the same in a Node host, a page and a test.\n *\n * Each cell is drawn in plan order, one at a time. A drawn still gets its labels stamped at their anchors, at a scale that keeps a label's font pixel at least one sheet pixel after the still is reduced into its cell, and is written as `<cell name>.png` with its content hash. A cell whose draw throws, or returns a picture that is not the subject's raster, is recorded with the cause and stands on the sheet as a marked cell, and the run continues. Sheets are written as `sheet-001.png` onwards as each fills. With a `compare` round, `compareAutoMovieCaptureRounds` follows at `match`. The record comes last.\n *\n * Files are touched in the order `AutoMovieCaptureFolder` states: the host opens the folder for the plan's round and compared round, which checks both before anything is deleted; every still and sheet is claimed in a `running` record before the first is written, the comparison's files are claimed before it writes, and the `complete` record is written last. It rejects a folder opened for another round, and a storage failure, leaving a record that owns every file written so far.\n *\n * ```ts\n * const plan = planAutoMovieCapture({ request, subject, cuts: [] });\n * const folder = await AutoMovieCaptureFolder.open({ storage: fs, root: \"media/capture\", round: request.round, compare: request.compare });\n * const record = await runAutoMovieCapture({ plan, draw, folder, revision, match: \"cell\" });\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is drawn and in what order, how labels are scaled and why, what happens to a failed cell, the file names, the order of file steps, and what a failure leaves.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/capture.md`: a cell that could not be drawn stays on the sheet with its cause, and the record keeps what repeats each observation. Pixels and files come only through the injected draw function and the folder's injected storage, so the order of file steps runs under a unit test.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Claim, then one loop that draws, stamps, writes and lays each cell, then the last sheet, the comparison and the record; folder rules are the folder's and comparison rules the comparison's.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A failed draw is recorded, never retried or replaced by a blank still, and a picture at the wrong raster is a failure rather than resized.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the cells and their pixels: one encoding, one hash and one reduction per still, one encoding per sheet.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each cell is drawn once; nothing is shared between runs.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One drawn still and the sheet being filled are held at a time, plus one record row per cell.\n */\nexport async function runAutoMovieCapture(props: {\n /** The capture, planned by `planAutoMovieCapture`. */\n plan: IAutoMovieCapturePlan;\n\n /** The host's draw function, called once per cell in plan order. */\n draw: (cell: IAutoMovieCaptureCell) => Promise<IAutoMovieCaptureDrawing>;\n\n /** The capture's folder, opened for the plan's round and compared round. */\n folder: AutoMovieCaptureFolder;\n\n /** Source revision the host draws from, such as a commit hash. */\n revision: string;\n\n /** How a comparison pairs cells: `cell` for two captures of a drawn subject, `time` for an encoded file against its source. */\n match: \"cell\" | \"time\";\n\n /** The video file the stills come from, with its detected cuts, recorded as it is; absent for a drawn subject. */\n video?: IAutoMovieCaptureRecord.IVideo;\n\n /** The subject owner's own section of the record, such as a motion case's verdicts and metrics, written as it is; absent when the owner has none. */\n section?: Readonly<Record<string, unknown>>;\n}): Promise<Extract<IAutoMovieCaptureRecord, { state: \"complete\" }>> {\n const { plan } = props;\n const { layout, subject, request } = plan;\n const { folder } = props;\n if (folder.round !== request.round || folder.compare !== request.compare)\n throw new Error(\n `The capture folder was opened for round ${folder.round ?? \"none\"} compared with ${folder.compare ?? \"none\"}, but the plan asks for ${request.round ?? \"none\"} compared with ${request.compare ?? \"none\"}`,\n );\n\n // Claim every still and sheet before the first is written.\n const sheetNames: string[] = Array.from(\n { length: layout.sheets },\n (_: unknown, index: number): string =>\n `sheet-${String(index + 1).padStart(3, \"0\")}.png`,\n );\n await folder.claim([\n ...plan.cells.map(\n (cell: IAutoMovieCaptureCell): string => `${cell.name}.png`,\n ),\n ...sheetNames,\n ]);\n\n // A label's font pixel stays at least one sheet pixel once the still is reduced into its cell.\n const labelScale: number = scaleAutoMovieCaptureLabels(subject, layout);\n\n // Draw, stamp, write and lay each cell in plan order.\n const rows: IAutoMovieCaptureRecord.Row[] = [];\n const sheets: string[] = [];\n let sheet: AutoMovieRasterSheet | null = null;\n for (const cell of plan.cells) {\n const place: Pick<IAutoMovieCaptureRecord.Row, \"sheet\" | \"row\" | \"column\"> =\n {\n sheet: sheetNames[Math.floor(cell.index / layout.perSheet)]!,\n row: Math.floor((cell.index % layout.perSheet) / layout.columns),\n column: (cell.index % layout.perSheet) % layout.columns,\n };\n const fixed: Pick<\n IAutoMovieCaptureRecord.Row,\n \"index\" | \"name\" | \"selection\" | \"time\" | \"view\" | \"pass\" | \"label\"\n > = {\n index: cell.index,\n name: cell.name,\n selection: cell.selection,\n time: cell.time,\n view: cell.view,\n pass: cell.pass,\n label: cell.label,\n };\n sheet ??= new AutoMovieRasterSheet(\n layout.perSheet,\n layout.columns,\n layout.cell.width,\n layout.cell.height,\n layout.reduction,\n layout.lines,\n );\n let drawing: IAutoMovieCaptureDrawing;\n try {\n drawing = await props.draw(cell);\n if (\n drawing.picture.width !== subject.width ||\n drawing.picture.height !== subject.height\n )\n throw new Error(\n `the draw returned ${drawing.picture.width}x${drawing.picture.height} pixels where the subject is ${subject.width}x${subject.height}`,\n );\n } catch (error) {\n const cause: string =\n error instanceof Error ? error.message : String(error);\n rows.push({ ...fixed, ...place, state: \"failed\", cause });\n sheet.add(\n markAutoMovieCaptureCell(layout.cell),\n `${cell.caption} not drawn`,\n );\n sheet = await full(sheet, cell, folder, sheets, sheetNames, plan);\n continue;\n }\n const picture: IAutoMovieRasterImage = drawing.picture;\n for (const label of drawing.labels)\n stampAutoMovieRasterLabel(picture, label.text, labelScale, label);\n const file: string = `${cell.name}.png`;\n await folder.write(file, await encodeAutoMovieRasterPng(picture));\n rows.push({\n ...fixed,\n ...place,\n state: \"drawn\",\n file,\n hash: hashAutoMovieRasterImage(picture),\n backend: drawing.backend ?? null,\n camera: drawing.camera ?? null,\n repeat: drawing.repeat ?? null,\n resolved: drawing.resolved ?? null,\n });\n sheet.add(picture, cell.caption);\n sheet = await full(sheet, cell, folder, sheets, sheetNames, plan);\n }\n\n // The comparison, then the record.\n const comparison: IAutoMovieCaptureComparison | null =\n request.compare === null\n ? null\n : await compareAutoMovieCaptureRounds({\n folder,\n round: request.compare,\n rows,\n match: props.match,\n tolerance: request.tolerance,\n budget: request.budget,\n raster: { width: subject.width, height: subject.height },\n });\n return folder.close({\n subject: {\n name: subject.name,\n durationSeconds: subject.durationSeconds,\n fps: subject.fps,\n width: subject.width,\n height: subject.height,\n },\n revision: props.revision,\n request: formatAutoMovieCapturePlanRequest(request),\n budget: request.budget,\n layout,\n times: plan.times,\n windows: plan.windows,\n rows,\n sheets,\n comparison,\n video: props.video ?? null,\n section: props.section ?? null,\n });\n}\n\n/** Write the sheet when this cell filled it or was the plan's last, and hand back the sheet still being filled. */\nasync function full(\n sheet: AutoMovieRasterSheet,\n cell: IAutoMovieCaptureCell,\n folder: AutoMovieCaptureFolder,\n sheets: string[],\n names: readonly string[],\n plan: IAutoMovieCapturePlan,\n): Promise<AutoMovieRasterSheet | null> {\n const last: boolean = cell.index === plan.cells.length - 1;\n if ((cell.index + 1) % plan.layout.perSheet !== 0 && !last) return sheet;\n const name: string = names[sheets.length]!;\n await folder.write(name, await encodeAutoMovieRasterPng(sheet.finish()));\n sheets.push(name);\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,eAAsB,oBAAoB,OAqB2B;CACnE,MAAM,EAAE,SAAS;CACjB,MAAM,EAAE,QAAQ,SAAS,YAAY;CACrC,MAAM,EAAE,WAAW;CACnB,IAAI,OAAO,UAAU,QAAQ,SAAS,OAAO,YAAY,QAAQ,SAC/D,MAAM,IAAI,MACR,2CAA2C,OAAO,SAAS,OAAO,iBAAiB,OAAO,WAAW,OAAO,0BAA0B,QAAQ,SAAS,OAAO,iBAAiB,QAAQ,WAAW,QACpM;CAGF,MAAM,aAAuB,MAAM,KACjC,EAAE,QAAQ,OAAO,OAAO,IACvB,GAAY,UACX,SAAS,OAAO,QAAQ,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,EAAE,KAChD;CACA,MAAM,OAAO,MAAM,CACjB,GAAG,KAAK,MAAM,KACX,SAAwC,GAAG,KAAK,KAAK,KACxD,GACA,GAAG,UACL,CAAC;CAGD,MAAM,aAAqB,4BAA4B,SAAS,MAAM;CAGtE,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"sources":["../../src/capture/runAutoMovieCapture.ts"],"sourcesContent":["import type {\n IAutoMovieCaptureCell,\n IAutoMovieCaptureCellRecord,\n IAutoMovieCaptureComparison,\n IAutoMovieCaptureDrawing,\n IAutoMovieCaptureFolder,\n IAutoMovieCapturePlan,\n IAutoMovieCaptureRecord,\n IAutoMovieRasterImage,\n IAutoMovieRunCaptureProps,\n} from \"@automovie/interface\";\n\nimport { AutoMovieRasterSheet } from \"../picture/AutoMovieRasterSheet.js\";\nimport { encodeAutoMovieRasterPng } from \"../picture/encodeAutoMovieRasterPng.js\";\nimport { hashAutoMovieRasterImage } from \"../picture/hashAutoMovieRasterImage.js\";\nimport { stampAutoMovieRasterLabel } from \"../picture/stampAutoMovieRasterLabel.js\";\nimport { compareAutoMovieCaptureRounds } from \"./compareAutoMovieCaptureRounds.js\";\nimport { formatAutoMovieCapturePlanRequest } from \"./formatAutoMovieCapturePlanRequest.js\";\nimport { markAutoMovieCaptureCell } from \"./markAutoMovieCaptureCell.js\";\nimport { scaleAutoMovieCaptureLabels } from \"./scaleAutoMovieCaptureLabels.js\";\n\n/**\n * Draw a planned capture through the host's draw function and write its stills, contact sheets and record into its opened folder, so every rule of a capture runs the same in a Node host, a page and a test.\n *\n * Each cell is drawn in plan order, one at a time. A drawn still gets its labels stamped at their anchors, at a scale that keeps a label's font pixel at least one sheet pixel after the still is reduced into its cell, and is written as `<cell name>.png` with its content hash. A cell whose draw throws, or returns a picture that is not the subject's raster, is recorded with the cause and stands on the sheet as a marked cell, and the run continues. Sheets are written as `sheet-001.png` onwards as each fills. With a `compare` round, `compareAutoMovieCaptureRounds` follows at `match`. The record comes last.\n *\n * Files are touched in the order `AutoMovieCaptureFolder` states: the host opens the folder for the plan's round and compared round, which checks both before anything is deleted; every still and sheet is claimed in a `running` record before the first is written, the comparison's files are claimed before it writes, and the `complete` record is written last. It rejects a folder opened for another round, and a storage failure, leaving a record that owns every file written so far.\n *\n * ```ts\n * const plan = planAutoMovieCapture({ request, subject, cuts: [] });\n * const folder = await AutoMovieCaptureFolder.open({ storage: fs, root: \"media/capture\", round: request.round, compare: request.compare });\n * const record = await runAutoMovieCapture({ plan, draw, folder, revision, match: \"cell\" });\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is drawn and in what order, how labels are scaled and why, what happens to a failed cell, the file names, the order of file steps, and what a failure leaves.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/capture.md`: a cell that could not be drawn stays on the sheet with its cause, and the record keeps what repeats each observation. Pixels and files come only through the injected draw function and the folder's injected storage, so the order of file steps runs under a unit test.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Claim, then one loop that draws, stamps, writes and lays each cell, then the last sheet, the comparison and the record; folder rules are the folder's and comparison rules the comparison's.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A failed draw is recorded, never retried or replaced by a blank still, and a picture at the wrong raster is a failure rather than resized.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the cells and their pixels: one encoding, one hash and one reduction per still, one encoding per sheet.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each cell is drawn once; nothing is shared between runs.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One drawn still and the sheet being filled are held at a time, plus one record row per cell.\n */\nexport async function runAutoMovieCapture(\n props: IAutoMovieRunCaptureProps,\n): Promise<Extract<IAutoMovieCaptureRecord, { state: \"complete\" }>> {\n const { plan } = props;\n const { layout, subject, request } = plan;\n const { folder } = props;\n if (folder.round !== request.round || folder.compare !== request.compare)\n throw new Error(\n `The capture folder was opened for round ${folder.round ?? \"none\"} compared with ${folder.compare ?? \"none\"}, but the plan asks for ${request.round ?? \"none\"} compared with ${request.compare ?? \"none\"}`,\n );\n\n // Claim every still and sheet before the first is written.\n const sheetNames: string[] = Array.from(\n { length: layout.sheets },\n (_: unknown, index: number): string =>\n `sheet-${String(index + 1).padStart(3, \"0\")}.png`,\n );\n await folder.claim([\n ...plan.cells.map(\n (cell: IAutoMovieCaptureCell): string => `${cell.name}.png`,\n ),\n ...sheetNames,\n ]);\n\n // A label's font pixel stays at least one sheet pixel once the still is reduced into its cell.\n const labelScale: number = scaleAutoMovieCaptureLabels(subject, layout);\n\n // Draw, stamp, write and lay each cell in plan order.\n const rows: IAutoMovieCaptureCellRecord[] = [];\n const sheets: string[] = [];\n let sheet: AutoMovieRasterSheet | null = null;\n for (const cell of plan.cells) {\n const place: Pick<IAutoMovieCaptureCellRecord, \"sheet\" | \"row\" | \"column\"> =\n {\n sheet: sheetNames[Math.floor(cell.index / layout.perSheet)]!,\n row: Math.floor((cell.index % layout.perSheet) / layout.columns),\n column: (cell.index % layout.perSheet) % layout.columns,\n };\n const fixed: Pick<\n IAutoMovieCaptureCellRecord,\n \"index\" | \"name\" | \"selection\" | \"time\" | \"view\" | \"pass\" | \"label\"\n > = {\n index: cell.index,\n name: cell.name,\n selection: cell.selection,\n time: cell.time,\n view: cell.view,\n pass: cell.pass,\n label: cell.label,\n };\n sheet ??= new AutoMovieRasterSheet(\n layout.perSheet,\n layout.columns,\n layout.cell.width,\n layout.cell.height,\n layout.reduction,\n layout.lines,\n );\n let drawing: IAutoMovieCaptureDrawing;\n try {\n drawing = await props.draw(cell);\n if (\n drawing.picture.width !== subject.width ||\n drawing.picture.height !== subject.height\n )\n throw new Error(\n `the draw returned ${drawing.picture.width}x${drawing.picture.height} pixels where the subject is ${subject.width}x${subject.height}`,\n );\n } catch (error) {\n const cause: string =\n error instanceof Error ? error.message : String(error);\n rows.push({ ...fixed, ...place, state: \"failed\", cause });\n sheet.add(\n markAutoMovieCaptureCell(layout.cell),\n `${cell.caption} not drawn`,\n );\n sheet = await full(sheet, cell, folder, sheets, sheetNames, plan);\n continue;\n }\n const picture: IAutoMovieRasterImage = drawing.picture;\n for (const label of drawing.labels)\n stampAutoMovieRasterLabel(picture, label.text, labelScale, label);\n const file: string = `${cell.name}.png`;\n await folder.write(file, await encodeAutoMovieRasterPng(picture));\n rows.push({\n ...fixed,\n ...place,\n state: \"drawn\",\n file,\n hash: hashAutoMovieRasterImage(picture),\n backend: drawing.backend ?? null,\n camera: drawing.camera ?? null,\n repeat: drawing.repeat ?? null,\n resolved: drawing.resolved ?? null,\n });\n sheet.add(picture, cell.caption);\n sheet = await full(sheet, cell, folder, sheets, sheetNames, plan);\n }\n\n // The comparison, then the record.\n const comparison: IAutoMovieCaptureComparison | null =\n request.compare === null\n ? null\n : await compareAutoMovieCaptureRounds({\n folder,\n round: request.compare,\n rows,\n match: props.match,\n tolerance: request.tolerance,\n budget: request.budget,\n raster: { width: subject.width, height: subject.height },\n });\n return folder.close({\n subject: {\n name: subject.name,\n durationSeconds: subject.durationSeconds,\n fps: subject.fps,\n width: subject.width,\n height: subject.height,\n },\n revision: props.revision,\n request: formatAutoMovieCapturePlanRequest(request),\n budget: request.budget,\n layout,\n times: plan.times,\n windows: plan.windows,\n rows,\n sheets,\n comparison,\n video: props.video ?? null,\n section: props.section ?? null,\n });\n}\n\n/** Write the sheet when this cell filled it or was the plan's last, and hand back the sheet still being filled. */\nasync function full(\n sheet: AutoMovieRasterSheet,\n cell: IAutoMovieCaptureCell,\n folder: IAutoMovieCaptureFolder,\n sheets: string[],\n names: readonly string[],\n plan: IAutoMovieCapturePlan,\n): Promise<AutoMovieRasterSheet | null> {\n const last: boolean = cell.index === plan.cells.length - 1;\n if ((cell.index + 1) % plan.layout.perSheet !== 0 && !last) return sheet;\n const name: string = names[sheets.length]!;\n await folder.write(name, await encodeAutoMovieRasterPng(sheet.finish()));\n sheets.push(name);\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,eAAsB,oBACpB,OACkE;CAClE,MAAM,EAAE,SAAS;CACjB,MAAM,EAAE,QAAQ,SAAS,YAAY;CACrC,MAAM,EAAE,WAAW;CACnB,IAAI,OAAO,UAAU,QAAQ,SAAS,OAAO,YAAY,QAAQ,SAC/D,MAAM,IAAI,MACR,2CAA2C,OAAO,SAAS,OAAO,iBAAiB,O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,CAAC;AACH;;AAGA,eAAe,KACb,OACA,MACA,QACA,QACA,OACA,MACsC;CACtC,MAAM,OAAgB,KAAK,UAAU,KAAK,MAAM,SAAS;CACzD,KAAK,KAAK,QAAQ,KAAK,KAAK,OAAO,aAAa,KAAK,CAAC,MAAM,OAAO;CACnE,MAAM,OAAe,MAAM,OAAO;CAClC,MAAM,OAAO,MAAM,MAAM,MAAM,yBAAyB,MAAM,OAAO,CAAC,CAAC;CACvE,OAAO,KAAK,IAAI;CAChB,OAAO;AACT"}
@@ -1,7 +1,4 @@
1
- import type { IAutoMovieCapturePlanRequest } from "./IAutoMovieCapturePlanRequest.js";
2
- import type { IAutoMovieCaptureRecord } from "./IAutoMovieCaptureRecord.js";
3
- import type { IAutoMovieCaptureStorage } from "./IAutoMovieCaptureStorage.js";
4
- import type { IAutoMovieCaptureSubject } from "./IAutoMovieCaptureSubject.js";
1
+ import type { IAutoMovieCaptureRecord, IAutoMovieRunVideoCaptureProps } from "@automovie/interface";
5
2
  /**
6
3
  * Capture an encoded or generated video file as stills of its own frames: the frames around every cut the file holds and every event the request names, beside an even sampling, through the same folder, sheets, record and comparison as a drawn capture.
7
4
  *
@@ -24,21 +21,6 @@ import type { IAutoMovieCaptureSubject } from "./IAutoMovieCaptureSubject.js";
24
21
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each run detects and extracts afresh, because the file may have changed.
25
22
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Extracted stills wait in the folder, claimed by its record, and each is deleted once read; one decoded still is held at a time.
26
23
  */
27
- export declare function runAutoMovieVideoCapture(props: {
28
- /** Path of the video file, as the process runner reads it. */
29
- file: string;
30
- /** The file's clock and raster, which the host knows from its source or a probe. */
31
- subject: Pick<IAutoMovieCaptureSubject, "name" | "durationSeconds" | "fps" | "width" | "height">;
32
- /** What the capture asks for. */
33
- request: IAutoMovieCapturePlanRequest;
34
- /** Where files are read and written. */
35
- storage: IAutoMovieCaptureStorage;
36
- /** The capture's root folder. */
37
- root: string;
38
- /** Runs FFmpeg with the given arguments and resolves when it ends successfully. */
39
- run: (args: readonly string[]) => Promise<void>;
40
- /** Source revision the host captures from. */
41
- revision: string;
42
- }): Promise<Extract<IAutoMovieCaptureRecord, {
24
+ export declare function runAutoMovieVideoCapture(props: IAutoMovieRunVideoCaptureProps): Promise<Extract<IAutoMovieCaptureRecord, {
43
25
  state: "complete";
44
26
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"runAutoMovieVideoCapture.js","sourceRoot":"","sources":["../../src/capture/runAutoMovieVideoCapture.ts"],"names":[],"mappings":";;;AAAA,wFAAkF;AAClF,iHAA2G;AAC3G,2EAAqE;AAQrE,uEAAiE;AACjE,+EAAyE;AACzE,qFAA+E;AAC/E,qFAA+E;AAC/E,qEAA+D;AAE/D,uEAAuE;AACvE,MAAM,SAAS,GAAW,MAAM,CAAC;AAEjC,oEAAoE;AACpE,MAAM,MAAM,GAAW,cAAc,CAAC;AAEtC,iFAAiF;AACjF,MAAM,OAAO,GAAW,QAAQ,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,KAAK,mCAAmC,KAwB9C;IACC,sEAAsE;IACtE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,IACE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,MAAM;QAClC,OAAO,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC;QAC3B,OAAO,CAAC,KAAK,KAAK,IAAI;QACtB,IAAA,sEAAgC,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC;QAEjE,MAAM,IAAI,KAAK,CACb,kGAAkG,CACnG,CAAC;IACJ,MAAM,OAAO,GAA6B;QACxC,GAAG,KAAK,CAAC,OAAO;QAChB,KAAK,EAAE,CAAC,SAAS,CAAC;QAClB,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,EAAE;KACV,CAAC;IACF,MAAM,WAAW,GAAiC;QAChD,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O,IAAA,4CAAmB,EAAC;QACzB,IAAI,EAAE,OAAO;QACb,MAAM;QACN,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE;QAC/D,IAAI,EAAE,KAAK,EACT,IAA2B,EACQ,EAAE;YACrC,MAAM,IAAI,GAAW,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAM,CAAE,CAAC;YACtD,IAAI,KAAiB,CAAC;YACtB,IAAI,CAAC;gBACH,KAAK,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,CAAC,IAAI,iBAAiB,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAC1G,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;YACJ,CAAC;YACD,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC1B,OAAO;gBACL,OAAO,EAAE,MAAM,IAAA,sDAAwB,EAAC,KAAK,CAAC;gBAC9C,MAAM,EAAE,EAAE;gBACV,OAAO,EAAE,OAAO;aACjB,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runAutoMovieVideoCapture.mjs","names":[],"sources":["../../src/capture/runAutoMovieVideoCapture.ts"],"sourcesContent":["import { decodeAutoMovieRasterPng } from \"../picture/decodeAutoMovieRasterPng.js\";\nimport { formatAutoMovieInspectionRequest } from \"../scene/inspection/formatAutoMovieInspectionRequest.js\";\nimport { AutoMovieCaptureFolder } from \"./AutoMovieCaptureFolder.js\";\nimport type { IAutoMovieCaptureCell } from \"./IAutoMovieCaptureCell.js\";\nimport type { IAutoMovieCaptureDrawing } from \"./IAutoMovieCaptureDrawing.js\";\nimport type { IAutoMovieCapturePlan } from \"./IAutoMovieCapturePlan.js\";\nimport type { IAutoMovieCapturePlanRequest } from \"./IAutoMovieCapturePlanRequest.js\";\nimport type { IAutoMovieCaptureRecord } from \"./IAutoMovieCaptureRecord.js\";\nimport type { IAutoMovieCaptureStorage } from \"./IAutoMovieCaptureStorage.js\";\nimport type { IAutoMovieCaptureSubject } from \"./IAutoMovieCaptureSubject.js\";\nimport { planAutoMovieCapture } from \"./planAutoMovieCapture.js\";\nimport { planAutoMovieVideoFrames } from \"./planAutoMovieVideoFrames.js\";\nimport { planAutoMovieVideoSceneCuts } from \"./planAutoMovieVideoSceneCuts.js\";\nimport { readAutoMovieVideoSceneCuts } from \"./readAutoMovieVideoSceneCuts.js\";\nimport { runAutoMovieCapture } from \"./runAutoMovieCapture.js\";\n\n/** The view name a file's cells are drawn through: the file itself. */\nconst FILE_VIEW: string = \"file\";\n\n/** The report the scene-cut detection writes, deleted once read. */\nconst REPORT: string = \"scenecut.txt\";\n\n/** The renderer a file's still is recorded as coming from: FFmpeg decoded it. */\nconst BACKEND: string = \"ffmpeg\";\n\n/**\n * Capture an encoded or generated video file as stills of its own frames: the frames around every cut the file holds and every event the request names, beside an even sampling, through the same folder, sheets, record and comparison as a drawn capture.\n *\n * The steps, each through the injected storage and process runner:\n *\n * 1. Plan the request against the file's clock with no cuts, refusing what the file cannot give before the folder is touched.\n * 2. Open the folder, run `planAutoMovieVideoSceneCuts` at `request.threshold`, read the report with `readAutoMovieVideoSceneCuts` and delete it.\n * 3. Plan again with the cuts, so every frame within `request.window` frames of a cut is planned as an event's are.\n * 4. Run `planAutoMovieVideoFrames` for the planned frames, then let `runAutoMovieCapture` read each extracted still as its cell's picture, delete the extracted file and write the still under the cell's name.\n *\n * Each still is captioned by its frame index and second. A planned frame the file does not hold, as when the file is shorter than its stated duration, is a failed cell with the cause, and a comparison against the source's round at `time` matching reports it unmatched. The record lists the file, the threshold and every detected cut with its score, so a file with no cut records zero cuts at the threshold used.\n *\n * It rejects a request that asks for views, passes, a sweep or an inspection, since a file's pixels are drawn already, and explicit seconds that fall between the file's frames.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States every step and its order, what a still is captioned by, what a missing frame becomes, what the record adds, and every refusal.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/capture.md`: around every cut and decisive instant capture the output's own consecutive frames, and sample a file from the file itself at the same seconds as its source. Frames are selected by index, so each still is a frame the file holds, and the source pairing is the round comparison's `time` matching.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Plan, detect cuts, plan again, extract, then the shared capture run; FFmpeg's arguments, the report reader and the frame plan each belong to their own function.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A frame missing from the file is recorded as a failure, never filled from a neighbour, and a still keeps the file's decoded pixels.\n * @evidence contracts/development/implementation.md#efficient-algorithms Two FFmpeg runs decode the file twice, once for cuts and once for the frames; each extracted still is read, decoded and encoded once.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each run detects and extracts afresh, because the file may have changed.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Extracted stills wait in the folder, claimed by its record, and each is deleted once read; one decoded still is held at a time.\n */\nexport async function runAutoMovieVideoCapture(props: {\n /** Path of the video file, as the process runner reads it. */\n file: string;\n\n /** The file's clock and raster, which the host knows from its source or a probe. */\n subject: Pick<\n IAutoMovieCaptureSubject,\n \"name\" | \"durationSeconds\" | \"fps\" | \"width\" | \"height\"\n >;\n\n /** What the capture asks for. */\n request: IAutoMovieCapturePlanRequest;\n\n /** Where files are read and written. */\n storage: IAutoMovieCaptureStorage;\n\n /** The capture's root folder. */\n root: string;\n\n /** Runs FFmpeg with the given arguments and resolves when it ends successfully. */\n run: (args: readonly string[]) => Promise<void>;\n\n /** Source revision the host captures from. */\n revision: string;\n}): Promise<Extract<IAutoMovieCaptureRecord, { state: \"complete\" }>> {\n // 1. What a file cannot give is refused before the folder is touched.\n const { request } = props;\n if (\n request.views.join(\";\") !== \"film\" ||\n request.passes.length !== 1 ||\n request.sweep !== null ||\n formatAutoMovieInspectionRequest(request.inspection).length !== 0\n )\n throw new Error(\n \"A video file's capture takes no views, passes, sweep or inspection: its pixels are drawn already\",\n );\n const subject: IAutoMovieCaptureSubject = {\n ...props.subject,\n views: [FILE_VIEW],\n drawables: [],\n marks: [],\n };\n const fileRequest: IAutoMovieCapturePlanRequest = {\n ...request,\n views: [FILE_VIEW],\n };\n const plan: (cuts: readonly number[]) => IAutoMovieCapturePlan = (\n cuts: readonly number[],\n ): IAutoMovieCapturePlan => {\n const planned: IAutoMovieCapturePlan = planAutoMovieCapture({\n request: fileRequest,\n subject,\n cuts,\n });\n const between: IAutoMovieCaptureCell | undefined = planned.cells.find(\n (cell: IAutoMovieCaptureCell): boolean => cell.time.frame === null,\n );\n if (between !== undefined)\n throw new Error(\n `Second ${between.time.seconds} falls between the frames of ${props.file}`,\n );\n return planned;\n };\n plan([]);\n\n // 2. Detect the cuts.\n const folder: AutoMovieCaptureFolder = await AutoMovieCaptureFolder.open({\n storage: props.storage,\n root: props.root,\n round: request.round,\n compare: request.compare,\n });\n await folder.claim([REPORT]);\n await props.run(\n planAutoMovieVideoSceneCuts({\n file: props.file,\n report: `${folder.directory}/${REPORT}`,\n threshold: request.threshold,\n }),\n );\n const cuts: { seconds: number; score: number }[] =\n readAutoMovieVideoSceneCuts(\n new TextDecoder().decode(await folder.read(REPORT)),\n );\n await folder.remove(REPORT);\n\n // 3. Plan with the cuts, keeping only those within the file's stated duration.\n const planned: IAutoMovieCapturePlan = plan(\n cuts\n .map((cut: { seconds: number; score: number }): number => cut.seconds)\n .filter((seconds: number): boolean => seconds <= subject.durationSeconds),\n );\n\n // 4. Extract the planned frames, then capture them as cells.\n const extracted: Map<number, string> = new Map(\n planned.times.map(\n (time: { frame: number | null }, index: number): [number, string] => [\n time.frame!,\n `s${String(index).padStart(5, \"0\")}.png`,\n ],\n ),\n );\n await folder.claim([...extracted.values()]);\n await props.run(\n planAutoMovieVideoFrames({\n file: props.file,\n frames: [...extracted.keys()],\n directory: folder.directory,\n }),\n );\n return runAutoMovieCapture({\n plan: planned,\n folder,\n revision: props.revision,\n match: \"time\",\n video: { file: props.file, threshold: request.threshold, cuts },\n draw: async (\n cell: IAutoMovieCaptureCell,\n ): Promise<IAutoMovieCaptureDrawing> => {\n const name: string = extracted.get(cell.time.frame!)!;\n let bytes: Uint8Array;\n try {\n bytes = await folder.read(name);\n } catch (error) {\n throw new Error(\n `${props.file} has no frame ${cell.time.frame}: ${error instanceof Error ? error.message : String(error)}`,\n { cause: error },\n );\n }\n await folder.remove(name);\n return {\n picture: await decodeAutoMovieRasterPng(bytes),\n labels: [],\n backend: BACKEND,\n };\n },\n });\n}\n"],"mappings":";;;;;;;;;;AAiBA,MAAM,YAAoB;;AAG1B,MAAM,SAAiB;;AAGvB,MAAM,UAAkB;;;;;;;;;;;;;;;;;;;;;;;AAwBxB,eAAsB,yBAAyB,OAwBsB;CAEnE,MAAM,EAAE,YAAY;CACpB,IACE,QAAQ,MAAM,KAAK,GAAG,MAAM,UAC5B,QAAQ,OAAO,WAAW,KAC1B,QAAQ,UAAU,QAClB,iCAAiC,QAAQ,UAAU,CAAC,CAAC,WAAW,GAEhE,MAAM,IAAI,MACR,kGACF;CACF,MAAM,UAAoC;EACxC,GAAG,MAAM;EACT,OAAO,CAAC,SAAS;EACjB,WAAW,CAAC;EACZ,OAAO,CAAC;CACV;CACA,MAAM,cAA4C;EAChD,GAAG;EACH,OAAO,CAAC,SAAS;CACnB;CACA,MAAM,QACJ,SAC0B;EAC1B,MAAM,UAAiC,qBAAqB;GAC1D,SAAS;GACT;GACA;EACF,CAAC;EACD,MAAM,UAA6C,QAAQ,MAAM,MAC9D,SAAyC,KAAK,KAAK,UAAU,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M,OAAO,KAAK,IAAI;GAChC,SAAS,OAAO;IACd,MAAM,IAAI,MACR,GAAG,MAAM,KAAK,gBAAgB,KAAK,KAAK,MAAM,IAAI,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,KACvG,EAAE,OAAO,MAAM,CACjB;GACF;GACA,MAAM,OAAO,OAAO,IAAI;GACxB,OAAO;IACL,SAAS,MAAM,yBAAyB,KAAK;IAC7C,QAAQ,CAAC;IACT,SAAS;GACX;EACF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"runAutoMovieVideoCapture.mjs","names":[],"sources":["../../src/capture/runAutoMovieVideoCapture.ts"],"sourcesContent":["import type {\n IAutoMovieCaptureCell,\n IAutoMovieCaptureDrawing,\n IAutoMovieCapturePlan,\n IAutoMovieCapturePlanRequest,\n IAutoMovieCaptureRecord,\n IAutoMovieCaptureSubject,\n IAutoMovieRunVideoCaptureProps,\n} from \"@automovie/interface\";\n\nimport { decodeAutoMovieRasterPng } from \"../picture/decodeAutoMovieRasterPng.js\";\nimport { formatAutoMovieInspectionRequest } from \"../scene/inspection/formatAutoMovieInspectionRequest.js\";\nimport { AutoMovieCaptureFolder } from \"./AutoMovieCaptureFolder.js\";\nimport { planAutoMovieCapture } from \"./planAutoMovieCapture.js\";\nimport { planAutoMovieVideoFrames } from \"./planAutoMovieVideoFrames.js\";\nimport { planAutoMovieVideoSceneCuts } from \"./planAutoMovieVideoSceneCuts.js\";\nimport { readAutoMovieVideoSceneCuts } from \"./readAutoMovieVideoSceneCuts.js\";\nimport { runAutoMovieCapture } from \"./runAutoMovieCapture.js\";\n\n/** The view name a file's cells are drawn through: the file itself. */\nconst FILE_VIEW: string = \"file\";\n\n/** The report the scene-cut detection writes, deleted once read. */\nconst REPORT: string = \"scenecut.txt\";\n\n/** The renderer a file's still is recorded as coming from: FFmpeg decoded it. */\nconst BACKEND: string = \"ffmpeg\";\n\n/**\n * Capture an encoded or generated video file as stills of its own frames: the frames around every cut the file holds and every event the request names, beside an even sampling, through the same folder, sheets, record and comparison as a drawn capture.\n *\n * The steps, each through the injected storage and process runner:\n *\n * 1. Plan the request against the file's clock with no cuts, refusing what the file cannot give before the folder is touched.\n * 2. Open the folder, run `planAutoMovieVideoSceneCuts` at `request.threshold`, read the report with `readAutoMovieVideoSceneCuts` and delete it.\n * 3. Plan again with the cuts, so every frame within `request.window` frames of a cut is planned as an event's are.\n * 4. Run `planAutoMovieVideoFrames` for the planned frames, then let `runAutoMovieCapture` read each extracted still as its cell's picture, delete the extracted file and write the still under the cell's name.\n *\n * Each still is captioned by its frame index and second. A planned frame the file does not hold, as when the file is shorter than its stated duration, is a failed cell with the cause, and a comparison against the source's round at `time` matching reports it unmatched. The record lists the file, the threshold and every detected cut with its score, so a file with no cut records zero cuts at the threshold used.\n *\n * It rejects a request that asks for views, passes, a sweep or an inspection, since a file's pixels are drawn already, and explicit seconds that fall between the file's frames.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States every step and its order, what a still is captioned by, what a missing frame becomes, what the record adds, and every refusal.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/capture.md`: around every cut and decisive instant capture the output's own consecutive frames, and sample a file from the file itself at the same seconds as its source. Frames are selected by index, so each still is a frame the file holds, and the source pairing is the round comparison's `time` matching.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Plan, detect cuts, plan again, extract, then the shared capture run; FFmpeg's arguments, the report reader and the frame plan each belong to their own function.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A frame missing from the file is recorded as a failure, never filled from a neighbour, and a still keeps the file's decoded pixels.\n * @evidence contracts/development/implementation.md#efficient-algorithms Two FFmpeg runs decode the file twice, once for cuts and once for the frames; each extracted still is read, decoded and encoded once.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each run detects and extracts afresh, because the file may have changed.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Extracted stills wait in the folder, claimed by its record, and each is deleted once read; one decoded still is held at a time.\n */\nexport async function runAutoMovieVideoCapture(\n props: IAutoMovieRunVideoCaptureProps,\n): Promise<Extract<IAutoMovieCaptureRecord, { state: \"complete\" }>> {\n // 1. What a file cannot give is refused before the folder is touched.\n const { request } = props;\n if (\n request.views.join(\";\") !== \"film\" ||\n request.passes.length !== 1 ||\n request.sweep !== null ||\n formatAutoMovieInspectionRequest(request.inspection).length !== 0\n )\n throw new Error(\n \"A video file's capture takes no views, passes, sweep or inspection: its pixels are drawn already\",\n );\n const subject: IAutoMovieCaptureSubject = {\n ...props.subject,\n views: [FILE_VIEW],\n drawables: [],\n marks: [],\n };\n const fileRequest: IAutoMovieCapturePlanRequest = {\n ...request,\n views: [FILE_VIEW],\n };\n const plan: (cuts: readonly number[]) => IAutoMovieCapturePlan = (\n cuts: readonly number[],\n ): IAutoMovieCapturePlan => {\n const planned: IAutoMovieCapturePlan = planAutoMovieCapture({\n request: fileRequest,\n subject,\n cuts,\n });\n const between: IAutoMovieCaptureCell | undefined = planned.cells.find(\n (cell: IAutoMovieCaptureCell): boolean => cell.time.frame === null,\n );\n if (between !== undefined)\n throw new Error(\n `Second ${between.time.seconds} falls between the frames of ${props.file}`,\n );\n return planned;\n };\n plan([]);\n\n // 2. Detect the cuts.\n const folder: AutoMovieCaptureFolder = await AutoMovieCaptureFolder.open({\n storage: props.storage,\n root: props.root,\n round: request.round,\n compare: request.compare,\n });\n await folder.claim([REPORT]);\n await props.run(\n planAutoMovieVideoSceneCuts({\n file: props.file,\n report: `${folder.directory}/${REPORT}`,\n threshold: request.threshold,\n }),\n );\n const cuts: { seconds: number; score: number }[] =\n readAutoMovieVideoSceneCuts(\n new TextDecoder().decode(await folder.read(REPORT)),\n );\n await folder.remove(REPORT);\n\n // 3. Plan with the cuts, keeping only those within the file's stated duration.\n const planned: IAutoMovieCapturePlan = plan(\n cuts\n .map((cut: { seconds: number; score: number }): number => cut.seconds)\n .filter((seconds: number): boolean => seconds <= subject.durationSeconds),\n );\n\n // 4. Extract the planned frames, then capture them as cells.\n const extracted: Map<number, string> = new Map(\n planned.times.map(\n (time: { frame: number | null }, index: number): [number, string] => [\n time.frame!,\n `s${String(index).padStart(5, \"0\")}.png`,\n ],\n ),\n );\n await folder.claim([...extracted.values()]);\n await props.run(\n planAutoMovieVideoFrames({\n file: props.file,\n frames: [...extracted.keys()],\n directory: folder.directory,\n }),\n );\n return runAutoMovieCapture({\n plan: planned,\n folder,\n revision: props.revision,\n match: \"time\",\n video: { file: props.file, threshold: request.threshold, cuts },\n draw: async (\n cell: IAutoMovieCaptureCell,\n ): Promise<IAutoMovieCaptureDrawing> => {\n const name: string = extracted.get(cell.time.frame!)!;\n let bytes: Uint8Array;\n try {\n bytes = await folder.read(name);\n } catch (error) {\n throw new Error(\n `${props.file} has no frame ${cell.time.frame}: ${error instanceof Error ? error.message : String(error)}`,\n { cause: error },\n );\n }\n await folder.remove(name);\n return {\n picture: await decodeAutoMovieRasterPng(bytes),\n labels: [],\n backend: BACKEND,\n };\n },\n });\n}\n"],"mappings":";;;;;;;;;;AAoBA,MAAM,YAAoB;;AAG1B,MAAM,SAAiB;;AAGvB,MAAM,UAAkB;;;;;;;;;;;;;;;;;;;;;;;AAwBxB,eAAsB,yBACpB,OACkE;CAElE,MAAM,EAAE,YAAY;CACpB,IACE,QAAQ,MAAM,KAAK,GAAG,MAAM,UAC5B,QAAQ,OAAO,WAAW,KAC1B,QAAQ,UAAU,QAClB,iCAAiC,QAAQ,UAAU,CAAC,CAAC,WAAW,GAEhE,MAAM,IAAI,MACR,kGACF;CACF,MAAM,UAAoC;EACxC,GAAG,MAAM;EACT,OAAO,CAAC,SAAS;EACjB,WAAW,CAAC;EACZ,OAAO,CAAC;CACV;CACA,MAAM,cAA4C;EAChD,GAAG;EACH,OAAO,CAAC,SAAS;CACnB;CACA,MAAM,QACJ,SAC0B;EAC1B,MAAM,UAAiC,qBAAqB;GAC1D,SAAS;GACT;GACA;EACF,CAAC;EACD,MAAM,UAA6C,QAAQ,MAAM,MAC9D,SAAyC,KAAK,KAAK,U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,MAAM,OAAO,KAAK,IAAI;GAChC,SAAS,OAAO;IACd,MAAM,IAAI,MACR,GAAG,MAAM,KAAK,gBAAgB,KAAK,KAAK,MAAM,IAAI,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,KACvG,EAAE,OAAO,MAAM,CACjB;GACF;GACA,MAAM,OAAO,OAAO,IAAI;GACxB,OAAO;IACL,SAAS,MAAM,yBAAyB,KAAK;IAC7C,QAAQ,CAAC;IACT,SAAS;GACX;EACF;CACF,CAAC;AACH"}
@@ -1,4 +1,4 @@
1
- import type { IAutoMovieCaptureLayout } from "./IAutoMovieCaptureLayout.js";
1
+ import type { IAutoMovieCaptureLayout, IAutoMovieRasterImage } from "@automovie/interface";
2
2
  /**
3
3
  * The font pixel size, in still pixels, at which a capture stamps labels on a still: large enough that one font pixel stays at least one sheet pixel once the still is reduced into its cell, and never below one.
4
4
  *
@@ -12,7 +12,4 @@ import type { IAutoMovieCaptureLayout } from "./IAutoMovieCaptureLayout.js";
12
12
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure expression.
13
13
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a number.
14
14
  */
15
- export declare function scaleAutoMovieCaptureLabels(raster: {
16
- width: number;
17
- height: number;
18
- }, layout: Pick<IAutoMovieCaptureLayout, "cell">): number;
15
+ export declare function scaleAutoMovieCaptureLabels(raster: Pick<IAutoMovieRasterImage, "width" | "height">, layout: Pick<IAutoMovieCaptureLayout, "cell">): number;
@@ -1 +1 @@
1
- {"version":3,"file":"scaleAutoMovieCaptureLabels.js","sourceRoot":"","sources":["../../src/capture/scaleAutoMovieCaptureLabels.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;GAYG;AACH,qCACE,MAAyC,EACzC,MAA6C;IAE7C,OAAO,IAAI,CAAC,GAAG,CACb,CAAC,EACD,IAAI,CAAC,IAAI,CACP,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAClD,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"scaleAutoMovieCaptureLabels.js","sourceRoot":"","sources":["../../src/capture/scaleAutoMovieCaptureLabels.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;GAYG;AACH,qCACE,MAAuD,EACvD,MAA6C;IAE7C,OAAO,IAAI,CAAC,GAAG,CACb,CAAC,EACD,IAAI,CAAC,IAAI,CACP,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAClD,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"scaleAutoMovieCaptureLabels.mjs","names":[],"sources":["../../src/capture/scaleAutoMovieCaptureLabels.ts"],"sourcesContent":["import type { IAutoMovieCaptureLayout } from \"./IAutoMovieCaptureLayout.js\";\n\n/**\n * The font pixel size, in still pixels, at which a capture stamps labels on a still: large enough that one font pixel stays at least one sheet pixel once the still is reduced into its cell, and never below one.\n *\n * A still of `width` by `height` is reduced into a cell of the layout, so the reduction is the ratio of their shorter sides, and a font pixel of that many still pixels survives it. The capture run stamps at this scale, and a draw page places its labels at the same scale so labels it keeps apart stay apart once stamped.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the unit, the rule and its floor, and both users.\n * @evidence contracts/development/implementation.md#principled-implementation An area reduction by a factor `k` maps `k` still pixels onto one sheet pixel, so a font pixel of `ceil(k)` still pixels covers at least one sheet pixel; the shorter sides bound the reduction because the cell keeps the still's aspect.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One expression, shared by the run and the draw call planner so both use one scale.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No fixed size: the scale follows the still and the reader's cell.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure expression.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a number.\n */\nexport function scaleAutoMovieCaptureLabels(\n raster: { width: number; height: number },\n layout: Pick<IAutoMovieCaptureLayout, \"cell\">,\n): number {\n return Math.max(\n 1,\n Math.ceil(\n Math.min(raster.width, raster.height) /\n Math.min(layout.cell.width, layout.cell.height),\n ),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAgB,4BACd,QACA,QACQ;CACR,OAAO,KAAK,IACV,GACA,KAAK,KACH,KAAK,IAAI,OAAO,OAAO,OAAO,MAAM,IAClC,KAAK,IAAI,OAAO,KAAK,OAAO,OAAO,KAAK,MAAM,CAClD,CACF;AACF"}
1
+ {"version":3,"file":"scaleAutoMovieCaptureLabels.mjs","names":[],"sources":["../../src/capture/scaleAutoMovieCaptureLabels.ts"],"sourcesContent":["import type {\n IAutoMovieCaptureLayout,\n IAutoMovieRasterImage,\n} from \"@automovie/interface\";\n\n/**\n * The font pixel size, in still pixels, at which a capture stamps labels on a still: large enough that one font pixel stays at least one sheet pixel once the still is reduced into its cell, and never below one.\n *\n * A still of `width` by `height` is reduced into a cell of the layout, so the reduction is the ratio of their shorter sides, and a font pixel of that many still pixels survives it. The capture run stamps at this scale, and a draw page places its labels at the same scale so labels it keeps apart stay apart once stamped.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the unit, the rule and its floor, and both users.\n * @evidence contracts/development/implementation.md#principled-implementation An area reduction by a factor `k` maps `k` still pixels onto one sheet pixel, so a font pixel of `ceil(k)` still pixels covers at least one sheet pixel; the shorter sides bound the reduction because the cell keeps the still's aspect.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One expression, shared by the run and the draw call planner so both use one scale.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No fixed size: the scale follows the still and the reader's cell.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure expression.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a number.\n */\nexport function scaleAutoMovieCaptureLabels(\n raster: Pick<IAutoMovieRasterImage, \"width\" | \"height\">,\n layout: Pick<IAutoMovieCaptureLayout, \"cell\">,\n): number {\n return Math.max(\n 1,\n Math.ceil(\n Math.min(raster.width, raster.height) /\n Math.min(layout.cell.width, layout.cell.height),\n ),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,4BACd,QACA,QACQ;CACR,OAAO,KAAK,IACV,GACA,KAAK,KACH,KAAK,IAAI,OAAO,OAAO,OAAO,MAAM,IAClC,KAAK,IAAI,OAAO,KAAK,OAAO,OAAO,KAAK,MAAM,CAClD,CACF;AACF"}
@@ -1,3 +1,4 @@
1
+ import type { IAutoMovieProductionVideoProfile } from "@automovie/interface";
1
2
  /**
2
3
  * The ITU-T H.273 code points that spell sRGB in an MP4 `colr` box.
3
4
  *
@@ -8,9 +9,4 @@
8
9
  * probe classifies a container as sRGB by them, and the normalizer writes them.
9
10
  * Spelling them three times is how one of those readings drifts from the others.
10
11
  */
11
- export declare const AUTOMOVIE_MP4_SRGB_COLOUR: Readonly<{
12
- primaries: 1;
13
- transfer: 13;
14
- matrix: 1;
15
- fullRange: true;
16
- }>;
12
+ export declare const AUTOMOVIE_MP4_SRGB_COLOUR: Readonly<IAutoMovieProductionVideoProfile["color"]>;