@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":"planAutoMovieVideoEncoding.mjs","names":[],"sources":["../../src/delivery/planAutoMovieVideoEncoding.ts"],"sourcesContent":["import type { IAutoMovieRenderSpec } from \"@automovie/interface\";\n\nimport { ffmpegArgs } from \"../ffmpegArgs.js\";\nimport { framePattern } from \"../framePattern.js\";\n\n/** Most frames one video may hold: a million, eleven hours at 25 fps, which bounds the frame files a render writes before it starts. */\nconst MAXIMUM_FRAMES: number = 1_000_000;\n\n/**\n * Admit a drawn video's exact clock and raster and plan the one FFmpeg run that encodes its frames, with an optional soundtrack.\n *\n * The frame count is `durationSeconds × fps` and must be a whole number from 1 to a million, so the clock has no partial frame to round. The raster must be positive and even on both sides, which the `yuv420p` chroma layout needs. The arguments are `ffmpegArgs` over the frame pattern in `frameDir`, quiet below warnings, with four encoder threads and the `medium` preset, `-frames:v` and `-t` pinned to the clock, and the video stream mapped explicitly; a soundtrack is the second input, padded with silence (`apad`) and cut at the clock as 48 kHz stereo AAC at 192 kb/s, and without one the output has no audio stream.\n *\n * It throws naming what is refused: a clock that is not a whole number of frames in range, an odd or empty raster, and a blank soundtrack path.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the frame count rule and its bound, the raster rule and why, every argument added to `ffmpegArgs` and the soundtrack's treatment, and the refusals.\n * @evidence contracts/development/implementation.md#principled-implementation A whole frame count admits the exact schedule `frameTimes` draws; mapping streams explicitly and cutting at `-t` makes the clock, not the shorter input, decide the output's length, and `apad` pads a soundtrack shorter than the picture.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Admit, then one argument vector around the shared `ffmpegArgs`.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No duration is rounded into acceptance and no raster is resized.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant work; no frame schedule is allocated.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure plan of one request.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a count and strings and keeps nothing.\n */\nexport function planAutoMovieVideoEncoding(props: {\n /** The output raster, rate and encoding. */\n spec: IAutoMovieRenderSpec;\n\n /** Running time in seconds. */\n durationSeconds: number;\n\n /** Folder of the frame files, named by `frameName`. */\n frameDir: string;\n\n /** The video file FFmpeg writes. */\n outputPath: string;\n\n /** A complete soundtrack to mux, or null for none. */\n audio: string | null;\n}): {\n /** Frames the clock holds. */\n frameCount: number;\n\n /** FFmpeg's arguments. */\n args: string[];\n} {\n const { fps, width, height }: IAutoMovieRenderSpec[\"frameFormat\"] =\n props.spec.frameFormat;\n const frameCount: number = props.durationSeconds * fps;\n if (\n !(Number.isFinite(fps) && fps > 0) ||\n !(Number.isFinite(props.durationSeconds) && props.durationSeconds > 0) ||\n !Number.isSafeInteger(frameCount) ||\n frameCount < 1 ||\n frameCount > MAXIMUM_FRAMES\n )\n throw new Error(\n `A video of ${props.durationSeconds} s at ${fps} fps is not a whole number of frames from 1 to ${MAXIMUM_FRAMES}`,\n );\n if (\n ![width, height].every(\n (size: number): boolean =>\n Number.isSafeInteger(size) && size > 0 && size % 2 === 0,\n )\n )\n throw new Error(\n `A video raster of ${width}x${height} is not positive and even on both sides`,\n );\n if (props.audio !== null && props.audio.trim() === \"\")\n throw new Error(\"A video's soundtrack path is blank\");\n\n const base: string[] = ffmpegArgs(\n props.spec,\n `${props.frameDir}/${framePattern()}`,\n props.outputPath,\n );\n const codec: number = base.indexOf(\"-c:v\");\n return {\n frameCount,\n args: [\n \"-v\",\n \"warning\",\n ...base.slice(0, codec),\n ...(props.audio === null ? [] : [\"-i\", props.audio]),\n ...base.slice(codec, -1),\n \"-threads\",\n \"4\",\n \"-preset\",\n \"medium\",\n \"-frames:v\",\n String(frameCount),\n \"-map\",\n \"0:v:0\",\n ...(props.audio === null\n ? [\"-an\"]\n : [\n \"-map\",\n \"1:a:0\",\n \"-af\",\n \"apad\",\n \"-c:a\",\n \"aac\",\n \"-b:a\",\n \"192k\",\n \"-ar\",\n \"48000\",\n \"-ac\",\n \"2\",\n ]),\n \"-t\",\n String(props.durationSeconds),\n props.outputPath,\n ],\n };\n}\n"],"mappings":";;;;AAMA,MAAM,iBAAyB;;;;;;;;;;;;;;;;AAiB/B,SAAgB,2BAA2B,OAqBzC;CACA,MAAM,EAAE,KAAK,OAAO,WAClB,MAAM,KAAK;CACb,MAAM,aAAqB,MAAM,kBAAkB;CACnD,IACE,EAAE,OAAO,SAAS,GAAG,KAAK,MAAM,MAChC,EAAE,OAAO,SAAS,MAAM,eAAe,KAAK,MAAM,kBAAkB,MACpE,CAAC,OAAO,cAAc,UAAU,KAChC,aAAa,KACb,aAAa,gBAEb,MAAM,IAAI,MACR,cAAc,MAAM,gBAAgB,QAAQ,IAAI,iDAAiD,gBACnG;CACF,IACE,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,OACd,SACC,OAAO,cAAc,IAAI,KAAK,OAAO,KAAK,OAAO,MAAM,CAC3D,GAEA,MAAM,IAAI,MACR,qBAAqB,MAAM,GAAG,OAAO,wCACvC;CACF,IAAI,MAAM,UAAU,QAAQ,MAAM,MAAM,KAAK,MAAM,IACjD,MAAM,IAAI,MAAM,oCAAoC;CAEtD,MAAM,OAAiB,WACrB,MAAM,MACN,GAAG,MAAM,SAAS,GAAG,aAAa,KAClC,MAAM,UACR;CACA,MAAM,QAAgB,KAAK,QAAQ,MAAM;CACzC,OAAO;EACL;EACA,MAAM;GACJ;GACA;GACA,GAAG,KAAK,MAAM,GAAG,KAAK;GACtB,GAAI,MAAM,UAAU,OAAO,CAAC,IAAI,CAAC,MAAM,MAAM,KAAK;GAClD,GAAG,KAAK,MAAM,OAAO,EAAE;GACvB;GACA;GACA;GACA;GACA;GACA,OAAO,UAAU;GACjB;GACA;GACA,GAAI,MAAM,UAAU,OAChB,CAAC,KAAK,IACN;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;GACJ;GACA,OAAO,MAAM,eAAe;GAC5B,MAAM;EACR;CACF;AACF"}
1
+ {"version":3,"file":"planAutoMovieVideoEncoding.mjs","names":[],"sources":["../../src/delivery/planAutoMovieVideoEncoding.ts"],"sourcesContent":["import type {\n IAutoMoviePlanVideoEncodingProps,\n IAutoMoviePlanVideoEncodingResult,\n IAutoMovieRenderSpec,\n} from \"@automovie/interface\";\n\nimport { ffmpegArgs } from \"../ffmpegArgs.js\";\nimport { framePattern } from \"../framePattern.js\";\n\n/** Most frames one video may hold: a million, eleven hours at 25 fps, which bounds the frame files a render writes before it starts. */\nconst MAXIMUM_FRAMES: number = 1_000_000;\n\n/**\n * Admit a drawn video's exact clock and raster and plan the one FFmpeg run that encodes its frames, with an optional soundtrack.\n *\n * The frame count is `durationSeconds × fps` and must be a whole number from 1 to a million, so the clock has no partial frame to round. The raster must be positive and even on both sides, which the `yuv420p` chroma layout needs. The arguments are `ffmpegArgs` over the frame pattern in `frameDir`, quiet below warnings, with four encoder threads and the `medium` preset, `-frames:v` and `-t` pinned to the clock, and the video stream mapped explicitly; a soundtrack is the second input, padded with silence (`apad`) and cut at the clock as 48 kHz stereo AAC at 192 kb/s, and without one the output has no audio stream.\n *\n * It throws naming what is refused: a clock that is not a whole number of frames in range, an odd or empty raster, and a blank soundtrack path.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the frame count rule and its bound, the raster rule and why, every argument added to `ffmpegArgs` and the soundtrack's treatment, and the refusals.\n * @evidence contracts/development/implementation.md#principled-implementation A whole frame count admits the exact schedule `frameTimes` draws; mapping streams explicitly and cutting at `-t` makes the clock, not the shorter input, decide the output's length, and `apad` pads a soundtrack shorter than the picture.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Admit, then one argument vector around the shared `ffmpegArgs`.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No duration is rounded into acceptance and no raster is resized.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant work; no frame schedule is allocated.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure plan of one request.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a count and strings and keeps nothing.\n */\nexport function planAutoMovieVideoEncoding(\n props: IAutoMoviePlanVideoEncodingProps,\n): IAutoMoviePlanVideoEncodingResult {\n const { fps, width, height }: IAutoMovieRenderSpec[\"frameFormat\"] =\n props.spec.frameFormat;\n const frameCount: number = props.durationSeconds * fps;\n if (\n !(Number.isFinite(fps) && fps > 0) ||\n !(Number.isFinite(props.durationSeconds) && props.durationSeconds > 0) ||\n !Number.isSafeInteger(frameCount) ||\n frameCount < 1 ||\n frameCount > MAXIMUM_FRAMES\n )\n throw new Error(\n `A video of ${props.durationSeconds} s at ${fps} fps is not a whole number of frames from 1 to ${MAXIMUM_FRAMES}`,\n );\n if (\n ![width, height].every(\n (size: number): boolean =>\n Number.isSafeInteger(size) && size > 0 && size % 2 === 0,\n )\n )\n throw new Error(\n `A video raster of ${width}x${height} is not positive and even on both sides`,\n );\n if (props.audio !== null && props.audio.trim() === \"\")\n throw new Error(\"A video's soundtrack path is blank\");\n\n const base: string[] = ffmpegArgs(\n props.spec,\n `${props.frameDir}/${framePattern()}`,\n props.outputPath,\n );\n const codec: number = base.indexOf(\"-c:v\");\n return {\n frameCount,\n args: [\n \"-v\",\n \"warning\",\n ...base.slice(0, codec),\n ...(props.audio === null ? [] : [\"-i\", props.audio]),\n ...base.slice(codec, -1),\n \"-threads\",\n \"4\",\n \"-preset\",\n \"medium\",\n \"-frames:v\",\n String(frameCount),\n \"-map\",\n \"0:v:0\",\n ...(props.audio === null\n ? [\"-an\"]\n : [\n \"-map\",\n \"1:a:0\",\n \"-af\",\n \"apad\",\n \"-c:a\",\n \"aac\",\n \"-b:a\",\n \"192k\",\n \"-ar\",\n \"48000\",\n \"-ac\",\n \"2\",\n ]),\n \"-t\",\n String(props.durationSeconds),\n props.outputPath,\n ],\n };\n}\n"],"mappings":";;;;AAUA,MAAM,iBAAyB;;;;;;;;;;;;;;;;AAiB/B,SAAgB,2BACd,OACmC;CACnC,MAAM,EAAE,KAAK,OAAO,WAClB,MAAM,KAAK;CACb,MAAM,aAAqB,MAAM,kBAAkB;CACnD,IACE,EAAE,OAAO,SAAS,GAAG,KAAK,MAAM,MAChC,EAAE,OAAO,SAAS,MAAM,eAAe,KAAK,MAAM,kBAAkB,MACpE,CAAC,OAAO,cAAc,UAAU,KAChC,aAAa,KACb,aAAa,gBAEb,MAAM,IAAI,MACR,cAAc,MAAM,gBAAgB,QAAQ,IAAI,iDAAiD,gBACnG;CACF,IACE,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,OACd,SACC,OAAO,cAAc,IAAI,KAAK,OAAO,KAAK,OAAO,MAAM,CAC3D,GAEA,MAAM,IAAI,MACR,qBAAqB,MAAM,GAAG,OAAO,wCACvC;CACF,IAAI,MAAM,UAAU,QAAQ,MAAM,MAAM,KAAK,MAAM,IACjD,MAAM,IAAI,MAAM,oCAAoC;CAEtD,MAAM,OAAiB,WACrB,MAAM,MACN,GAAG,MAAM,SAAS,GAAG,aAAa,KAClC,MAAM,UACR;CACA,MAAM,QAAgB,KAAK,QAAQ,MAAM;CACzC,OAAO;EACL;EACA,MAAM;GACJ;GACA;GACA,GAAG,KAAK,MAAM,GAAG,KAAK;GACtB,GAAI,MAAM,UAAU,OAAO,CAAC,IAAI,CAAC,MAAM,MAAM,KAAK;GAClD,GAAG,KAAK,MAAM,OAAO,EAAE;GACvB;GACA;GACA;GACA;GACA;GACA,OAAO,UAAU;GACjB;GACA;GACA,GAAI,MAAM,UAAU,OAChB,CAAC,KAAK,IACN;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;GACJ;GACA,OAAO,MAAM,eAAe;GAC5B,MAAM;EACR;CACF;AACF"}
@@ -1,4 +1,4 @@
1
- import type { IAutoMovieProductionOpusDescription } from "@automovie/interface";
1
+ import type { IAutoMovieProductionOpusDescription, IAutoMovieProductionOpusDescriptionProps } from "@automovie/interface";
2
2
  /**
3
3
  * Parse and structurally validate the one Opus `dOps` box of an MP4 audio
4
4
  * sample entry.
@@ -34,8 +34,4 @@ import type { IAutoMovieProductionOpusDescription } from "@automovie/interface";
34
34
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call parses one track's sample entry for one probe and coordinates no phases or requests whose result could be shared.
35
35
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function keeps no reference to the parsed boxes after returning, its result copies the mapping into a new array its caller owns, and it opens no handle or task.
36
36
  */
37
- export declare const productionOpusDescription: (props: {
38
- boxes: readonly unknown[] | undefined;
39
- codec: string;
40
- trackChannels: number;
41
- }) => IAutoMovieProductionOpusDescription;
37
+ export declare const productionOpusDescription: (props: IAutoMovieProductionOpusDescriptionProps) => IAutoMovieProductionOpusDescription;
@@ -1 +1 @@
1
- {"version":3,"file":"productionOpusDescription.js","sourceRoot":"","sources":["../../src/delivery/productionOpusDescription.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACI,MAAM,yBAAyB,GAIM,CAAC,KAS5C,EAAuC,EAAE;IACxC,IAAI,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK;QAC9C,MAAM,IAAI,KAAK,CACb,mEAAmE,KAAK,CAAC,KAAK,IAAI,CACnF,CAAC;IACJ,MAAM,KAAK,GAA8B,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CACjE,CAAC,GAAY,EAAkC,EAAE,CAC/C,GAAG,KAAK,IAAI;QACZ,OAAO,GAAG,KAAK,QAAQ;QACtB,GAA0B,CAAC,IAAI,KAAK,MAAM,CAC9C,CAAC;IACF,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,2DAA2D,KAAK,CAAC,MAAM,GAAG,CAC3E,CAAC;IACJ,MAAM,GAAG,GAA4B,KAAK,CAAC,CAAC,CAAE,CAAC;IAC/C,MAAM,OAAO,GAA8D,CACzE,GAAW,EACX,OAAe,EACf,OAAe,EACP,EAAE;QACV,MAAM,KAAK,GAAY,GAAG,CAAC,GAAG,CAAC,CAAC;QAChC,IACE,OAAO,KAAK,KAAK,QAAQ;YACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,KAAK;YACrC,KAAK,GAAG,OAAO;YACf,KAAK,GAAG,OAAO;YAEf,MAAM,IAAI,KAAK,CAAC,kBAAkB,GAAG,cAAc,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACvE,OAAO,KAAK,CAAC;IACf,CAAC,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ACJ,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,OAAO;QACP,kBAAkB;QAClB,OAAO;QACP,eAAe;QACf,cAAc;QACd,cAAc,EAAE;YACd,MAAM;YACN,WAAW;YACX,YAAY;YACZ,OAAO;YACP,YAAY,EAAE,IAAI;SACnB;KACF,CAAC;AACJ,CAAC,CAAC;AAvIW,QAAA,yBAAyB,GAAzB,yBAAyB,CAuIpC"}
1
+ {"version":3,"file":"productionOpusDescription.js","sourceRoot":"","sources":["../../src/delivery/productionOpusDescription.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACI,MAAM,yBAAyB,GAEK,CACzC,KAA+C,EACV,EAAE;IACvC,IAAI,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK;QAC9C,MAAM,IAAI,KAAK,CACb,mEAAmE,KAAK,CAAC,KAAK,IAAI,CACnF,CAAC;IACJ,MAAM,KAAK,GAA8B,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CACjE,CAAC,GAAY,EAAkC,EAAE,CAC/C,GAAG,KAAK,IAAI;QACZ,OAAO,GAAG,KAAK,QAAQ;QACtB,GAA0B,CAAC,IAAI,KAAK,MAAM,CAC9C,CAAC;IACF,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,2DAA2D,KAAK,CAAC,MAAM,GAAG,CAC3E,CAAC;IACJ,MAAM,GAAG,GAA4B,KAAK,CAAC,CAAC,CAAE,CAAC;IAC/C,MAAM,OAAO,GAA8D,CACzE,GAAW,EACX,OAAe,EACf,OAAe,EACP,EAAE;QACV,MAAM,KAAK,GAAY,GAAG,CAAC,GAAG,CAAC,CAAC;QAChC,IACE,OAAO,KAAK,KAAK,QAAQ;YACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,KAAK;YACrC,KAAK,GAAG,OAAO;YACf,KA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AAC,IAAI,CACV,CAAC,KAAa,EAAW,EAAE,CAAC,KAAK,KAAK,GAAG,IAAI,KAAK,IAAI,eAAe,CACtE;QAED,MAAM,IAAI,KAAK,CACb,uFAAuF,CACxF,CAAC;IACJ,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,OAAO;QACP,kBAAkB;QAClB,OAAO;QACP,eAAe;QACf,cAAc;QACd,cAAc,EAAE;YACd,MAAM;YACN,WAAW;YACX,YAAY;YACZ,OAAO;YACP,YAAY,EAAE,IAAI;SACnB;KACF,CAAC;AACJ,CAAC,CAAC;AA9HW,QAAA,yBAAyB,GAAzB,yBAAyB,CA8HpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"productionOpusDescription.mjs","names":[],"sources":["../../src/delivery/productionOpusDescription.ts"],"sourcesContent":["import type { IAutoMovieProductionOpusDescription } from \"@automovie/interface\";\n\n/**\n * Parse and structurally validate the one Opus `dOps` box of an MP4 audio\n * sample entry.\n *\n * `boxes` is the sample entry's child-box list as mp4box parses it, `codec` its\n * four-character code, and `trackChannels` the `AudioSampleEntry` channel\n * count. The result reports the box as\n * observed; whether it matches the delivery profile is\n * `assertProductionOpusProfile`'s question.\n *\n * Family 0 serializes no stream counts or mapping table and supports mono or\n * stereo, so it reports null counts, an empty mapping and the implied channel\n * order. Families 1 and 255 report their stream counts and ordered mapping\n * with a null channel order, because family 255 defines no speaker meaning and\n * this parser does not expand the family 1 order. `InputSampleRate` is\n * reported but not compared with any track rate, because RFC 7845 makes it the\n * informational rate of the original input.\n *\n * Throws `unsupported-audio-profile.sampleEntry` for a non-Opus code and\n * `malformed-dOps` for anything else RFC 7845 section 5.1 or its MP4\n * encapsulation forbids: not exactly one `dOps` box, a field outside its bit\n * width, an output channel count that differs from the track's, a reserved\n * family, a family 0 box with a mapping or more than two channels, a family 1\n * box with more than eight channels, zero streams, more coupled than total\n * streams, more than 255 decoded channels, or a mapping table that is not one\n * entry per output channel each naming a decoded channel or 255 for silence.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Each field is checked against its RFC 7845 section 5.1 bit width, and the relations are the ones that section and the Opus-in-ISOBMFF encapsulation state: family channel limits, N greater than zero, M at most N, M plus N at most 255, one mapping entry per output channel with each entry below M plus N or 255, and `OutputChannelCount` equal to the sample entry's channel count; the informational input rate and an output count below the decoded count are legal and admitted.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One function reads the box and returns the interface record, with a local integer reader so every field refusal names its key; comparison with the delivery profile stays in `assertProductionOpusProfile`, so this parser reports what the file says and refuses only what no Opus file may say.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The numeric limits are RFC 7845 field widths and family rules rather than fixture values, no file or encoder is special-cased, and a malformed box throws instead of being repaired or defaulted.\n * @evidence contracts/development/common.md#meaningful-documentation The doc names each argument's source, the split from the profile check, what each family reports and why the channel order is null for nonzero families, why the input rate is not compared, and every refusal with its error prefix.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in the child-box count B plus the mapping length C, at most 255: one filter over the boxes and two passes over the mapping, with no allocation beyond the filtered list and the copied mapping.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call parses one track's sample entry for one probe and coordinates no phases or requests whose result could be shared.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function keeps no reference to the parsed boxes after returning, its result copies the mapping into a new array its caller owns, and it opens no handle or task.\n */\nexport const productionOpusDescription: (props: {\n boxes: readonly unknown[] | undefined;\n codec: string;\n trackChannels: number;\n}) => IAutoMovieProductionOpusDescription = (props: {\n /** Parsed sample-entry children; absence is treated as no dOps box. */\n boxes: readonly unknown[] | undefined;\n\n /** Sample-entry codec spelling; the Opus family is matched case-insensitively. */\n codec: string;\n\n /** Channel count read from the enclosing audio sample entry. */\n trackChannels: number;\n}): IAutoMovieProductionOpusDescription => {\n if (/^opus(?:\\.|$)/i.test(props.codec) === false)\n throw new Error(\n `unsupported-audio-profile.sampleEntry: expected Opus, observed \"${props.codec}\".`,\n );\n const boxes: Record<string, unknown>[] = (props.boxes ?? []).filter(\n (box: unknown): box is Record<string, unknown> =>\n box !== null &&\n typeof box === \"object\" &&\n (box as { type?: unknown }).type === \"dOps\",\n );\n if (boxes.length !== 1)\n throw new Error(\n `malformed-dOps: expected one Opus description, observed ${boxes.length}.`,\n );\n const box: Record<string, unknown> = boxes[0]!;\n const integer: (key: string, minimum: number, maximum: number) => number = (\n key: string,\n minimum: number,\n maximum: number,\n ): number => {\n const value: unknown = box[key];\n if (\n typeof value !== \"number\" ||\n Number.isSafeInteger(value) === false ||\n value < minimum ||\n value > maximum\n )\n throw new Error(`malformed-dOps.${key}: observed ${String(value)}.`);\n return value;\n };\n const version: number = integer(\"Version\", 0, 255);\n const outputChannelCount: number = integer(\"OutputChannelCount\", 1, 255);\n const preSkip: number = integer(\"PreSkip\", 0, 65_535);\n const inputSampleRate: number = integer(\"InputSampleRate\", 1, 0xffff_ffff);\n const outputGainQ7_8: number = integer(\"OutputGain\", -32_768, 32_767);\n const family: number = integer(\"ChannelMappingFamily\", 0, 255);\n const rawMapping: unknown = box.ChannelMapping;\n if (\n (rawMapping !== undefined || family !== 0) &&\n Array.isArray(rawMapping) === false\n )\n throw new Error(\n \"malformed-dOps.ChannelMapping: expected an ordered array.\",\n );\n const mapping: number[] = (\n Array.isArray(rawMapping) ? (rawMapping as unknown[]) : []\n ).map((value: unknown, index: number): number => {\n if (\n typeof value !== \"number\" ||\n Number.isSafeInteger(value) === false ||\n value < 0 ||\n value > 255\n )\n throw new Error(\n `malformed-dOps.ChannelMapping[${index}]: observed ${String(value)}.`,\n );\n return value;\n });\n if (outputChannelCount !== props.trackChannels)\n throw new Error(\n \"malformed-dOps: sample description and track channel counts disagree.\",\n );\n if (family === 0) {\n if (outputChannelCount > 2 || mapping.length !== 0)\n throw new Error(\n \"malformed-dOps.ChannelMappingFamily: family 0 supports mono or stereo and serializes no mapping table.\",\n );\n return {\n kind: \"opus\",\n version,\n outputChannelCount,\n preSkip,\n inputSampleRate,\n outputGainQ7_8,\n channelMapping: {\n family,\n streamCount: null,\n coupledCount: null,\n mapping: [],\n channelOrder:\n outputChannelCount === 2 ? [\"front-left\", \"front-right\"] : [\"mono\"],\n },\n };\n }\n if (family !== 1 && family !== 255)\n throw new Error(\n `malformed-dOps.ChannelMappingFamily: reserved family ${family} is unsupported.`,\n );\n if (family === 1 && outputChannelCount > 8)\n throw new Error(\n `malformed-dOps.ChannelMappingFamily: family 1 supports at most 8 channels, observed ${outputChannelCount}.`,\n );\n const streamCount: number = integer(\"StreamCount\", 1, 255);\n const coupledCount: number = integer(\"CoupledCount\", 0, 255);\n const decodedChannels: number = streamCount + coupledCount;\n if (\n coupledCount > streamCount ||\n decodedChannels > 255 ||\n mapping.length !== outputChannelCount ||\n mapping.some(\n (value: number): boolean => value !== 255 && value >= decodedChannels,\n )\n )\n throw new Error(\n \"malformed-dOps.ChannelMapping: stream, coupled, channel, and mapping counts disagree.\",\n );\n return {\n kind: \"opus\",\n version,\n outputChannelCount,\n preSkip,\n inputSampleRate,\n outputGainQ7_8,\n channelMapping: {\n family,\n streamCount,\n coupledCount,\n mapping,\n channelOrder: null,\n },\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAa,6BAIgC,UASF;CACzC,IAAI,iBAAiB,KAAK,MAAM,KAAK,MAAM,OACzC,MAAM,IAAI,MACR,mEAAmE,MAAM,MAAM,GACjF;CACF,MAAM,SAAoC,MAAM,SAAS,CAAC,EAAA,CAAG,QAC1D,QACC,QAAQ,QACR,OAAO,QAAQ,YACd,IAA2B,SAAS,MACzC;CACA,IAAI,MAAM,WAAW,GACnB,MAAM,IAAI,MACR,2DAA2D,MAAM,OAAO,EAC1E;CACF,MAAM,MAA+B,MAAM;CAC3C,MAAM,WACJ,KACA,SACA,YACW;EACX,MAAM,QAAiB,IAAI;EAC3B,IACE,OAAO,UAAU,YACjB,OAAO,cAAc,KAAK,MAAM,SAChC,QAAQ,WACR,QAAQ,SAER,MAAM,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eAAe,GAAG,GAAG;CACzD,MAAM,eAAuB,QAAQ,gBAAgB,GAAG,GAAG;CAC3D,MAAM,kBAA0B,cAAc;CAC9C,IACE,eAAe,eACf,kBAAkB,OAClB,QAAQ,WAAW,sBACnB,QAAQ,MACL,UAA2B,UAAU,OAAO,SAAS,eACxD,GAEA,MAAM,IAAI,MACR,uFACF;CACF,OAAO;EACL,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,gBAAgB;GACd;GACA;GACA;GACA;GACA,cAAc;EAChB;CACF;AACF"}
1
+ {"version":3,"file":"productionOpusDescription.mjs","names":[],"sources":["../../src/delivery/productionOpusDescription.ts"],"sourcesContent":["import type {\n IAutoMovieProductionOpusDescription,\n IAutoMovieProductionOpusDescriptionProps,\n} from \"@automovie/interface\";\n\n/**\n * Parse and structurally validate the one Opus `dOps` box of an MP4 audio\n * sample entry.\n *\n * `boxes` is the sample entry's child-box list as mp4box parses it, `codec` its\n * four-character code, and `trackChannels` the `AudioSampleEntry` channel\n * count. The result reports the box as\n * observed; whether it matches the delivery profile is\n * `assertProductionOpusProfile`'s question.\n *\n * Family 0 serializes no stream counts or mapping table and supports mono or\n * stereo, so it reports null counts, an empty mapping and the implied channel\n * order. Families 1 and 255 report their stream counts and ordered mapping\n * with a null channel order, because family 255 defines no speaker meaning and\n * this parser does not expand the family 1 order. `InputSampleRate` is\n * reported but not compared with any track rate, because RFC 7845 makes it the\n * informational rate of the original input.\n *\n * Throws `unsupported-audio-profile.sampleEntry` for a non-Opus code and\n * `malformed-dOps` for anything else RFC 7845 section 5.1 or its MP4\n * encapsulation forbids: not exactly one `dOps` box, a field outside its bit\n * width, an output channel count that differs from the track's, a reserved\n * family, a family 0 box with a mapping or more than two channels, a family 1\n * box with more than eight channels, zero streams, more coupled than total\n * streams, more than 255 decoded channels, or a mapping table that is not one\n * entry per output channel each naming a decoded channel or 255 for silence.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Each field is checked against its RFC 7845 section 5.1 bit width, and the relations are the ones that section and the Opus-in-ISOBMFF encapsulation state: family channel limits, N greater than zero, M at most N, M plus N at most 255, one mapping entry per output channel with each entry below M plus N or 255, and `OutputChannelCount` equal to the sample entry's channel count; the informational input rate and an output count below the decoded count are legal and admitted.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One function reads the box and returns the interface record, with a local integer reader so every field refusal names its key; comparison with the delivery profile stays in `assertProductionOpusProfile`, so this parser reports what the file says and refuses only what no Opus file may say.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The numeric limits are RFC 7845 field widths and family rules rather than fixture values, no file or encoder is special-cased, and a malformed box throws instead of being repaired or defaulted.\n * @evidence contracts/development/common.md#meaningful-documentation The doc names each argument's source, the split from the profile check, what each family reports and why the channel order is null for nonzero families, why the input rate is not compared, and every refusal with its error prefix.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in the child-box count B plus the mapping length C, at most 255: one filter over the boxes and two passes over the mapping, with no allocation beyond the filtered list and the copied mapping.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call parses one track's sample entry for one probe and coordinates no phases or requests whose result could be shared.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function keeps no reference to the parsed boxes after returning, its result copies the mapping into a new array its caller owns, and it opens no handle or task.\n */\nexport const productionOpusDescription: (\n props: IAutoMovieProductionOpusDescriptionProps,\n) => IAutoMovieProductionOpusDescription = (\n props: IAutoMovieProductionOpusDescriptionProps,\n): IAutoMovieProductionOpusDescription => {\n if (/^opus(?:\\.|$)/i.test(props.codec) === false)\n throw new Error(\n `unsupported-audio-profile.sampleEntry: expected Opus, observed \"${props.codec}\".`,\n );\n const boxes: Record<string, unknown>[] = (props.boxes ?? []).filter(\n (box: unknown): box is Record<string, unknown> =>\n box !== null &&\n typeof box === \"object\" &&\n (box as { type?: unknown }).type === \"dOps\",\n );\n if (boxes.length !== 1)\n throw new Error(\n `malformed-dOps: expected one Opus description, observed ${boxes.length}.`,\n );\n const box: Record<string, unknown> = boxes[0]!;\n const integer: (key: string, minimum: number, maximum: number) => number = (\n key: string,\n minimum: number,\n maximum: number,\n ): number => {\n const value: unknown = box[key];\n if (\n typeof value !== \"number\" ||\n Number.isSafeInteger(value) === false ||\n value < minimum ||\n value > maximum\n )\n throw new Error(`malformed-dOps.${key}: observed ${String(value)}.`);\n return value;\n };\n const version: number = integer(\"Version\", 0, 255);\n const outputChannelCount: number = integer(\"OutputChannelCount\", 1, 255);\n const preSkip: number = integer(\"PreSkip\", 0, 65_535);\n const inputSampleRate: number = integer(\"InputSampleRate\", 1, 0xffff_ffff);\n const outputGainQ7_8: number = integer(\"OutputGain\", -32_768, 32_767);\n const family: number = integer(\"ChannelMappingFamily\", 0, 255);\n const rawMapping: unknown = box.ChannelMapping;\n if (\n (rawMapping !== undefined || family !== 0) &&\n Array.isArray(rawMapping) === false\n )\n throw new Error(\n \"malformed-dOps.ChannelMapping: expected an ordered array.\",\n );\n const mapping: number[] = (\n Array.isArray(rawMapping) ? (rawMapping as unknown[]) : []\n ).map((value: unknown, index: number): number => {\n if (\n typeof value !== \"number\" ||\n Number.isSafeInteger(value) === false ||\n value < 0 ||\n value > 255\n )\n throw new Error(\n `malformed-dOps.ChannelMapping[${index}]: observed ${String(value)}.`,\n );\n return value;\n });\n if (outputChannelCount !== props.trackChannels)\n throw new Error(\n \"malformed-dOps: sample description and track channel counts disagree.\",\n );\n if (family === 0) {\n if (outputChannelCount > 2 || mapping.length !== 0)\n throw new Error(\n \"malformed-dOps.ChannelMappingFamily: family 0 supports mono or stereo and serializes no mapping table.\",\n );\n return {\n kind: \"opus\",\n version,\n outputChannelCount,\n preSkip,\n inputSampleRate,\n outputGainQ7_8,\n channelMapping: {\n family,\n streamCount: null,\n coupledCount: null,\n mapping: [],\n channelOrder:\n outputChannelCount === 2 ? [\"front-left\", \"front-right\"] : [\"mono\"],\n },\n };\n }\n if (family !== 1 && family !== 255)\n throw new Error(\n `malformed-dOps.ChannelMappingFamily: reserved family ${family} is unsupported.`,\n );\n if (family === 1 && outputChannelCount > 8)\n throw new Error(\n `malformed-dOps.ChannelMappingFamily: family 1 supports at most 8 channels, observed ${outputChannelCount}.`,\n );\n const streamCount: number = integer(\"StreamCount\", 1, 255);\n const coupledCount: number = integer(\"CoupledCount\", 0, 255);\n const decodedChannels: number = streamCount + coupledCount;\n if (\n coupledCount > streamCount ||\n decodedChannels > 255 ||\n mapping.length !== outputChannelCount ||\n mapping.some(\n (value: number): boolean => value !== 255 && value >= decodedChannels,\n )\n )\n throw new Error(\n \"malformed-dOps.ChannelMapping: stream, coupled, channel, and mapping counts disagree.\",\n );\n return {\n kind: \"opus\",\n version,\n outputChannelCount,\n preSkip,\n inputSampleRate,\n outputGainQ7_8,\n channelMapping: {\n family,\n streamCount,\n coupledCount,\n mapping,\n channelOrder: null,\n },\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,6BAGX,UACwC;CACxC,IAAI,iBAAiB,KAAK,MAAM,KAAK,MAAM,OACzC,MAAM,IAAI,MACR,mEAAmE,MAAM,MAAM,GACjF;CACF,MAAM,SAAoC,MAAM,SAAS,CAAC,EAAA,CAAG,QAC1D,QACC,QAAQ,QACR,OAAO,QAAQ,YACd,IAA2B,SAAS,MACzC;CACA,IAAI,MAAM,WAAW,GACnB,MAAM,IAAI,MACR,2DAA2D,MAAM,OAAO,EAC1E;CACF,MAAM,MAA+B,MAAM;CAC3C,MAAM,WACJ,KACA,SACA,YACW;EACX,MAAM,QAAiB,IAAI;EAC3B,IACE,OAAO,UAAU,YACjB,OAAO,cAAc,KAAK,MAAM,SAChC,QAAQ,WACR,QAAQ,SAER,MAAM,IAAI,MAAM,kBAAkB,IAAI,aAAa,OAAO,KAAK,EAAE,EAAE;EACrE,OAAO;CACT;CACA,MAAM,UAAkB,QAAQ,WAAW,GAAG,GAAG;CACjD,MAAM,qBAA6B,QAAQ,sBAAsB,GAAG,GAAG;CACvE,MAAM,UAAkB,QAAQ,WA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GAEA,MAAM,IAAI,MACR,uFACF;CACF,OAAO;EACL,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,gBAAgB;GACd;GACA;GACA;GACA;GACA,cAAc;EAChB;CACF;AACF"}
@@ -1,5 +1,4 @@
1
- import type { AutoMovieProductionPngRole } from "./AutoMovieProductionPngRole.js";
2
- import type { IAutoMovieProductionPngProfile } from "./IAutoMovieProductionPngProfile.js";
1
+ import type { IAutoMovieProductionPngProfile, IAutoMovieResolveProductionPngProfileProps } from "@automovie/interface";
3
2
  /**
4
3
  * Resolve one output role to the exact PNG profile its writer must emit.
5
4
  *
@@ -20,8 +19,4 @@ import type { IAutoMovieProductionPngProfile } from "./IAutoMovieProductionPngPr
20
19
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call builds one small profile from its arguments and coordinates no phases or requests whose work could be shared.
21
20
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The PNG profile is a fresh eleven-field record handed to the validator that requested it; the engine raster constant is read, never retained, and no file handle or task is opened.
22
21
  */
23
- export declare const resolveProductionPngProfile: (props: {
24
- role: AutoMovieProductionPngRole;
25
- width?: number;
26
- height?: number;
27
- }) => IAutoMovieProductionPngProfile;
22
+ export declare const resolveProductionPngProfile: (props: IAutoMovieResolveProductionPngProfileProps) => IAutoMovieProductionPngProfile;
@@ -1 +1 @@
1
- {"version":3,"file":"resolveProductionPngProfile.js","sourceRoot":"","sources":["../../src/delivery/resolveProductionPngProfile.ts"],"names":[],"mappings":";;;AAAA,8CAAgF;AAKhF;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,2BAA2B,GAID,CAAC,KASvC,EAAkC,EAAE;IACnC,MAAM,MAAM,GACV,KAAK,CAAC,IAAI,KAAK,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa;QACvD,CAAC,CAAC,oDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC;QACzD,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;IACnD,MAAM,KAAK,GAAuB,MAAM,CAAC,KAAK,CAAC;IAC/C,MAAM,MAAM,GAAuB,MAAM,CAAC,MAAM,CAAC;IACjD,IACE,KAAK,KAAK,SAAS;QACnB,MAAM,KAAK,SAAS;QACpB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,KAAK;QACrC,KAAK,IAAI,CAAC;QACV,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,KAAK;QACtC,MAAM,IAAI,CAAC;QAEX,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,CAAC,IAAI,4CAA4C,CACpE,CAAC;IACJ,OAAO;QACL,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK;QACL,MAAM;QACN,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,UAAU;QACjB,SAAS,EAAE,MAAM;QACjB,UAAU,EAAE,MAAM;QAClB,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,SAAS;KACvB,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,2BAA2B,GAA3B,2BAA2B,CA4CtC"}
1
+ {"version":3,"file":"resolveProductionPngProfile.js","sourceRoot":"","sources":["../../src/delivery/resolveProductionPngProfile.ts"],"names":[],"mappings":";;;AAAA,8CAAgF;AAMhF;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,2BAA2B,GAEF,CACpC,KAAiD,EACjB,EAAE;IAClC,MAAM,MAAM,GACV,KAAK,CAAC,IAAI,KAAK,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa;QACvD,CAAC,CAAC,oDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC;QACzD,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;IACnD,MAAM,KAAK,GAAuB,MAAM,CAAC,KAAK,CAAC;IAC/C,MAAM,MAAM,GAAuB,MAAM,CAAC,MAAM,CAAC;IACjD,IACE,KAAK,KAAK,SAAS;QACnB,MAAM,KAAK,SAAS;QACpB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,KAAK;QACrC,KAAK,IAAI,CAAC;QACV,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,KAAK;QACtC,MAAM,IAAI,CAAC;QAEX,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,CAAC,IAAI,4CAA4C,CACpE,CAAC;IACJ,OAAO;QACL,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK;QACL,MAAM;QACN,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,UAAU;QACjB,SAAS,EAAE,MAAM;QACjB,UAAU,EAAE,MAAM;QAClB,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,SAAS;KACvB,CAAC;AACJ,CAAC,CAAC;AAnCW,QAAA,2BAA2B,GAA3B,2BAA2B,CAmCtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolveProductionPngProfile.mjs","names":[],"sources":["../../src/delivery/resolveProductionPngProfile.ts"],"sourcesContent":["import { AUTOMOVIE_PRODUCTION_SOUND_EVIDENCE_RASTERS } from \"@automovie/engine\";\n\nimport type { AutoMovieProductionPngRole } from \"./AutoMovieProductionPngRole.js\";\nimport type { IAutoMovieProductionPngProfile } from \"./IAutoMovieProductionPngProfile.js\";\n\n/**\n * Resolve one output role to the exact PNG profile its writer must emit.\n *\n * A `waveform` or `spectrogram` picture takes the fixed size the engine's\n * sound-evidence writers draw, and `width` and `height` are ignored for it. A\n * `preview` or `guide-frame` picture takes the authored raster passed in\n * `width` and `height`, in pixels. Every other profile field is the one\n * literal the writers support: 8-bit straight-alpha RGBA, sRGB, square,\n * upright and not interlaced. Throws when the resolved raster is not a\n * positive safe-integer size, which includes a preview or guide frame called\n * without one.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Fixed sound-evidence sizes come from the engine writers' raster constants; other roles require positive safe-integer dimensions. This admits numeric profile records rather than encoded images and imposes no PNG field-width or decoder allocation limit; those remain serialization and probing concerns.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One role switch picks the raster and one object literal spells the single supported format, so the profile shape stays in `IAutoMovieProductionPngProfile` and the comparison stays in `assertProductionPngPicture`.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No caller or file is special-cased: the two fixed sizes are the engine writers' own defaults imported rather than restated, and a missing authored raster throws instead of falling back to a guessed size.\n * @evidence contracts/development/common.md#meaningful-documentation The doc says which roles take a fixed size and which take the passed raster, that the size arguments are pixels and ignored for fixed roles, which literals every profile carries, and when the call throws.\n * @evidence contracts/development/implementation.md#efficient-algorithms The call does constant work: one role comparison, four integer checks and one eleven-field object, independent of image size.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call builds one small profile from its arguments and coordinates no phases or requests whose work could be shared.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The PNG profile is a fresh eleven-field record handed to the validator that requested it; the engine raster constant is read, never retained, and no file handle or task is opened.\n */\nexport const resolveProductionPngProfile: (props: {\n role: AutoMovieProductionPngRole;\n width?: number;\n height?: number;\n}) => IAutoMovieProductionPngProfile = (props: {\n /** Output role selecting an engine-fixed or caller-supplied raster. */\n role: AutoMovieProductionPngRole;\n\n /** Pixel width required for preview/guide-frame and ignored for sound-evidence roles. */\n width?: number;\n\n /** Pixel height required for preview/guide-frame and ignored for sound-evidence roles. */\n height?: number;\n}): IAutoMovieProductionPngProfile => {\n const raster: { width: number | undefined; height: number | undefined } =\n props.role === \"waveform\" || props.role === \"spectrogram\"\n ? AUTOMOVIE_PRODUCTION_SOUND_EVIDENCE_RASTERS[props.role]\n : { width: props.width, height: props.height };\n const width: number | undefined = raster.width;\n const height: number | undefined = raster.height;\n if (\n width === undefined ||\n height === undefined ||\n Number.isSafeInteger(width) === false ||\n width <= 0 ||\n Number.isSafeInteger(height) === false ||\n height <= 0\n )\n throw new Error(\n `PNG role \"${props.role}\" requires a positive safe-integer raster.`,\n );\n return {\n version: 1,\n role: props.role,\n width,\n height,\n bitDepth: 8,\n color: \"rgba\",\n alpha: \"straight\",\n interlace: \"none\",\n colorSpace: \"srgb\",\n pixelAspect: \"square\",\n orientation: \"upright\",\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAa,+BAI2B,UASF;CACpC,MAAM,SACJ,MAAM,SAAS,cAAc,MAAM,SAAS,gBACxC,4CAA4C,MAAM,QAClD;EAAE,OAAO,MAAM;EAAO,QAAQ,MAAM;CAAO;CACjD,MAAM,QAA4B,OAAO;CACzC,MAAM,SAA6B,OAAO;CAC1C,IACE,UAAU,KAAA,KACV,WAAW,KAAA,KACX,OAAO,cAAc,KAAK,MAAM,SAChC,SAAS,KACT,OAAO,cAAc,MAAM,MAAM,SACjC,UAAU,GAEV,MAAM,IAAI,MACR,aAAa,MAAM,KAAK,2CAC1B;CACF,OAAO;EACL,SAAS;EACT,MAAM,MAAM;EACZ;EACA;EACA,UAAU;EACV,OAAO;EACP,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;EACb,aAAa;CACf;AACF"}
1
+ {"version":3,"file":"resolveProductionPngProfile.mjs","names":[],"sources":["../../src/delivery/resolveProductionPngProfile.ts"],"sourcesContent":["import { AUTOMOVIE_PRODUCTION_SOUND_EVIDENCE_RASTERS } from \"@automovie/engine\";\nimport type {\n IAutoMovieProductionPngProfile,\n IAutoMovieResolveProductionPngProfileProps,\n} from \"@automovie/interface\";\n\n/**\n * Resolve one output role to the exact PNG profile its writer must emit.\n *\n * A `waveform` or `spectrogram` picture takes the fixed size the engine's\n * sound-evidence writers draw, and `width` and `height` are ignored for it. A\n * `preview` or `guide-frame` picture takes the authored raster passed in\n * `width` and `height`, in pixels. Every other profile field is the one\n * literal the writers support: 8-bit straight-alpha RGBA, sRGB, square,\n * upright and not interlaced. Throws when the resolved raster is not a\n * positive safe-integer size, which includes a preview or guide frame called\n * without one.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Fixed sound-evidence sizes come from the engine writers' raster constants; other roles require positive safe-integer dimensions. This admits numeric profile records rather than encoded images and imposes no PNG field-width or decoder allocation limit; those remain serialization and probing concerns.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One role switch picks the raster and one object literal spells the single supported format, so the profile shape stays in `IAutoMovieProductionPngProfile` and the comparison stays in `assertProductionPngPicture`.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No caller or file is special-cased: the two fixed sizes are the engine writers' own defaults imported rather than restated, and a missing authored raster throws instead of falling back to a guessed size.\n * @evidence contracts/development/common.md#meaningful-documentation The doc says which roles take a fixed size and which take the passed raster, that the size arguments are pixels and ignored for fixed roles, which literals every profile carries, and when the call throws.\n * @evidence contracts/development/implementation.md#efficient-algorithms The call does constant work: one role comparison, four integer checks and one eleven-field object, independent of image size.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call builds one small profile from its arguments and coordinates no phases or requests whose work could be shared.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The PNG profile is a fresh eleven-field record handed to the validator that requested it; the engine raster constant is read, never retained, and no file handle or task is opened.\n */\nexport const resolveProductionPngProfile: (\n props: IAutoMovieResolveProductionPngProfileProps,\n) => IAutoMovieProductionPngProfile = (\n props: IAutoMovieResolveProductionPngProfileProps,\n): IAutoMovieProductionPngProfile => {\n const raster: { width: number | undefined; height: number | undefined } =\n props.role === \"waveform\" || props.role === \"spectrogram\"\n ? AUTOMOVIE_PRODUCTION_SOUND_EVIDENCE_RASTERS[props.role]\n : { width: props.width, height: props.height };\n const width: number | undefined = raster.width;\n const height: number | undefined = raster.height;\n if (\n width === undefined ||\n height === undefined ||\n Number.isSafeInteger(width) === false ||\n width <= 0 ||\n Number.isSafeInteger(height) === false ||\n height <= 0\n )\n throw new Error(\n `PNG role \"${props.role}\" requires a positive safe-integer raster.`,\n );\n return {\n version: 1,\n role: props.role,\n width,\n height,\n bitDepth: 8,\n color: \"rgba\",\n alpha: \"straight\",\n interlace: \"none\",\n colorSpace: \"srgb\",\n pixelAspect: \"square\",\n orientation: \"upright\",\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAa,+BAGX,UACmC;CACnC,MAAM,SACJ,MAAM,SAAS,cAAc,MAAM,SAAS,gBACxC,4CAA4C,MAAM,QAClD;EAAE,OAAO,MAAM;EAAO,QAAQ,MAAM;CAAO;CACjD,MAAM,QAA4B,OAAO;CACzC,MAAM,SAA6B,OAAO;CAC1C,IACE,UAAU,KAAA,KACV,WAAW,KAAA,KACX,OAAO,cAAc,KAAK,MAAM,SAChC,SAAS,KACT,OAAO,cAAc,MAAM,MAAM,SACjC,UAAU,GAEV,MAAM,IAAI,MACR,aAAa,MAAM,KAAK,2CAC1B;CACF,OAAO;EACL,SAAS;EACT,MAAM,MAAM;EACZ;EACA;EACA,UAAU;EACV,OAAO;EACP,OAAO;EACP,WAAW;EACX,YAAY;EACZ,aAAa;EACb,aAAa;CACf;AACF"}
@@ -1,5 +1,4 @@
1
- import type { IAutoMovieProductionFrameRate } from "@automovie/interface";
2
- import type { IAutoMovieProductionVideoProfile } from "./IAutoMovieProductionVideoProfile.js";
1
+ import type { IAutoMovieProductionVideoProfile, IAutoMovieResolveProductionVideoProfileProps } from "@automovie/interface";
3
2
  /**
4
3
  * Resolve an authored raster and exact frame rate to the one H.264-in-MP4
5
4
  * picture profile a video deliverable must carry.
@@ -20,8 +19,4 @@ import type { IAutoMovieProductionVideoProfile } from "./IAutoMovieProductionVid
20
19
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call builds one small profile and coordinates no phases or requests whose work could be shared; the shared parts are already module constants.
21
20
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the copied nine-entry matrix and the profile object are allocated, both owned by the caller from return; the shared color constant lives for the module's lifetime, and no handle or task is opened.
22
21
  */
23
- export declare const resolveProductionVideoProfile: (props: {
24
- width: number;
25
- height: number;
26
- frameRate: IAutoMovieProductionFrameRate;
27
- }) => IAutoMovieProductionVideoProfile;
22
+ export declare const resolveProductionVideoProfile: (props: IAutoMovieResolveProductionVideoProfileProps) => IAutoMovieProductionVideoProfile;
@@ -1 +1 @@
1
- {"version":3,"file":"resolveProductionVideoProfile.js","sourceRoot":"","sources":["../../src/delivery/resolveProductionVideoProfile.ts"],"names":[],"mappings":";;;AAEA,iFAA2E;AAC3E,mFAA6E;AAG7E;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,6BAA6B,GAID,CAAC,KASzC,EAAoC,EAAE,CAAC,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC,KAAK;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM;IACpB,SAAS,EAAE,KAAK,CAAC,SAAS;IAC1B,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,MAAM,CAAC,EAAE;IACvD,WAAW,EAAE,CAAC,GAAG,0DAA0B,CAAC;IAC5C,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,wDAAyB;CACjC,CAAC,CAAC;AArBU,QAAA,6BAA6B,GAA7B,6BAA6B,CAqBvC"}
1
+ {"version":3,"file":"resolveProductionVideoProfile.js","sourceRoot":"","sources":["../../src/delivery/resolveProductionVideoProfile.ts"],"names":[],"mappings":";;;AAKA,iFAA2E;AAC3E,mFAA6E;AAE7E;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,6BAA6B,GAEF,CACtC,KAAmD,EACjB,EAAE,CAAC,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC,KAAK;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM;IACpB,SAAS,EAAE,KAAK,CAAC,SAAS;IAC1B,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,MAAM,CAAC,EAAE;IACvD,WAAW,EAAE,CAAC,GAAG,0DAA0B,CAAC;IAC5C,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,wDAAyB;CACjC,CAAC,CAAC;AAZU,QAAA,6BAA6B,GAA7B,6BAA6B,CAYvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolveProductionVideoProfile.mjs","names":[],"sources":["../../src/delivery/resolveProductionVideoProfile.ts"],"sourcesContent":["import type { IAutoMovieProductionFrameRate } from \"@automovie/interface\";\n\nimport { AUTOMOVIE_MP4_SRGB_COLOUR } from \"./AUTOMOVIE_MP4_SRGB_COLOUR.js\";\nimport { AUTOMOVIE_MP4_UNITY_MATRIX } from \"./AUTOMOVIE_MP4_UNITY_MATRIX.js\";\nimport type { IAutoMovieProductionVideoProfile } from \"./IAutoMovieProductionVideoProfile.js\";\n\n/**\n * Resolve an authored raster and exact frame rate to the one H.264-in-MP4\n * picture profile a video deliverable must carry.\n *\n * `width` and `height` are pixels and `frameRate` is the exact rational rate;\n * all three pass through unchecked, so the caller supplies values it already\n * validated. The rest is fixed: major brand `isom` with `isom` required among\n * the compatible brands, the unity track matrix, square pixels, and full-range\n * sRGB color code points. The returned matrix is a fresh copy, so a caller that\n * edits it cannot change the shared constant; the color record is the shared\n * constant itself, whose literal-typed fields admit no other value.\n *\n * @evidence contracts/development/implementation.md#principled-implementation The fixed fields are the ISO base media unity matrix and the ITU-T H.273 sRGB code points, read from `AUTOMOVIE_MP4_UNITY_MATRIX` and `AUTOMOVIE_MP4_SRGB_COLOUR`, the same constants the normalizer writes and the splice check reads, so the profile cannot name a matrix or color the writer does not emit.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only assembles the profile; validation of raster and rate stays with the callers that own the authored values, and the comparison against a probed file stays in `assertProductionVideoProfile`.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No deliverable or caller is special-cased: every video deliverable gets the same fixed fields, which are standard identities rather than measured or fixture values.\n * @evidence contracts/development/common.md#meaningful-documentation The doc gives the units of the varying fields, says they are not validated here, lists every fixed field, and states which returned part is a copy and which is shared.\n * @evidence contracts/development/implementation.md#efficient-algorithms The call does constant work, copying a nine-entry matrix into one new profile and sharing the constant color record.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call builds one small profile and coordinates no phases or requests whose work could be shared; the shared parts are already module constants.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the copied nine-entry matrix and the profile object are allocated, both owned by the caller from return; the shared color constant lives for the module's lifetime, and no handle or task is opened.\n */\nexport const resolveProductionVideoProfile: (props: {\n width: number;\n height: number;\n frameRate: IAutoMovieProductionFrameRate;\n}) => IAutoMovieProductionVideoProfile = (props: {\n /** Validated coded/display width in pixels; forwarded without admission. */\n width: number;\n\n /** Validated coded/display height in pixels; forwarded without admission. */\n height: number;\n\n /** Caller-owned rational frames-per-second identity, shared by reference. */\n frameRate: IAutoMovieProductionFrameRate;\n}): IAutoMovieProductionVideoProfile => ({\n width: props.width,\n height: props.height,\n frameRate: props.frameRate,\n brands: { major: \"isom\", requiredCompatible: [\"isom\"] },\n trackMatrix: [...AUTOMOVIE_MP4_UNITY_MATRIX],\n pixelAspect: \"square\",\n color: AUTOMOVIE_MP4_SRGB_COLOUR,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAa,iCAI6B,WASD;CACvC,OAAO,MAAM;CACb,QAAQ,MAAM;CACd,WAAW,MAAM;CACjB,QAAQ;EAAE,OAAO;EAAQ,oBAAoB,CAAC,MAAM;CAAE;CACtD,aAAa,CAAC,GAAG,0BAA0B;CAC3C,aAAa;CACb,OAAO;AACT"}
1
+ {"version":3,"file":"resolveProductionVideoProfile.mjs","names":[],"sources":["../../src/delivery/resolveProductionVideoProfile.ts"],"sourcesContent":["import type {\n IAutoMovieProductionVideoProfile,\n IAutoMovieResolveProductionVideoProfileProps,\n} from \"@automovie/interface\";\n\nimport { AUTOMOVIE_MP4_SRGB_COLOUR } from \"./AUTOMOVIE_MP4_SRGB_COLOUR.js\";\nimport { AUTOMOVIE_MP4_UNITY_MATRIX } from \"./AUTOMOVIE_MP4_UNITY_MATRIX.js\";\n\n/**\n * Resolve an authored raster and exact frame rate to the one H.264-in-MP4\n * picture profile a video deliverable must carry.\n *\n * `width` and `height` are pixels and `frameRate` is the exact rational rate;\n * all three pass through unchecked, so the caller supplies values it already\n * validated. The rest is fixed: major brand `isom` with `isom` required among\n * the compatible brands, the unity track matrix, square pixels, and full-range\n * sRGB color code points. The returned matrix is a fresh copy, so a caller that\n * edits it cannot change the shared constant; the color record is the shared\n * constant itself, whose literal-typed fields admit no other value.\n *\n * @evidence contracts/development/implementation.md#principled-implementation The fixed fields are the ISO base media unity matrix and the ITU-T H.273 sRGB code points, read from `AUTOMOVIE_MP4_UNITY_MATRIX` and `AUTOMOVIE_MP4_SRGB_COLOUR`, the same constants the normalizer writes and the splice check reads, so the profile cannot name a matrix or color the writer does not emit.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only assembles the profile; validation of raster and rate stays with the callers that own the authored values, and the comparison against a probed file stays in `assertProductionVideoProfile`.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No deliverable or caller is special-cased: every video deliverable gets the same fixed fields, which are standard identities rather than measured or fixture values.\n * @evidence contracts/development/common.md#meaningful-documentation The doc gives the units of the varying fields, says they are not validated here, lists every fixed field, and states which returned part is a copy and which is shared.\n * @evidence contracts/development/implementation.md#efficient-algorithms The call does constant work, copying a nine-entry matrix into one new profile and sharing the constant color record.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call builds one small profile and coordinates no phases or requests whose work could be shared; the shared parts are already module constants.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the copied nine-entry matrix and the profile object are allocated, both owned by the caller from return; the shared color constant lives for the module's lifetime, and no handle or task is opened.\n */\nexport const resolveProductionVideoProfile: (\n props: IAutoMovieResolveProductionVideoProfileProps,\n) => IAutoMovieProductionVideoProfile = (\n props: IAutoMovieResolveProductionVideoProfileProps,\n): IAutoMovieProductionVideoProfile => ({\n width: props.width,\n height: props.height,\n frameRate: props.frameRate,\n brands: { major: \"isom\", requiredCompatible: [\"isom\"] },\n trackMatrix: [...AUTOMOVIE_MP4_UNITY_MATRIX],\n pixelAspect: \"square\",\n color: AUTOMOVIE_MP4_SRGB_COLOUR,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,iCAGX,WACsC;CACtC,OAAO,MAAM;CACb,QAAQ,MAAM;CACd,WAAW,MAAM;CACjB,QAAQ;EAAE,OAAO;EAAQ,oBAAoB,CAAC,MAAM;CAAE;CACtD,aAAa,CAAC,GAAG,0BAA0B;CAC3C,aAAa;CACb,OAAO;AACT"}
@@ -1,13 +1,6 @@
1
- import type { IAutoMovieCaptureCell } from "../capture/IAutoMovieCaptureCell.js";
2
- import type { IAutoMovieCaptureDrawing } from "../capture/IAutoMovieCaptureDrawing.js";
3
- import type { IAutoMovieCapturePlan } from "../capture/IAutoMovieCapturePlan.js";
4
- import type { IAutoMovieCaptureSubject } from "../capture/IAutoMovieCaptureSubject.js";
5
- import type { IAutoMovieRasterImage } from "../picture/IAutoMovieRasterImage.js";
6
- import type { IAutoMovieInspectionRequest } from "../scene/inspection/IAutoMovieInspectionRequest.js";
7
- import type { IAutoMovieDrawCall } from "./IAutoMovieDrawCall.js";
1
+ import type { AutoMovieInspectionShade, IAutoMovieCaptureCell, IAutoMovieCaptureDrawing, IAutoMovieCapturePlan, IAutoMovieCaptureSubject, IAutoMovieDrawCall, IAutoMovieDrawnPass, IAutoMovieDrawnPicture } from "@automovie/interface";
8
2
  import type { IAutoMovieDrawPage } from "./IAutoMovieDrawPage.js";
9
3
  import type { IAutoMovieDrawProps } from "./IAutoMovieDrawProps.js";
10
- import type { IAutoMovieDrawResult } from "./IAutoMovieDrawResult.js";
11
4
  /**
12
5
  * A host's hold on one draw page: the props injected before it loaded, the subject it described, and the calls that turn cells and frames into pictures through its draw function.
13
6
  *
@@ -76,10 +69,7 @@ export declare class AutoMovieDrawSession {
76
69
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call is a different picture.
77
70
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds one picture's text and bytes at a time.
78
71
  */
79
- draw(call: IAutoMovieDrawCall, what: string): Promise<{
80
- picture: IAutoMovieRasterImage;
81
- result: IAutoMovieDrawResult;
82
- }>;
72
+ draw(call: IAutoMovieDrawCall, what: string): Promise<IAutoMovieDrawnPicture>;
83
73
  /**
84
74
  * The capture run's draw function: draw one planned cell through `planAutoMovieDrawCall`, returning its picture with the legend of its marks in the top-left corner by `stampAutoMovieDrawLegend`, the legend texts and the inspection's labels for the run to stamp, the session's backend, the resolved camera as JSON with the fixed view text that draws it again, and the paths each pattern resolved to.
85
75
  *
@@ -103,10 +93,7 @@ export declare class AutoMovieDrawSession {
103
93
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each pass is a different picture.
104
94
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns every pass's picture of the frame; the caller writes and drops them.
105
95
  */
106
- frame(seconds: number, passes: readonly IAutoMovieInspectionRequest.Shade[]): Promise<{
107
- pass: IAutoMovieInspectionRequest.Shade;
108
- picture: IAutoMovieRasterImage;
109
- }[]>;
96
+ frame(seconds: number, passes: readonly AutoMovieInspectionShade[]): Promise<IAutoMovieDrawnPass[]>;
110
97
  /**
111
98
  * Close the page.
112
99
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AutoMovieDrawSession.js","sourceRoot":"","sources":["../../src/draw/AutoMovieDrawSession.ts"],"names":[],"mappings":";;;AAMA,uHAAiH;AACjH,+GAAyG;AACzG,6EAAuE;AAMvE,iFAA2E;AAC3E,yEAAmE;AACnE,+EAAyE;AAEzE;;;;;;;;;;;;;;;;GAgBG;AACH;IACE,qCAAqC;IACpB,IAAI,CAAqB;IAE1C,+CAA+C;IAC9B,OAAO,CAAS;IAEjC,mEAAmE;IACnD,OAAO,CAA2B;IAElD,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AC;aACxC,KAAK,CAAC,CAAC,KAAc,EAAQ,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aAC9C,OAAO,CAAC,GAAS,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9C,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoMovieDrawSession.mjs","names":[],"sources":["../../src/draw/AutoMovieDrawSession.ts"],"sourcesContent":["import type { IAutoMovieCaptureCell } from \"../capture/IAutoMovieCaptureCell.js\";\nimport type { IAutoMovieCaptureDrawing } from \"../capture/IAutoMovieCaptureDrawing.js\";\nimport type { IAutoMovieCapturePlan } from \"../capture/IAutoMovieCapturePlan.js\";\nimport type { IAutoMovieCaptureSubject } from \"../capture/IAutoMovieCaptureSubject.js\";\nimport type { IAutoMovieRasterImage } from \"../picture/IAutoMovieRasterImage.js\";\nimport type { IAutoMovieInspectionRequest } from \"../scene/inspection/IAutoMovieInspectionRequest.js\";\nimport { formatAutoMovieInspectionCameraView } from \"../scene/inspection/formatAutoMovieInspectionCameraView.js\";\nimport { parseAutoMovieInspectionRequest } from \"../scene/inspection/parseAutoMovieInspectionRequest.js\";\nimport { AUTO_MOVIE_DRAW_GLOBALS } from \"./AUTO_MOVIE_DRAW_GLOBALS.js\";\nimport type { IAutoMovieDrawCall } from \"./IAutoMovieDrawCall.js\";\nimport type { IAutoMovieDrawDescription } from \"./IAutoMovieDrawDescription.js\";\nimport type { IAutoMovieDrawPage } from \"./IAutoMovieDrawPage.js\";\nimport type { IAutoMovieDrawProps } from \"./IAutoMovieDrawProps.js\";\nimport type { IAutoMovieDrawResult } from \"./IAutoMovieDrawResult.js\";\nimport { decodeAutoMovieDrawPixels } from \"./decodeAutoMovieDrawPixels.js\";\nimport { planAutoMovieDrawCall } from \"./planAutoMovieDrawCall.js\";\nimport { stampAutoMovieDrawLegend } from \"./stampAutoMovieDrawLegend.js\";\n\n/**\n * A host's hold on one draw page: the props injected before it loaded, the subject it described, and the calls that turn cells and frames into pictures through its draw function.\n *\n * Every picture a host saves comes through `draw`, `drawing` or `frame`, which call the page's draw function and decode what it returns; the session never screenshots the page and injects no style into it. Each call is bounded by the session's timeout, so a subject that never reports ready fails the call with the cell or frame it was drawing instead of holding the host forever. Calls must not overlap.\n *\n * ```ts\n * const session = await AutoMovieDrawSession.open({ page, url, props: { subject: \"starter\", props: null }, backend: \"swiftshader; Chromium 131\", timeout: 120_000 });\n * const plan = planAutoMovieCapture({ request, subject: session.subject, cuts: [] });\n * await runAutoMovieCapture({ plan, draw: (cell) => session.drawing(cell, plan), folder, revision, match: \"cell\" });\n * await session.close();\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what the session holds, which calls make pictures and how, the timeout's effect, the no-overlap rule, and shows the open, plan, draw and close order.\n * @evidence contracts/development/design.md#principled-representation An opened page with a described subject, so a session that exists can always draw; the backend text joins what launched the browser with the renderer the page reported, because the record must name both.\n * @evidence contracts/development/design.md#minimal-and-owned-surface `open`, `drawing` for the capture run, `frame` for a delivery's passes, `draw` beneath both, `close`; the subject, the renderer and the backend are read by hosts to plan and to report.\n * @evidence contracts/development/design.md#prohibited-design-shortcuts The page is reached only through the structural page, so a test drives every rule with a recording double.\n */\nexport class AutoMovieDrawSession {\n /** The page, owned until `close`. */\n private readonly page: IAutoMovieDrawPage;\n\n /** Milliseconds any one page call may take. */\n private readonly timeout: number;\n\n /** The subject the page created, as a capture plans against it. */\n public readonly subject: IAutoMovieCaptureSubject;\n\n /** The WebGL renderer string the page reported. */\n public readonly renderer: string;\n\n /** What every drawn row records as its backend: the host's launch description, then the renderer string. */\n public readonly backend: string;\n\n /** Hold an opened page; `open` prepares it. */\n private constructor(props: {\n page: IAutoMovieDrawPage;\n timeout: number;\n description: IAutoMovieDrawDescription;\n backend: string;\n }) {\n this.page = props.page;\n this.timeout = props.timeout;\n this.subject = props.description.subject;\n this.renderer = props.description.renderer;\n this.backend = `${props.backend}; ${props.description.renderer}`;\n }\n\n /**\n * Inject the props, load the draw page, wait for its draw function and describe its subject.\n *\n * It rejects when the page does not install the draw function within the timeout, naming the address, and when describing the subject fails or outlasts the timeout. A rejected open leaves the page with the caller.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the four steps, the refusals and who owns the page after a refusal.\n * @evidence contracts/development/implementation.md#principled-implementation The props go in through an init script, the JSON of the props assigned to their global, which runs before the page's own modules, so the subject module reads them at its first line, as Remotion's renderer hands props to its bundle.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Inject, load, wait, describe, each one page call.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing draw function is an error naming the address, never a fallback to screenshots.\n * @evidence contracts/development/implementation.md#efficient-algorithms Four page calls; describing creates the subject once, which every later picture reuses.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The created subject and the page's renderer serve every call of the session.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned session owns the page until `close`.\n */\n public static async open(props: {\n /** A fresh page, which the session owns once open resolves. */\n page: IAutoMovieDrawPage;\n\n /** Address of the draw page. */\n url: string;\n\n /** What the page's draw function creates. */\n props: IAutoMovieDrawProps;\n\n /** The host's description of how the browser draws, such as `swiftshader; Chromium 131.0.6778.33`. */\n backend: string;\n\n /** Milliseconds any one page call may take. */\n timeout: number;\n }): Promise<AutoMovieDrawSession> {\n const { page, timeout } = props;\n await page.addInitScript({\n content: `globalThis[${JSON.stringify(AUTO_MOVIE_DRAW_GLOBALS.props)}] = ${JSON.stringify(props.props)};`,\n });\n await page.goto(props.url, { waitUntil: \"load\" });\n try {\n await page.waitForFunction(\n (name: string): boolean =>\n typeof (globalThis as unknown as Record<string, unknown>)[name] ===\n \"object\",\n AUTO_MOVIE_DRAW_GLOBALS.draw,\n { timeout },\n );\n } catch (error) {\n throw new Error(\n `The page at ${props.url} installed no draw function within ${timeout / 1000} s`,\n { cause: error },\n );\n }\n const description: IAutoMovieDrawDescription = await bounded(\n timeout,\n `Describing the subject at ${props.url}`,\n page.evaluate(\n (name: string): Promise<IAutoMovieDrawDescription> =>\n (\n (globalThis as unknown as Record<string, unknown>)[name] as {\n describe(): Promise<IAutoMovieDrawDescription>;\n }\n ).describe(),\n AUTO_MOVIE_DRAW_GLOBALS.draw,\n ),\n );\n return new AutoMovieDrawSession({\n page,\n timeout,\n description,\n backend: props.backend,\n });\n }\n\n /**\n * Draw one call and decode its picture.\n *\n * It rejects when the page's draw throws, when it does not answer within the timeout, naming `what`, and when the picture is not the call's raster.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the result and the three rejections.\n * @evidence contracts/development/implementation.md#principled-implementation One page call per picture; the decode checks the size the call asked for.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Call, bound, decode.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A slow or failed picture is an error, never retried.\n * @evidence contracts/development/implementation.md#efficient-algorithms One page call and one decode linear in the picture.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call is a different picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds one picture's text and bytes at a time.\n */\n public async draw(\n call: IAutoMovieDrawCall,\n what: string,\n ): Promise<{ picture: IAutoMovieRasterImage; result: IAutoMovieDrawResult }> {\n const result: IAutoMovieDrawResult = await bounded(\n this.timeout,\n what,\n this.page.evaluate(\n (arg: {\n name: string;\n call: IAutoMovieDrawCall;\n }): Promise<IAutoMovieDrawResult> =>\n (\n (globalThis as unknown as Record<string, unknown>)[arg.name] as {\n draw(call: IAutoMovieDrawCall): Promise<IAutoMovieDrawResult>;\n }\n ).draw(arg.call),\n { name: AUTO_MOVIE_DRAW_GLOBALS.draw, call },\n ),\n );\n return { picture: decodeAutoMovieDrawPixels(result, call), result };\n }\n\n /**\n * The capture run's draw function: draw one planned cell through `planAutoMovieDrawCall`, returning its picture with the legend of its marks in the top-left corner by `stampAutoMovieDrawLegend`, the legend texts and the inspection's labels for the run to stamp, the session's backend, the resolved camera as JSON with the fixed view text that draws it again, and the paths each pattern resolved to.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is drawn and what each returned member holds.\n * @evidence contracts/development/implementation.md#principled-implementation The cell becomes the page call by the shared planner, so a cell's second, view, pass, request and raster reach the page as planned.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Plan the call, draw it, shape the drawing.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Failures reach the capture run, which records the cell as not drawn.\n * @evidence contracts/development/implementation.md#efficient-algorithms One draw.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each cell is a different picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The picture is the caller's.\n */\n public async drawing(\n cell: IAutoMovieCaptureCell,\n plan: Pick<IAutoMovieCapturePlan, \"subject\" | \"times\" | \"layout\">,\n ): Promise<IAutoMovieCaptureDrawing> {\n const call: IAutoMovieDrawCall = planAutoMovieDrawCall(cell, plan);\n const { picture, result } = await this.draw(call, `Cell ${cell.name}`);\n return {\n picture,\n labels: [\n ...stampAutoMovieDrawLegend(picture, result.legend, call.scale),\n ...result.labels,\n ],\n backend: this.backend,\n camera: JSON.stringify(result.camera),\n repeat: formatAutoMovieInspectionCameraView(result.camera),\n resolved: result.resolved,\n };\n }\n\n /**\n * Draw one delivered frame in every given pass through the subject's own camera, at its raster, one draw call per pass in the order given.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the view, the raster, the order and the one call per pass.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/passes.md`: every pass of a set is drawn from the same evaluated state, so each pass is the same second through the same `film` view with only the shade changed.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One draw per pass with the default inspection and the pass as its shade.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No screenshot and no injected style: the page draws each pass itself.\n * @evidence contracts/development/implementation.md#efficient-algorithms One draw per pass, which is the minimum since every pass is another picture.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each pass is a different picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns every pass's picture of the frame; the caller writes and drops them.\n */\n public async frame(\n seconds: number,\n passes: readonly IAutoMovieInspectionRequest.Shade[],\n ): Promise<\n {\n pass: IAutoMovieInspectionRequest.Shade;\n picture: IAutoMovieRasterImage;\n }[]\n > {\n const plain: IAutoMovieInspectionRequest = parseAutoMovieInspectionRequest(\n (): undefined => undefined,\n );\n const pictures: {\n pass: IAutoMovieInspectionRequest.Shade;\n picture: IAutoMovieRasterImage;\n }[] = [];\n for (const pass of passes) {\n const { picture } = await this.draw(\n {\n seconds,\n view: \"film\",\n request: { ...plain, shade: pass },\n width: this.subject.width,\n height: this.subject.height,\n frame: [seconds],\n scale: 1,\n },\n `Frame at ${seconds} s in pass ${pass}`,\n );\n pictures.push({ pass, picture });\n }\n return pictures;\n }\n\n /**\n * Close the page.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the effect.\n * @evidence contracts/development/implementation.md#principled-implementation Closing the page releases its scene and renderer with it.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One driver call.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A close failure propagates.\n * @evidence contracts/development/implementation.md#efficient-algorithms One call.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Closing happens once.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The release point of the page the session owns.\n */\n public async close(): Promise<void> {\n await this.page.close();\n }\n}\n\n/** Settle with `task`, or reject naming `what` once `timeout` milliseconds pass first. */\nfunction bounded<T>(\n timeout: number,\n what: string,\n task: Promise<T>,\n): Promise<T> {\n return new Promise<T>(\n (resolve: (value: T) => void, reject: (reason: unknown) => void): void => {\n const timer: ReturnType<typeof setTimeout> = setTimeout(\n (): void =>\n reject(\n new Error(\n `${what} did not finish within ${timeout / 1000} s; the subject never reported ready`,\n ),\n ),\n timeout,\n );\n task\n .then((value: T): void => resolve(value))\n .catch((error: unknown): void => reject(error))\n .finally((): void => clearTimeout(timer));\n },\n );\n}\n"],"mappings":";;;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ovieDrawSession.ts"],"sourcesContent":["import type {\n AutoMovieInspectionShade,\n IAutoMovieCaptureCell,\n IAutoMovieCaptureDrawing,\n IAutoMovieCapturePlan,\n IAutoMovieCaptureSubject,\n IAutoMovieDrawCall,\n IAutoMovieDrawDescription,\n IAutoMovieDrawResult,\n IAutoMovieDrawnPass,\n IAutoMovieDrawnPicture,\n IAutoMovieInspectionRequest,\n IAutoMovieRasterImage,\n} from \"@automovie/interface\";\n\nimport { formatAutoMovieInspectionCameraView } from \"../scene/inspection/formatAutoMovieInspectionCameraView.js\";\nimport { parseAutoMovieInspectionRequest } from \"../scene/inspection/parseAutoMovieInspectionRequest.js\";\nimport { AUTO_MOVIE_DRAW_GLOBALS } from \"./AUTO_MOVIE_DRAW_GLOBALS.js\";\nimport type { IAutoMovieDrawPage } from \"./IAutoMovieDrawPage.js\";\nimport type { IAutoMovieDrawProps } from \"./IAutoMovieDrawProps.js\";\nimport { decodeAutoMovieDrawPixels } from \"./decodeAutoMovieDrawPixels.js\";\nimport { planAutoMovieDrawCall } from \"./planAutoMovieDrawCall.js\";\nimport { stampAutoMovieDrawLegend } from \"./stampAutoMovieDrawLegend.js\";\n\n/**\n * A host's hold on one draw page: the props injected before it loaded, the subject it described, and the calls that turn cells and frames into pictures through its draw function.\n *\n * Every picture a host saves comes through `draw`, `drawing` or `frame`, which call the page's draw function and decode what it returns; the session never screenshots the page and injects no style into it. Each call is bounded by the session's timeout, so a subject that never reports ready fails the call with the cell or frame it was drawing instead of holding the host forever. Calls must not overlap.\n *\n * ```ts\n * const session = await AutoMovieDrawSession.open({ page, url, props: { subject: \"starter\", props: null }, backend: \"swiftshader; Chromium 131\", timeout: 120_000 });\n * const plan = planAutoMovieCapture({ request, subject: session.subject, cuts: [] });\n * await runAutoMovieCapture({ plan, draw: (cell) => session.drawing(cell, plan), folder, revision, match: \"cell\" });\n * await session.close();\n * ```\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what the session holds, which calls make pictures and how, the timeout's effect, the no-overlap rule, and shows the open, plan, draw and close order.\n * @evidence contracts/development/design.md#principled-representation An opened page with a described subject, so a session that exists can always draw; the backend text joins what launched the browser with the renderer the page reported, because the record must name both.\n * @evidence contracts/development/design.md#minimal-and-owned-surface `open`, `drawing` for the capture run, `frame` for a delivery's passes, `draw` beneath both, `close`; the subject, the renderer and the backend are read by hosts to plan and to report.\n * @evidence contracts/development/design.md#prohibited-design-shortcuts The page is reached only through the structural page, so a test drives every rule with a recording double.\n */\nexport class AutoMovieDrawSession {\n /** The page, owned until `close`. */\n private readonly page: IAutoMovieDrawPage;\n\n /** Milliseconds any one page call may take. */\n private readonly timeout: number;\n\n /** The subject the page created, as a capture plans against it. */\n public readonly subject: IAutoMovieCaptureSubject;\n\n /** The WebGL renderer string the page reported. */\n public readonly renderer: string;\n\n /** What every drawn row records as its backend: the host's launch description, then the renderer string. */\n public readonly backend: string;\n\n /** Hold an opened page; `open` prepares it. */\n private constructor(props: {\n page: IAutoMovieDrawPage;\n timeout: number;\n description: IAutoMovieDrawDescription;\n backend: string;\n }) {\n this.page = props.page;\n this.timeout = props.timeout;\n this.subject = props.description.subject;\n this.renderer = props.description.renderer;\n this.backend = `${props.backend}; ${props.description.renderer}`;\n }\n\n /**\n * Inject the props, load the draw page, wait for its draw function and describe its subject.\n *\n * It rejects when the page does not install the draw function within the timeout, naming the address, and when describing the subject fails or outlasts the timeout. A rejected open leaves the page with the caller.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the four steps, the refusals and who owns the page after a refusal.\n * @evidence contracts/development/implementation.md#principled-implementation The props go in through an init script, the JSON of the props assigned to their global, which runs before the page's own modules, so the subject module reads them at its first line, as Remotion's renderer hands props to its bundle.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Inject, load, wait, describe, each one page call.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A missing draw function is an error naming the address, never a fallback to screenshots.\n * @evidence contracts/development/implementation.md#efficient-algorithms Four page calls; describing creates the subject once, which every later picture reuses.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The created subject and the page's renderer serve every call of the session.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned session owns the page until `close`.\n */\n public static async open(props: {\n /** A fresh page, which the session owns once open resolves. */\n page: IAutoMovieDrawPage;\n\n /** Address of the draw page. */\n url: string;\n\n /** What the page's draw function creates. */\n props: IAutoMovieDrawProps;\n\n /** The host's description of how the browser draws, such as `swiftshader; Chromium 131.0.6778.33`. */\n backend: string;\n\n /** Milliseconds any one page call may take. */\n timeout: number;\n }): Promise<AutoMovieDrawSession> {\n const { page, timeout } = props;\n await page.addInitScript({\n content: `globalThis[${JSON.stringify(AUTO_MOVIE_DRAW_GLOBALS.props)}] = ${JSON.stringify(props.props)};`,\n });\n await page.goto(props.url, { waitUntil: \"load\" });\n try {\n await page.waitForFunction(\n (name: string): boolean =>\n typeof (globalThis as unknown as Record<string, unknown>)[name] ===\n \"object\",\n AUTO_MOVIE_DRAW_GLOBALS.draw,\n { timeout },\n );\n } catch (error) {\n throw new Error(\n `The page at ${props.url} installed no draw function within ${timeout / 1000} s`,\n { cause: error },\n );\n }\n const description: IAutoMovieDrawDescription = await bounded(\n timeout,\n `Describing the subject at ${props.url}`,\n page.evaluate(\n (name: string): Promise<IAutoMovieDrawDescription> =>\n (\n (globalThis as unknown as Record<string, unknown>)[name] as {\n describe(): Promise<IAutoMovieDrawDescription>;\n }\n ).describe(),\n AUTO_MOVIE_DRAW_GLOBALS.draw,\n ),\n );\n return new AutoMovieDrawSession({\n page,\n timeout,\n description,\n backend: props.backend,\n });\n }\n\n /**\n * Draw one call and decode its picture.\n *\n * It rejects when the page's draw throws, when it does not answer within the timeout, naming `what`, and when the picture is not the call's raster.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the result and the three rejections.\n * @evidence contracts/development/implementation.md#principled-implementation One page call per picture; the decode checks the size the call asked for.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Call, bound, decode.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A slow or failed picture is an error, never retried.\n * @evidence contracts/development/implementation.md#efficient-algorithms One page call and one decode linear in the picture.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call is a different picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds one picture's text and bytes at a time.\n */\n public async draw(\n call: IAutoMovieDrawCall,\n what: string,\n ): Promise<IAutoMovieDrawnPicture> {\n const result: IAutoMovieDrawResult = await bounded(\n this.timeout,\n what,\n this.page.evaluate(\n (arg: {\n name: string;\n call: IAutoMovieDrawCall;\n }): Promise<IAutoMovieDrawResult> =>\n (\n (globalThis as unknown as Record<string, unknown>)[arg.name] as {\n draw(call: IAutoMovieDrawCall): Promise<IAutoMovieDrawResult>;\n }\n ).draw(arg.call),\n { name: AUTO_MOVIE_DRAW_GLOBALS.draw, call },\n ),\n );\n return { picture: decodeAutoMovieDrawPixels(result, call), result };\n }\n\n /**\n * The capture run's draw function: draw one planned cell through `planAutoMovieDrawCall`, returning its picture with the legend of its marks in the top-left corner by `stampAutoMovieDrawLegend`, the legend texts and the inspection's labels for the run to stamp, the session's backend, the resolved camera as JSON with the fixed view text that draws it again, and the paths each pattern resolved to.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is drawn and what each returned member holds.\n * @evidence contracts/development/implementation.md#principled-implementation The cell becomes the page call by the shared planner, so a cell's second, view, pass, request and raster reach the page as planned.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Plan the call, draw it, shape the drawing.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Failures reach the capture run, which records the cell as not drawn.\n * @evidence contracts/development/implementation.md#efficient-algorithms One draw.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each cell is a different picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The picture is the caller's.\n */\n public async drawing(\n cell: IAutoMovieCaptureCell,\n plan: Pick<IAutoMovieCapturePlan, \"subject\" | \"times\" | \"layout\">,\n ): Promise<IAutoMovieCaptureDrawing> {\n const call: IAutoMovieDrawCall = planAutoMovieDrawCall(cell, plan);\n const { picture, result } = await this.draw(call, `Cell ${cell.name}`);\n return {\n picture,\n labels: [\n ...stampAutoMovieDrawLegend(picture, result.legend, call.scale),\n ...result.labels,\n ],\n backend: this.backend,\n camera: JSON.stringify(result.camera),\n repeat: formatAutoMovieInspectionCameraView(result.camera),\n resolved: result.resolved,\n };\n }\n\n /**\n * Draw one delivered frame in every given pass through the subject's own camera, at its raster, one draw call per pass in the order given.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the view, the raster, the order and the one call per pass.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/passes.md`: every pass of a set is drawn from the same evaluated state, so each pass is the same second through the same `film` view with only the shade changed.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One draw per pass with the default inspection and the pass as its shade.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No screenshot and no injected style: the page draws each pass itself.\n * @evidence contracts/development/implementation.md#efficient-algorithms One draw per pass, which is the minimum since every pass is another picture.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each pass is a different picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns every pass's picture of the frame; the caller writes and drops them.\n */\n public async frame(\n seconds: number,\n passes: readonly AutoMovieInspectionShade[],\n ): Promise<IAutoMovieDrawnPass[]> {\n const plain: IAutoMovieInspectionRequest = parseAutoMovieInspectionRequest(\n (): undefined => undefined,\n );\n const pictures: {\n pass: AutoMovieInspectionShade;\n picture: IAutoMovieRasterImage;\n }[] = [];\n for (const pass of passes) {\n const { picture } = await this.draw(\n {\n seconds,\n view: \"film\",\n request: { ...plain, shade: pass },\n width: this.subject.width,\n height: this.subject.height,\n frame: [seconds],\n scale: 1,\n },\n `Frame at ${seconds} s in pass ${pass}`,\n );\n pictures.push({ pass, picture });\n }\n return pictures;\n }\n\n /**\n * Close the page.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the effect.\n * @evidence contracts/development/implementation.md#principled-implementation Closing the page releases its scene and renderer with it.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One driver call.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A close failure propagates.\n * @evidence contracts/development/implementation.md#efficient-algorithms One call.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Closing happens once.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The release point of the page the session owns.\n */\n public async close(): Promise<void> {\n await this.page.close();\n }\n}\n\n/** Settle with `task`, or reject naming `what` once `timeout` milliseconds pass first. */\nfunction bounded<T>(\n timeout: number,\n what: string,\n task: Promise<T>,\n): Promise<T> {\n return new Promise<T>(\n (resolve: (value: T) => void, reject: (reason: unknown) => void): void => {\n const timer: ReturnType<typeof setTimeout> = setTimeout(\n (): void =>\n reject(\n new Error(\n `${what} did not finish within ${timeout / 1000} s; the subject never reported ready`,\n ),\n ),\n timeout,\n );\n task\n .then((value: T): void => resolve(value))\n .catch((error: unknown): void => reject(error))\n .finally((): void => clearTimeout(timer));\n },\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAyCA,IAAa,uBAAb,MAAa,qBAAqB;;CAEhC;;CAGA;;CAGA;;CAGA;;CAGA;;CAGA,YAAoB,OAKjB;EACD,KAAK,OAAO,MAAM;EAClB,KAAK,UAAU,MAAM;EACrB,KAAK,UAAU,MAAM,YAAY;EACjC,KAAK,WAAW,MAAM,YAAY;EAClC,KAAK,UAAU,GAAG,MAAM,QAAQ,IAAI,MAAM,YAAY;CACxD;;;;;;;;;;;;;;CAeA,aAAoB,KAAK,OAeS;EAChC,MAAM,EAAE,MAAM,YAAY;EAC1B,MAAM,KAAK,cAAc,EACvB,SAAS,cAAc,KAAK,UAAU,wBAAwB,KAAK,EAAE,MAAM,KAAK,UAAU,MAAM,KAAK,EAAE,GACzG,CAAC;EACD,MAAM,KAAK,KAAK,MAAM,KAAK,EAAE,WAAW,OAAO,CAAC;EAChD,IAAI;GACF,MAAM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,SAAS;KAAE,GAAG;KAAO,OAAO;IAAK;IACjC,OAAO,KAAK,QAAQ;IACpB,QAAQ,KAAK,QAAQ;IACrB,OAAO,CAAC,OAAO;IACf,OAAO;GACT,GACA,YAAY,QAAQ,aAAa,MACnC;GACA,SAAS,KAAK;IAAE;IAAM;GAAQ,CAAC;EACjC;EACA,OAAO;CACT;;;;;;;;;;;;CAaA,MAAa,QAAuB;EAClC,MAAM,KAAK,KAAK,MAAM;CACxB;AACF;;AAGA,SAAS,QACP,SACA,MACA,MACY;CACZ,OAAO,IAAI,SACR,SAA6B,WAA4C;EACxE,MAAM,QAAuC,iBAEzC,uBACE,IAAI,MACF,GAAG,KAAK,yBAAyB,UAAU,IAAK,qCAClD,CACF,GACF,OACF;EACA,KACG,MAAM,UAAmB,QAAQ,KAAK,CAAC,CAAC,CACxC,OAAO,UAAyB,OAAO,KAAK,CAAC,CAAC,CAC9C,cAAoB,aAAa,KAAK,CAAC;CAC5C,CACF;AACF"}
@@ -1,27 +1 @@
1
- import type { IAutoMovieInspectionRequest } from "../scene/inspection/IAutoMovieInspectionRequest.js";
2
- /**
3
- * One picture a host asks a draw page for: the second, the view, the inspection with its pass, the raster, the seconds a fitted view is framed over, and the label scale.
4
- *
5
- * `planAutoMovieDrawCall` makes one from a capture cell, and a delivery makes one per frame and pass. It crosses into the page as JSON, so it holds only plain data.
6
- *
7
- * @evidence contracts/development/design.md#principled-representation Seconds are the subject's timebase, the raster and label scale are pixels, the view is text of the inspection view grammar and the request the inspection core's own record, whose `shade` is the pass. `frame` lists the seconds a fitted view frames, so one camera serves a whole run and travel reads as travel.
8
- * @evidence contracts/development/design.md#minimal-and-owned-surface Each member is read by the page's draw function; the request and view grammar are owned by the inspection core.
9
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No subject kind or host is named; that the raster is whole and positive and `frame` holds `seconds` for a fitted view are kept by the producers.
10
- * @evidence contracts/development/common.md#meaningful-documentation States the producers, the transport, and each member's unit and meaning.
11
- */
12
- export interface IAutoMovieDrawCall {
13
- /** The second drawn, in the subject's time. */
14
- seconds: number;
15
- /** The view text, read by `parseAutoMovieInspectionView`. */
16
- view: string;
17
- /** The inspection the picture is drawn with; its `shade` is the pass. */
18
- request: IAutoMovieInspectionRequest;
19
- /** Picture width in pixels. */
20
- width: number;
21
- /** Picture height in pixels. */
22
- height: number;
23
- /** Seconds over whose drawn boxes a fitted view is framed, the drawn second among them; ignored by `film`, fixed and subject views. */
24
- frame: number[];
25
- /** Font pixel size in picture pixels of the labels the host stamps, which label placement uses to keep labels apart. */
26
- scale: number;
27
- }
1
+ export type { IAutoMovieDrawCall } from "@automovie/interface";
@@ -1,15 +1 @@
1
- import type { IAutoMovieCaptureSubject } from "../capture/IAutoMovieCaptureSubject.js";
2
- /**
3
- * What a draw page says about itself before anything is drawn: the subject a capture is planned against, and the WebGL renderer that will draw it.
4
- *
5
- * @evidence contracts/development/design.md#principled-representation The subject in the capture core's own record, and the renderer as the string WebGL reports, which a record names beside the backend so an observation repeats.
6
- * @evidence contracts/development/design.md#minimal-and-owned-surface Read by `AutoMovieDrawSession.open`: the subject goes to `planAutoMovieCapture`, the renderer into every drawn row's backend.
7
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The renderer is reported, never assumed from the launch switches, because a backend the browser could not start falls back without saying so.
8
- * @evidence contracts/development/common.md#meaningful-documentation States who reads each member and why the renderer is reported.
9
- */
10
- export interface IAutoMovieDrawDescription {
11
- /** The created subject as a capture plans against it. */
12
- subject: IAutoMovieCaptureSubject;
13
- /** The WebGL renderer string, unmasked where the browser allows it, such as one naming SwiftShader. */
14
- renderer: string;
15
- }
1
+ export type { IAutoMovieDrawDescription } from "@automovie/interface";
@@ -1,6 +1,4 @@
1
- import type { IAutoMovieDrawCall } from "./IAutoMovieDrawCall.js";
2
- import type { IAutoMovieDrawDescription } from "./IAutoMovieDrawDescription.js";
3
- import type { IAutoMovieDrawResult } from "./IAutoMovieDrawResult.js";
1
+ import type { IAutoMovieDrawCall, IAutoMovieDrawDescription, IAutoMovieDrawResult } from "@automovie/interface";
4
2
  /**
5
3
  * The draw-only function a page installs under `AUTO_MOVIE_DRAW_GLOBALS.draw`, which every host calls to get pictures: describe the subject, then draw one call at a time.
6
4
  *
@@ -1,36 +1 @@
1
- import type { IAutoMovieCaptureResolution } from "../capture/IAutoMovieCaptureResolution.js";
2
- import type { IAutoMovieInspectionCamera } from "../scene/inspection/IAutoMovieInspectionCamera.js";
3
- import type { IAutoMovieInspectionLegendEntry } from "../scene/inspection/IAutoMovieInspectionLegendEntry.js";
4
- /**
5
- * What a draw page returns for one `IAutoMovieDrawCall`: the picture as base64 RGBA rows from the top, the labels to stamp, the legend of the marks drawn, the camera the view resolved to, and the paths each pattern resolved to.
6
- *
7
- * It crosses out of the page as JSON, so the picture is text; `decodeAutoMovieDrawPixels` turns it back into a raster on the host.
8
- *
9
- * @evidence contracts/development/design.md#principled-representation The picture is the call's raster in bytes, four per pixel, rows from the top, written as base64 because the transport carries strings; labels are picture pixels from the top-left; the legend and the camera are the inspection core's records.
10
- * @evidence contracts/development/design.md#minimal-and-owned-surface Read by `AutoMovieDrawSession`, which checks the size, stamps the legend and the labels through the capture run and records the camera and the resolved patterns.
11
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The size is stated beside the bytes so a short or long picture is refused, never cropped or padded.
12
- * @evidence contracts/development/common.md#meaningful-documentation States the transport, the byte layout, the label frame and who reads each member.
13
- */
14
- export interface IAutoMovieDrawResult {
15
- /** Base64 of `width * height * 4` RGBA bytes, rows from the top. */
16
- pixels: string;
17
- /** Picture width in pixels. */
18
- width: number;
19
- /** Picture height in pixels. */
20
- height: number;
21
- /** Labels the inspection placed, each with the pixel of its box's top-left corner. */
22
- labels: {
23
- /** The label's text. */
24
- text: string;
25
- /** Pixels from the left edge. */
26
- x: number;
27
- /** Pixels from the top edge. */
28
- y: number;
29
- }[];
30
- /** One entry per colour of the marks in the picture with its count, then the surface colours of the faces shade, as the applied inspection lists them. */
31
- legend: IAutoMovieInspectionLegendEntry[];
32
- /** The camera the view resolved to. */
33
- camera: IAutoMovieInspectionCamera;
34
- /** What each pattern of the call's request and view resolved to among the scene's object paths and the paths of the marks it drew: topmost paths and counts, never geometry. */
35
- resolved: IAutoMovieCaptureResolution[];
36
- }
1
+ export type { IAutoMovieDrawResult } from "@automovie/interface";
@@ -1,4 +1,4 @@
1
- import type { IAutoMovieMark } from "@automovie/engine";
1
+ import type { IAutoMovieMark } from "@automovie/interface";
2
2
  import type * as THREE from "three";
3
3
  /**
4
4
  * A subject made ready to draw: its scene, its delivery camera, its clock and raster, and how to put it at a second.
@@ -35,6 +35,13 @@ export interface IAutoMovieDrawScene {
35
35
  seconds: number;
36
36
  label: string;
37
37
  }[];
38
+ /**
39
+ * Mark kinds that can appear during this subject, including ones absent
40
+ * at second zero. Capture planning admits these names without seeking or
41
+ * inventing marks; `marks` still supplies the actual geometry at a second.
42
+ * Kinds present at zero are discovered without this declaration.
43
+ */
44
+ markKinds?: readonly string[];
38
45
  /**
39
46
  * The marks the subject's owners supply at a second, asked for after `seek`; absent when it supplies none.
40
47
  *
@@ -48,7 +55,7 @@ export interface IAutoMovieDrawScene {
48
55
  */
49
56
  marks?: (seconds: number) => readonly IAutoMovieMark[];
50
57
  /**
51
- * Put every object and the delivery camera at a second; the returned promise resolves once the subject is ready to be drawn at it, such as when its textures for that second have loaded.
58
+ * Put every object and the delivery camera at a second; objects may be replaced. The returned promise resolves once the subject is ready, including its textures. The draw host binds inspection after this placement, so no removed object's masks or measurements stand in for the current geometry.
52
59
  *
53
60
  * @evidence contracts/development/common.md#meaningful-documentation States what is placed and what the promise means.
54
61
  * @evidenceExclude contracts/development/implementation.md#principled-implementation A signature has no body; the subject that implements it answers.
@@ -1,5 +1,4 @@
1
- import type { IAutoMovieRasterImage } from "../picture/IAutoMovieRasterImage.js";
2
- import type { IAutoMovieDrawResult } from "./IAutoMovieDrawResult.js";
1
+ import type { IAutoMovieDrawResult, IAutoMovieRasterImage } from "@automovie/interface";
3
2
  /**
4
3
  * Turn a draw page's picture back into the raster the capture core reads: the base64 RGBA bytes of an `IAutoMovieDrawResult`, rows from the top, at the size it states.
5
4
  *
@@ -13,7 +12,4 @@ import type { IAutoMovieDrawResult } from "./IAutoMovieDrawResult.js";
13
12
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one picture.
14
13
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Allocates the decoded string once and one byte array, which the returned raster owns.
15
14
  */
16
- export declare function decodeAutoMovieDrawPixels(result: Pick<IAutoMovieDrawResult, "pixels" | "width" | "height">, expected: {
17
- width: number;
18
- height: number;
19
- }): IAutoMovieRasterImage;
15
+ export declare function decodeAutoMovieDrawPixels(result: Pick<IAutoMovieDrawResult, "pixels" | "width" | "height">, expected: Pick<IAutoMovieRasterImage, "width" | "height">): IAutoMovieRasterImage;
@@ -1 +1 @@
1
- {"version":3,"file":"decodeAutoMovieDrawPixels.js","sourceRoot":"","sources":["../../src/draw/decodeAutoMovieDrawPixels.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;;;;;GAYG;AACH,mCACE,MAAiE,EACjE,QAA2C;IAE3C,IAAI,MAAM,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACtE,MAAM,IAAI,KAAK,CACb,iBAAiB,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,iBAAiB,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,MAAM,aAAa,CAC9G,CAAC;IACJ,MAAM,IAAI,GAAW,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC;QAClD,MAAM,IAAI,KAAK,CACb,qBAAqB,IAAI,CAAC,MAAM,gBAAgB,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,oBAAoB,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AAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrE,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE;QACtD,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;AAChE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"decodeAutoMovieDrawPixels.mjs","names":[],"sources":["../../src/draw/decodeAutoMovieDrawPixels.ts"],"sourcesContent":["import type { IAutoMovieRasterImage } from \"../picture/IAutoMovieRasterImage.js\";\nimport type { IAutoMovieDrawResult } from \"./IAutoMovieDrawResult.js\";\n\n/**\n * Turn a draw page's picture back into the raster the capture core reads: the base64 RGBA bytes of an `IAutoMovieDrawResult`, rows from the top, at the size it states.\n *\n * It throws when the stated size is not the expected raster, or the bytes are not that size's, naming both.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the input, the output layout and both refusals.\n * @evidence contracts/development/implementation.md#principled-implementation The page already wrote rows from the top, so the bytes are copied in order; `atob` exists in every page and in Node, so the host needs no Node buffer.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Check the size, decode, check the length.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A picture of another size is refused, never resized or padded, so a still always has the raster its cell planned.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the text's length.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Allocates the decoded string once and one byte array, which the returned raster owns.\n */\nexport function decodeAutoMovieDrawPixels(\n result: Pick<IAutoMovieDrawResult, \"pixels\" | \"width\" | \"height\">,\n expected: { width: number; height: number },\n): IAutoMovieRasterImage {\n if (result.width !== expected.width || result.height !== expected.height)\n throw new Error(\n `The page drew ${result.width}x${result.height} pixels where ${expected.width}x${expected.height} were asked`,\n );\n const text: string = atob(result.pixels);\n if (text.length !== result.width * result.height * 4)\n throw new Error(\n `The page returned ${text.length} bytes for a ${result.width}x${result.height} RGBA picture of ${result.width * result.height * 4}`,\n );\n const pixels: Uint8ClampedArray = new Uint8ClampedArray(text.length);\n for (let index: number = 0; index < text.length; index++)\n pixels[index] = text.charCodeAt(index);\n return { width: result.width, height: result.height, pixels };\n}\n"],"mappings":";;;;;;;;;;;;;;AAgBA,SAAgB,0BACd,QACA,UACuB;CACvB,IAAI,OAAO,UAAU,SAAS,SAAS,OAAO,WAAW,SAAS,QAChE,MAAM,IAAI,MACR,iBAAiB,OAAO,MAAM,GAAG,OAAO,OAAO,gBAAgB,SAAS,MAAM,GAAG,SAAS,OAAO,YACnG;CACF,MAAM,OAAe,KAAK,OAAO,MAAM;CACvC,IAAI,KAAK,WAAW,OAAO,QAAQ,OAAO,SAAS,GACjD,MAAM,IAAI,MACR,qBAAqB,KAAK,OAAO,eAAe,OAAO,MAAM,GAAG,OAAO,OAAO,mBAAmB,OAAO,QAAQ,OAAO,SAAS,GAClI;CACF,MAAM,SAA4B,IAAI,kBAAkB,KAAK,MAAM;CACnE,KAAK,IAAI,QAAgB,GAAG,QAAQ,KAAK,QAAQ,SAC/C,OAAO,SAAS,KAAK,WAAW,KAAK;CACvC,OAAO;EAAE,OAAO,OAAO;EAAO,QAAQ,OAAO;EAAQ;CAAO;AAC9D"}
1
+ {"version":3,"file":"decodeAutoMovieDrawPixels.mjs","names":[],"sources":["../../src/draw/decodeAutoMovieDrawPixels.ts"],"sourcesContent":["import type {\n IAutoMovieDrawResult,\n IAutoMovieRasterImage,\n} from \"@automovie/interface\";\n\n/**\n * Turn a draw page's picture back into the raster the capture core reads: the base64 RGBA bytes of an `IAutoMovieDrawResult`, rows from the top, at the size it states.\n *\n * It throws when the stated size is not the expected raster, or the bytes are not that size's, naming both.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the input, the output layout and both refusals.\n * @evidence contracts/development/implementation.md#principled-implementation The page already wrote rows from the top, so the bytes are copied in order; `atob` exists in every page and in Node, so the host needs no Node buffer.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Check the size, decode, check the length.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A picture of another size is refused, never resized or padded, so a still always has the raster its cell planned.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the text's length.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure conversion of one picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Allocates the decoded string once and one byte array, which the returned raster owns.\n */\nexport function decodeAutoMovieDrawPixels(\n result: Pick<IAutoMovieDrawResult, \"pixels\" | \"width\" | \"height\">,\n expected: Pick<IAutoMovieRasterImage, \"width\" | \"height\">,\n): IAutoMovieRasterImage {\n if (result.width !== expected.width || result.height !== expected.height)\n throw new Error(\n `The page drew ${result.width}x${result.height} pixels where ${expected.width}x${expected.height} were asked`,\n );\n const text: string = atob(result.pixels);\n if (text.length !== result.width * result.height * 4)\n throw new Error(\n `The page returned ${text.length} bytes for a ${result.width}x${result.height} RGBA picture of ${result.width * result.height * 4}`,\n );\n const pixels: Uint8ClampedArray = new Uint8ClampedArray(text.length);\n for (let index: number = 0; index < text.length; index++)\n pixels[index] = text.charCodeAt(index);\n return { width: result.width, height: result.height, pixels };\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAAgB,0BACd,QACA,UACuB;CACvB,IAAI,OAAO,UAAU,SAAS,SAAS,OAAO,WAAW,SAAS,QAChE,MAAM,IAAI,MACR,iBAAiB,OAAO,MAAM,GAAG,OAAO,OAAO,gBAAgB,SAAS,MAAM,GAAG,SAAS,OAAO,YACnG;CACF,MAAM,OAAe,KAAK,OAAO,MAAM;CACvC,IAAI,KAAK,WAAW,OAAO,QAAQ,OAAO,SAAS,GACjD,MAAM,IAAI,MACR,qBAAqB,KAAK,OAAO,eAAe,OAAO,MAAM,GAAG,OAAO,OAAO,mBAAmB,OAAO,QAAQ,OAAO,SAAS,GAClI;CACF,MAAM,SAA4B,IAAI,kBAAkB,KAAK,MAAM;CACnE,KAAK,IAAI,QAAgB,GAAG,QAAQ,KAAK,QAAQ,SAC/C,OAAO,SAAS,KAAK,WAAW,KAAK;CACvC,OAAO;EAAE,OAAO,OAAO;EAAO,QAAQ,OAAO;EAAQ;CAAO;AAC9D"}
@@ -1,15 +1,15 @@
1
- import type { IAutoMovieCaptureSubject } from "../capture/IAutoMovieCaptureSubject.js";
1
+ import type { IAutoMovieCaptureSubject } from "@automovie/interface";
2
2
  import type { IAutoMovieDrawScene } from "./IAutoMovieDrawScene.js";
3
3
  /**
4
4
  * Describe a created subject as a capture plans against it, from the scene as `create` left it: no second is sought, because a subject need not hold every second, such as a case that samples only its own instants.
5
5
  *
6
- * Named instants are the subject's own, copied. Views are the subject's own names, then the inspection's named viewpoints. Drawables are the inspection paths of the drawn objects, one world box per distinct path, the union of the boxes of every object sharing it; an object with an empty box is left out. Mark kinds are those the subject supplies at second 0, then `trail`, `trail/now`, `edge` and every `defect/<kind>`, the kinds the inspection draws from its own sampling and measurement; a subject whose kinds appear only later in its run lists them only at second 0's, which is a stated limit.
6
+ * Named instants are the subject's own, copied. Views are the subject's own names, then the inspection's named viewpoints. Drawables are the inspection paths of the drawn objects, one world box per distinct path, the union of the boxes of every object sharing it; an object with an empty box is left out. Mark kinds are the subject's declared `markKinds` and those it supplies at second 0, then `trail`, `trail/now`, `edge` and every `defect/<kind>`, the kinds the inspection draws from its own sampling and measurement. Declaring a later kind admits its capture without seeking through the film or inventing a marker at zero; its geometry still comes from `marks` at the drawn second.
7
7
  *
8
- * @evidence contracts/development/common.md#meaningful-documentation States where each member comes from, the order of names and kinds, the union rule and the limit on kinds.
8
+ * @evidence contracts/development/common.md#meaningful-documentation States where each member comes from, the order of names and kinds, the union rule and how declared later kinds differ from actual marks.
9
9
  * @evidence contracts/development/implementation.md#principled-implementation Paths come from the inspection's own path listing and boxes from three.js's `Box3.setFromObject` on world matrices brought up to date, so a sweep groups by the boxes the inspection draws.
10
10
  * @evidence contracts/development/implementation.md#clear-and-simple-structure Views, drawables, kinds, then one literal.
11
11
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Measured kinds are read from the inspection's palette, not restated.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the drawn objects' vertices for the boxes and in the subject's marks at second 0.
12
+ * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the drawn objects' vertices for the boxes and in declared kinds and marks at second 0; no timeline sampling is added.
13
13
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Done once per page.
14
14
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns plain records; the boxes are dropped.
15
15
  */