@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":"planAutoMovieDrawCall.js","sourceRoot":"","sources":["../../src/draw/planAutoMovieDrawCall.ts"],"names":[],"mappings":";;;AAGA,8FAAwF;AAExF,yGAAmG;AAGnG;;;;;;;;;;;;GAYG;AACH,+BACE,IAA2B,EAC3B,IAAiE;IAEjE,MAAM,IAAI,GAA6B,IAAA,8DAA4B,EACjE,IAAI,CAAC,IAAI,CACV,CAAC;IACF,OAAO;QACL,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO;QAC1B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C,OAAO,CAAC;QAC3E,KAAK,EAAE,IAAA,4DAA2B,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC;KAC9D,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"planAutoMovieDrawCall.mjs","names":[],"sources":["../../src/draw/planAutoMovieDrawCall.ts"],"sourcesContent":["import type { IAutoMovieCaptureCell } from \"../capture/IAutoMovieCaptureCell.js\";\nimport type { IAutoMovieCapturePlan } from \"../capture/IAutoMovieCapturePlan.js\";\nimport type { IAutoMovieCaptureTime } from \"../capture/IAutoMovieCaptureTime.js\";\nimport { scaleAutoMovieCaptureLabels } from \"../capture/scaleAutoMovieCaptureLabels.js\";\nimport type { IAutoMovieInspectionView } from \"../scene/inspection/IAutoMovieInspectionView.js\";\nimport { parseAutoMovieInspectionView } from \"../scene/inspection/parseAutoMovieInspectionView.js\";\nimport type { IAutoMovieDrawCall } from \"./IAutoMovieDrawCall.js\";\n\n/**\n * Turn one planned capture cell into the call a draw page answers: the cell's second, view and inspection request as given, the subject's raster, the framing span, and the label scale the capture run stamps at.\n *\n * Every second of the plan frames a fitted view, so a view keeps one camera across the whole capture and a subject's travel reads as travel; a view with `@follow` frames on the cell's own second alone, so a travelling subject stays large and each cell records its own camera, its travel then read from trails. The pass is the request's `shade`, which the planner already set to the cell's pass.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is taken from the cell, the subject and the plan, why the plan's seconds are the framing span, and what `@follow` changes.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/capture.md`: a view that fits itself to its subject resolves to another camera when the subject changes, so one capture frames on all its seconds; the label scale is `scaleAutoMovieCaptureLabels`, the rule the capture run stamps by.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One literal.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Values pass as planned; nothing is rounded or defaulted.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the plan's seconds, which every call without `@follow` carries, plus one parse of the view text.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure mapping of one cell.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh call and keeps nothing.\n */\nexport function planAutoMovieDrawCall(\n cell: IAutoMovieCaptureCell,\n plan: Pick<IAutoMovieCapturePlan, \"subject\" | \"times\" | \"layout\">,\n): IAutoMovieDrawCall {\n const view: IAutoMovieInspectionView = parseAutoMovieInspectionView(\n cell.view,\n );\n return {\n seconds: cell.time.seconds,\n view: cell.view,\n request: cell.request,\n width: plan.subject.width,\n height: plan.subject.height,\n frame:\n view.type === \"named\" && view.follow\n ? [cell.time.seconds]\n : plan.times.map((time: IAutoMovieCaptureTime): number => time.seconds),\n scale: scaleAutoMovieCaptureLabels(plan.subject, plan.layout),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAqBA,SAAgB,sBACd,MACA,MACoB;CACpB,MAAM,OAAiC,6BACrC,KAAK,IACP;CACA,OAAO;EACL,SAAS,KAAK,KAAK;EACnB,MAAM,KAAK;EACX,SAAS,KAAK;EACd,OAAO,KAAK,QAAQ;EACpB,QAAQ,KAAK,QAAQ;EACrB,OACE,KAAK,SAAS,WAAW,KAAK,SAC1B,CAAC,KAAK,KAAK,OAAO,IAClB,KAAK,MAAM,KAAK,SAAwC,KAAK,OAAO;EAC1E,OAAO,4BAA4B,KAAK,SAAS,KAAK,MAAM;CAC9D;AACF"}
1
+ {"version":3,"file":"planAutoMovieDrawCall.mjs","names":[],"sources":["../../src/draw/planAutoMovieDrawCall.ts"],"sourcesContent":["import type {\n IAutoMovieCaptureCell,\n IAutoMovieCapturePlan,\n IAutoMovieCaptureTime,\n IAutoMovieDrawCall,\n IAutoMovieInspectionView,\n} from \"@automovie/interface\";\n\nimport { scaleAutoMovieCaptureLabels } from \"../capture/scaleAutoMovieCaptureLabels.js\";\nimport { parseAutoMovieInspectionView } from \"../scene/inspection/parseAutoMovieInspectionView.js\";\n\n/**\n * Turn one planned capture cell into the call a draw page answers: the cell's second, view and inspection request as given, the subject's raster, the framing span, and the label scale the capture run stamps at.\n *\n * Every second of the plan frames a fitted view, so a view keeps one camera across the whole capture and a subject's travel reads as travel; a view with `@follow` frames on the cell's own second alone, so a travelling subject stays large and each cell records its own camera, its travel then read from trails. The pass is the request's `shade`, which the planner already set to the cell's pass.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States what is taken from the cell, the subject and the plan, why the plan's seconds are the framing span, and what `@follow` changes.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/capture.md`: a view that fits itself to its subject resolves to another camera when the subject changes, so one capture frames on all its seconds; the label scale is `scaleAutoMovieCaptureLabels`, the rule the capture run stamps by.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One literal.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Values pass as planned; nothing is rounded or defaulted.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the plan's seconds, which every call without `@follow` carries, plus one parse of the view text.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure mapping of one cell.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh call and keeps nothing.\n */\nexport function planAutoMovieDrawCall(\n cell: IAutoMovieCaptureCell,\n plan: Pick<IAutoMovieCapturePlan, \"subject\" | \"times\" | \"layout\">,\n): IAutoMovieDrawCall {\n const view: IAutoMovieInspectionView = parseAutoMovieInspectionView(\n cell.view,\n );\n return {\n seconds: cell.time.seconds,\n view: cell.view,\n request: cell.request,\n width: plan.subject.width,\n height: plan.subject.height,\n frame:\n view.type === \"named\" && view.follow\n ? [cell.time.seconds]\n : plan.times.map((time: IAutoMovieCaptureTime): number => time.seconds),\n scale: scaleAutoMovieCaptureLabels(plan.subject, plan.layout),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAwBA,SAAgB,sBACd,MACA,MACoB;CACpB,MAAM,OAAiC,6BACrC,KAAK,IACP;CACA,OAAO;EACL,SAAS,KAAK,KAAK;EACnB,MAAM,KAAK;EACX,SAAS,KAAK;EACd,OAAO,KAAK,QAAQ;EACpB,QAAQ,KAAK,QAAQ;EACrB,OACE,KAAK,SAAS,WAAW,KAAK,SAC1B,CAAC,KAAK,KAAK,OAAO,IAClB,KAAK,MAAM,KAAK,SAAwC,KAAK,OAAO;EAC1E,OAAO,4BAA4B,KAAK,SAAS,KAAK,MAAM;CAC9D;AACF"}
@@ -1,4 +1,4 @@
1
- import type { IAutoMovieRenderSpec } from "@automovie/interface";
1
+ import type { IAutoMovieDrawnVideoResult, IAutoMovieRenderSpec } from "@automovie/interface";
2
2
  import type { AutoMovieDrawSession } from "./AutoMovieDrawSession.js";
3
3
  /**
4
4
  * Render a drawn subject into one video: draw every frame of its clock through the draw page's function, write each as a PNG, then encode them once.
@@ -30,14 +30,4 @@ export declare function renderAutoMovieDrawnVideo(props: {
30
30
  write: (path: string, data: Uint8Array) => Promise<void>;
31
31
  /** Run FFmpeg with the arguments, resolving once it succeeded. */
32
32
  encode: (args: readonly string[]) => Promise<void>;
33
- }): Promise<{
34
- /** The subject's frames, in order, each with its second, file and pixel hash. */
35
- frames: {
36
- index: number;
37
- seconds: number;
38
- file: string;
39
- hash: string;
40
- }[];
41
- /** The arguments the encoder ran with. */
42
- args: string[];
43
- }>;
33
+ }): Promise<IAutoMovieDrawnVideoResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"renderAutoMovieDrawnVideo.js","sourceRoot":"","sources":["../../src/draw/renderAutoMovieDrawnVideo.ts"],"names":[],"mappings":";;;AAEA,6FAAuF;AACvF,kDAA4C;AAC5C,oDAA8C;AAE9C,wFAAkF;AAClF,wFAAkF;AAGlF;;;;;;;;;;;;;;GAcG;AACI,KAAK,oCAAoC,KAqB/C;IAOC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC;IAClC,MAAM,IAAI,GAAyB;QACjC,GAAG,KAAK,CAAC,IAAI;QACb,WAAW,EAAE;YACX,KAAK,EAAE,O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IAAA,sDAAwB,EAAC,OAAO,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,IAAI,CAAC;YACV,KAAK;YACL,OAAO;YACP,IAAI;YACJ,IAAI,EAAE,IAAA,sDAAwB,EAAC,OAAO,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;AACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderAutoMovieDrawnVideo.mjs","names":[],"sources":["../../src/draw/renderAutoMovieDrawnVideo.ts"],"sourcesContent":["import type { IAutoMovieRenderSpec } from \"@automovie/interface\";\n\nimport { planAutoMovieVideoEncoding } from \"../delivery/planAutoMovieVideoEncoding.js\";\nimport { frameName } from \"../frameName.js\";\nimport { frameTimes } from \"../frameTimes.js\";\nimport type { IAutoMovieRasterImage } from \"../picture/IAutoMovieRasterImage.js\";\nimport { encodeAutoMovieRasterPng } from \"../picture/encodeAutoMovieRasterPng.js\";\nimport { hashAutoMovieRasterImage } from \"../picture/hashAutoMovieRasterImage.js\";\nimport type { AutoMovieDrawSession } from \"./AutoMovieDrawSession.js\";\n\n/**\n * Render a drawn subject into one video: draw every frame of its clock through the draw page's function, write each as a PNG, then encode them once.\n *\n * The clock and raster are the subject's, read from the session, so the spec takes no frame format. The encoding is admitted and planned by `planAutoMovieVideoEncoding` before the first frame is drawn, so a clock that is not a whole number of frames or an odd raster costs no drawing. Frame `i` is drawn at `frameTimes`' second `i / fps` in the `beauty` pass through the subject's own camera, and written as `<frameDir>/frame_<i>.png`; frames are drawn and written one at a time, in order. The encoder then runs once with the planned arguments.\n *\n * Files and processes are the host's: `write` stores a file and `encode` runs FFmpeg, so the order of every step runs under a unit test. A draw, write or encode failure rejects at once and leaves the files written so far to the host.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States where the clock and raster come from, when the plan is admitted, how each frame is drawn, named and written, what the host supplies and what a failure leaves.\n * @evidence contracts/development/implementation.md#principled-implementation Every delivered frame comes from the same draw function inspection stills use, at the exact schedule `frameTimes` gives, and the encoder runs on the vector `planAutoMovieVideoEncoding` admits, so a delivered video and a still at the same second are drawn by the same code.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Plan, then one loop of draw, encode as PNG, hash and write, then one encode.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No frame is skipped or reused and no failure is retried.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in frames times pixels: one draw, one PNG encoding and one hash per frame.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each frame is drawn once; nothing is shared between renders.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One frame's picture and bytes are held at a time, plus one record per frame; the session stays the caller's.\n */\nexport async function renderAutoMovieDrawnVideo(props: {\n /** The opened draw session of the subject. */\n session: Pick<AutoMovieDrawSession, \"subject\" | \"frame\">;\n\n /** Encoding controls; the frame format is the subject's clock and raster. */\n spec: Omit<IAutoMovieRenderSpec, \"frameFormat\">;\n\n /** Folder the frame files are written into. */\n frameDir: string;\n\n /** The video file the encoder writes. */\n outputPath: string;\n\n /** A complete soundtrack to mux, or null for none. */\n audio: string | null;\n\n /** Store one file whole. */\n write: (path: string, data: Uint8Array) => Promise<void>;\n\n /** Run FFmpeg with the arguments, resolving once it succeeded. */\n encode: (args: readonly string[]) => Promise<void>;\n}): Promise<{\n /** The subject's frames, in order, each with its second, file and pixel hash. */\n frames: { index: number; seconds: number; file: string; hash: string }[];\n\n /** The arguments the encoder ran with. */\n args: string[];\n}> {\n const { subject } = props.session;\n const spec: IAutoMovieRenderSpec = {\n ...props.spec,\n frameFormat: {\n width: subject.width,\n height: subject.height,\n fps: subject.fps,\n },\n };\n const plan: ReturnType<typeof planAutoMovieVideoEncoding> =\n planAutoMovieVideoEncoding({\n spec,\n durationSeconds: subject.durationSeconds,\n frameDir: props.frameDir,\n outputPath: props.outputPath,\n audio: props.audio,\n });\n\n // Every frame of the clock, drawn and written in order.\n const frames: {\n index: number;\n seconds: number;\n file: string;\n hash: string;\n }[] = [];\n const times: number[] = frameTimes(subject.fps, subject.durationSeconds);\n for (const [index, seconds] of times.entries()) {\n const picture: IAutoMovieRasterImage = (\n await props.session.frame(seconds, [\"beauty\"])\n )[0]!.picture;\n const file: string = `${props.frameDir}/${frameName(index)}`;\n await props.write(file, await encodeAutoMovieRasterPng(picture));\n frames.push({\n index,\n seconds,\n file,\n hash: hashAutoMovieRasterImage(picture),\n });\n }\n\n await props.encode(plan.args);\n return { frames, args: plan.args };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAyBA,eAAsB,0BAA0B,OA2B7C;CACD,MAAM,EAAE,YAAY,MAAM;CAC1B,MAAM,OAA6B;EACjC,GAAG,MAAM;EACT,aAAa;GACX,OAAO,QAAQ;GACf,QAAQ,QAAQ;GAChB,KAAK,QAAQ;EACf;CACF;CACA,MAAM,OACJ,2BAA2B;EACzB;EACA,iBAAiB,QAAQ;EACzB,UAAU,MAAM;EAChB,YAAY,MAAM;EAClB,OAAO,MAAM;CACf,CAAC;CAGH,MAAM,SAKA,CAAC;CACP,MAAM,QAAkB,WAAW,QAAQ,KAAK,QAAQ,eAAe;CACvE,KAAK,MAAM,CAAC,OAAO,YAAY,MAAM,QAAQ,GAAG;EAC9C,MAAM,WACJ,MAAM,MAAM,QAAQ,MAAM,SAAS,CAAC,QAAQ,CAAC,EAAA,CAC7C,EAAE,CAAE;EACN,MAAM,OAAe,GAAG,MAAM,SAAS,GAAG,UAAU,KAAK;EACzD,MAAM,MAAM,MAAM,MAAM,MAAM,yBAAyB,OAAO,CAAC;EAC/D,OAAO,KAAK;GACV;GACA;GACA;GACA,MAAM,yBAAyB,OAAO;EACxC,CAAC;CACH;CAEA,MAAM,MAAM,OAAO,KAAK,IAAI;CAC5B,OAAO;EAAE;EAAQ,MAAM,KAAK;CAAK;AACnC"}
1
+ {"version":3,"file":"renderAutoMovieDrawnVideo.mjs","names":[],"sources":["../../src/draw/renderAutoMovieDrawnVideo.ts"],"sourcesContent":["import type {\n IAutoMovieDrawnVideoResult,\n IAutoMovieRasterImage,\n IAutoMovieRenderSpec,\n} from \"@automovie/interface\";\n\nimport { planAutoMovieVideoEncoding } from \"../delivery/planAutoMovieVideoEncoding.js\";\nimport { frameName } from \"../frameName.js\";\nimport { frameTimes } from \"../frameTimes.js\";\nimport { encodeAutoMovieRasterPng } from \"../picture/encodeAutoMovieRasterPng.js\";\nimport { hashAutoMovieRasterImage } from \"../picture/hashAutoMovieRasterImage.js\";\nimport type { AutoMovieDrawSession } from \"./AutoMovieDrawSession.js\";\n\n/**\n * Render a drawn subject into one video: draw every frame of its clock through the draw page's function, write each as a PNG, then encode them once.\n *\n * The clock and raster are the subject's, read from the session, so the spec takes no frame format. The encoding is admitted and planned by `planAutoMovieVideoEncoding` before the first frame is drawn, so a clock that is not a whole number of frames or an odd raster costs no drawing. Frame `i` is drawn at `frameTimes`' second `i / fps` in the `beauty` pass through the subject's own camera, and written as `<frameDir>/frame_<i>.png`; frames are drawn and written one at a time, in order. The encoder then runs once with the planned arguments.\n *\n * Files and processes are the host's: `write` stores a file and `encode` runs FFmpeg, so the order of every step runs under a unit test. A draw, write or encode failure rejects at once and leaves the files written so far to the host.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States where the clock and raster come from, when the plan is admitted, how each frame is drawn, named and written, what the host supplies and what a failure leaves.\n * @evidence contracts/development/implementation.md#principled-implementation Every delivered frame comes from the same draw function inspection stills use, at the exact schedule `frameTimes` gives, and the encoder runs on the vector `planAutoMovieVideoEncoding` admits, so a delivered video and a still at the same second are drawn by the same code.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Plan, then one loop of draw, encode as PNG, hash and write, then one encode.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No frame is skipped or reused and no failure is retried.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in frames times pixels: one draw, one PNG encoding and one hash per frame.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each frame is drawn once; nothing is shared between renders.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources One frame's picture and bytes are held at a time, plus one record per frame; the session stays the caller's.\n */\nexport async function renderAutoMovieDrawnVideo(props: {\n /** The opened draw session of the subject. */\n session: Pick<AutoMovieDrawSession, \"subject\" | \"frame\">;\n\n /** Encoding controls; the frame format is the subject's clock and raster. */\n spec: Omit<IAutoMovieRenderSpec, \"frameFormat\">;\n\n /** Folder the frame files are written into. */\n frameDir: string;\n\n /** The video file the encoder writes. */\n outputPath: string;\n\n /** A complete soundtrack to mux, or null for none. */\n audio: string | null;\n\n /** Store one file whole. */\n write: (path: string, data: Uint8Array) => Promise<void>;\n\n /** Run FFmpeg with the arguments, resolving once it succeeded. */\n encode: (args: readonly string[]) => Promise<void>;\n}): Promise<IAutoMovieDrawnVideoResult> {\n const { subject } = props.session;\n const spec: IAutoMovieRenderSpec = {\n ...props.spec,\n frameFormat: {\n width: subject.width,\n height: subject.height,\n fps: subject.fps,\n },\n };\n const plan: ReturnType<typeof planAutoMovieVideoEncoding> =\n planAutoMovieVideoEncoding({\n spec,\n durationSeconds: subject.durationSeconds,\n frameDir: props.frameDir,\n outputPath: props.outputPath,\n audio: props.audio,\n });\n\n // Every frame of the clock, drawn and written in order.\n const frames: {\n index: number;\n seconds: number;\n file: string;\n hash: string;\n }[] = [];\n const times: number[] = frameTimes(subject.fps, subject.durationSeconds);\n for (const [index, seconds] of times.entries()) {\n const picture: IAutoMovieRasterImage = (\n await props.session.frame(seconds, [\"beauty\"])\n )[0]!.picture;\n const file: string = `${props.frameDir}/${frameName(index)}`;\n await props.write(file, await encodeAutoMovieRasterPng(picture));\n frames.push({\n index,\n seconds,\n file,\n hash: hashAutoMovieRasterImage(picture),\n });\n }\n\n await props.encode(plan.args);\n return { frames, args: plan.args };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BA,eAAsB,0BAA0B,OAqBR;CACtC,MAAM,EAAE,YAAY,MAAM;CAC1B,MAAM,OAA6B;EACjC,GAAG,MAAM;EACT,aAAa;GACX,OAAO,QAAQ;GACf,QAAQ,QAAQ;GAChB,KAAK,QAAQ;EACf;CACF;CACA,MAAM,OACJ,2BAA2B;EACzB;EACA,iBAAiB,QAAQ;EACzB,UAAU,MAAM;EAChB,YAAY,MAAM;EAClB,OAAO,MAAM;CACf,CAAC;CAGH,MAAM,SAKA,CAAC;CACP,MAAM,QAAkB,WAAW,QAAQ,KAAK,QAAQ,eAAe;CACvE,KAAK,MAAM,CAAC,OAAO,YAAY,MAAM,QAAQ,GAAG;EAC9C,MAAM,WACJ,MAAM,MAAM,QAAQ,MAAM,SAAS,CAAC,QAAQ,CAAC,EAAA,CAC7C,EAAE,CAAE;EACN,MAAM,OAAe,GAAG,MAAM,SAAS,GAAG,UAAU,KAAK;EACzD,MAAM,MAAM,MAAM,MAAM,MAAM,yBAAyB,OAAO,CAAC;EAC/D,OAAO,KAAK;GACV;GACA;GACA;GACA,MAAM,yBAAyB,OAAO;EACxC,CAAC;CACH;CAEA,MAAM,MAAM,OAAO,KAAK,IAAI;CAC5B,OAAO;EAAE;EAAQ,MAAM,KAAK;CAAK;AACnC"}
@@ -0,0 +1,24 @@
1
+ import type { IAutoMovieMark } from "@automovie/interface";
2
+ import type { IApplyAutoMovieInspectionProps } from "../scene/inspection/IApplyAutoMovieInspectionProps.js";
3
+ import type { IAutoMovieInspectionHandle } from "../scene/inspection/IAutoMovieInspectionHandle.js";
4
+ /**
5
+ * End the old inspection before placement and bind a new one to its actual objects.
6
+ *
7
+ * @param props The previous handle, actual scene/request, optional renderer and asynchronous placement that returns its current marks.
8
+ * @returns An inspection of the scene graph that placement actually produced.
9
+ * @throws {Error} When placement or inspection fails; the previous handle has already been restored.
10
+ * @evidence contracts/development/common.md#meaningful-documentation States restoration-before-placement, current-object admission, optional renderer and failure cleanup.
11
+ * @evidence contracts/development/implementation.md#principled-implementation An inspection owns masks, materials and measurements of concrete objects. A seek may replace those objects, so request equality cannot certify reuse: release the prior state, await placement and apply to the resulting graph.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Restore the previous owner, await one placement and call the single inspection producer with the resulting current marks.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No stale handle, subject monkeypatch, fake readiness or renderer replacement bypasses scene placement. A placement failure cannot leave the old scene inspection active.
14
+ * @evidence contracts/development/implementation.md#efficient-algorithms Adds one restore and one actual inspection application around the owner's placement cost. Mesh/triangle measurement remains the inspection owner's work; no assumption of unchanged topology skips necessary admission.
15
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the existing inspection producer and its cleanup rather than duplicating masks, shade or geometry measurements; source graph identity is not inferred from an unchanged request.
16
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The previous inspection ends before asynchronous placement. The returned handle alone owns current inspection resources; applyAutoMovieInspection rolls back its own failed application and no query cache or background task is retained.
17
+ */
18
+ export declare function replaceAutoMovieDrawInspection(props: {
19
+ previous: IAutoMovieInspectionHandle | null;
20
+ scene: IApplyAutoMovieInspectionProps["scene"];
21
+ request: IApplyAutoMovieInspectionProps["request"];
22
+ renderer?: IApplyAutoMovieInspectionProps["renderer"];
23
+ place: () => Promise<readonly IAutoMovieMark[]>;
24
+ }): Promise<IAutoMovieInspectionHandle>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceAutoMovieDrawInspection = replaceAutoMovieDrawInspection;
4
+ const applyAutoMovieInspection_js_1 = require("../scene/inspection/applyAutoMovieInspection.js");
5
+ /**
6
+ * End the old inspection before placement and bind a new one to its actual objects.
7
+ *
8
+ * @param props The previous handle, actual scene/request, optional renderer and asynchronous placement that returns its current marks.
9
+ * @returns An inspection of the scene graph that placement actually produced.
10
+ * @throws {Error} When placement or inspection fails; the previous handle has already been restored.
11
+ * @evidence contracts/development/common.md#meaningful-documentation States restoration-before-placement, current-object admission, optional renderer and failure cleanup.
12
+ * @evidence contracts/development/implementation.md#principled-implementation An inspection owns masks, materials and measurements of concrete objects. A seek may replace those objects, so request equality cannot certify reuse: release the prior state, await placement and apply to the resulting graph.
13
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Restore the previous owner, await one placement and call the single inspection producer with the resulting current marks.
14
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No stale handle, subject monkeypatch, fake readiness or renderer replacement bypasses scene placement. A placement failure cannot leave the old scene inspection active.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms Adds one restore and one actual inspection application around the owner's placement cost. Mesh/triangle measurement remains the inspection owner's work; no assumption of unchanged topology skips necessary admission.
16
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the existing inspection producer and its cleanup rather than duplicating masks, shade or geometry measurements; source graph identity is not inferred from an unchanged request.
17
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The previous inspection ends before asynchronous placement. The returned handle alone owns current inspection resources; applyAutoMovieInspection rolls back its own failed application and no query cache or background task is retained.
18
+ */
19
+ async function replaceAutoMovieDrawInspection(props) {
20
+ props.previous?.restore();
21
+ const marks = await props.place();
22
+ return (0, applyAutoMovieInspection_js_1.applyAutoMovieInspection)({
23
+ scene: props.scene,
24
+ request: props.request,
25
+ marks,
26
+ ...(props.renderer === undefined ? {} : { renderer: props.renderer }),
27
+ });
28
+ }
29
+ //# sourceMappingURL=replaceAutoMovieDrawInspection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceAutoMovieDrawInspection.js","sourceRoot":"","sources":["../../src/draw/replaceAutoMovieDrawInspection.ts"],"names":[],"mappings":";;;AAIA,iGAA2F;AAE3F;;;;;;;;;;;;;GAaG;AACI,KAAK,yCAAyC,KAMpD;IACC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAC1B,MAAM,KAAK,GAA8B,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;IAC7D,OAAO,IAAA,sDAAwB,EAAC;QAC9B,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK;QACL,GAAG,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;KACtE,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { applyAutoMovieInspection } from "../scene/inspection/applyAutoMovieInspection.mjs";
2
+ // src/draw/replaceAutoMovieDrawInspection.ts
3
+ /**
4
+ * End the old inspection before placement and bind a new one to its actual objects.
5
+ *
6
+ * @param props The previous handle, actual scene/request, optional renderer and asynchronous placement that returns its current marks.
7
+ * @returns An inspection of the scene graph that placement actually produced.
8
+ * @throws {Error} When placement or inspection fails; the previous handle has already been restored.
9
+ * @evidence contracts/development/common.md#meaningful-documentation States restoration-before-placement, current-object admission, optional renderer and failure cleanup.
10
+ * @evidence contracts/development/implementation.md#principled-implementation An inspection owns masks, materials and measurements of concrete objects. A seek may replace those objects, so request equality cannot certify reuse: release the prior state, await placement and apply to the resulting graph.
11
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Restore the previous owner, await one placement and call the single inspection producer with the resulting current marks.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No stale handle, subject monkeypatch, fake readiness or renderer replacement bypasses scene placement. A placement failure cannot leave the old scene inspection active.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms Adds one restore and one actual inspection application around the owner's placement cost. Mesh/triangle measurement remains the inspection owner's work; no assumption of unchanged topology skips necessary admission.
14
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the existing inspection producer and its cleanup rather than duplicating masks, shade or geometry measurements; source graph identity is not inferred from an unchanged request.
15
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The previous inspection ends before asynchronous placement. The returned handle alone owns current inspection resources; applyAutoMovieInspection rolls back its own failed application and no query cache or background task is retained.
16
+ */
17
+ async function replaceAutoMovieDrawInspection(props) {
18
+ props.previous?.restore();
19
+ const marks = await props.place();
20
+ return applyAutoMovieInspection({
21
+ scene: props.scene,
22
+ request: props.request,
23
+ marks,
24
+ ...props.renderer === void 0 ? {} : { renderer: props.renderer }
25
+ });
26
+ }
27
+ export { replaceAutoMovieDrawInspection };
28
+
29
+ //# sourceMappingURL=replaceAutoMovieDrawInspection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceAutoMovieDrawInspection.mjs","names":[],"sources":["../../src/draw/replaceAutoMovieDrawInspection.ts"],"sourcesContent":["import type { IAutoMovieMark } from \"@automovie/interface\";\n\nimport type { IApplyAutoMovieInspectionProps } from \"../scene/inspection/IApplyAutoMovieInspectionProps.js\";\nimport type { IAutoMovieInspectionHandle } from \"../scene/inspection/IAutoMovieInspectionHandle.js\";\nimport { applyAutoMovieInspection } from \"../scene/inspection/applyAutoMovieInspection.js\";\n\n/**\n * End the old inspection before placement and bind a new one to its actual objects.\n *\n * @param props The previous handle, actual scene/request, optional renderer and asynchronous placement that returns its current marks.\n * @returns An inspection of the scene graph that placement actually produced.\n * @throws {Error} When placement or inspection fails; the previous handle has already been restored.\n * @evidence contracts/development/common.md#meaningful-documentation States restoration-before-placement, current-object admission, optional renderer and failure cleanup.\n * @evidence contracts/development/implementation.md#principled-implementation An inspection owns masks, materials and measurements of concrete objects. A seek may replace those objects, so request equality cannot certify reuse: release the prior state, await placement and apply to the resulting graph.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Restore the previous owner, await one placement and call the single inspection producer with the resulting current marks.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No stale handle, subject monkeypatch, fake readiness or renderer replacement bypasses scene placement. A placement failure cannot leave the old scene inspection active.\n * @evidence contracts/development/implementation.md#efficient-algorithms Adds one restore and one actual inspection application around the owner's placement cost. Mesh/triangle measurement remains the inspection owner's work; no assumption of unchanged topology skips necessary admission.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the existing inspection producer and its cleanup rather than duplicating masks, shade or geometry measurements; source graph identity is not inferred from an unchanged request.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The previous inspection ends before asynchronous placement. The returned handle alone owns current inspection resources; applyAutoMovieInspection rolls back its own failed application and no query cache or background task is retained.\n */\nexport async function replaceAutoMovieDrawInspection(props: {\n previous: IAutoMovieInspectionHandle | null;\n scene: IApplyAutoMovieInspectionProps[\"scene\"];\n request: IApplyAutoMovieInspectionProps[\"request\"];\n renderer?: IApplyAutoMovieInspectionProps[\"renderer\"];\n place: () => Promise<readonly IAutoMovieMark[]>;\n}): Promise<IAutoMovieInspectionHandle> {\n props.previous?.restore();\n const marks: readonly IAutoMovieMark[] = await props.place();\n return applyAutoMovieInspection({\n scene: props.scene,\n request: props.request,\n marks,\n ...(props.renderer === undefined ? {} : { renderer: props.renderer }),\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoBA,eAAsB,+BAA+B,OAMb;CACtC,MAAM,UAAU,QAAQ;CACxB,MAAM,QAAmC,MAAM,MAAM,MAAM;CAC3D,OAAO,yBAAyB;EAC9B,OAAO,MAAM;EACb,SAAS,MAAM;EACf;EACA,GAAI,MAAM,aAAa,KAAA,IAAY,CAAC,IAAI,EAAE,UAAU,MAAM,SAAS;CACrE,CAAC;AACH"}
@@ -1,6 +1,4 @@
1
- import type { IAutoMovieCaptureDrawing } from "../capture/IAutoMovieCaptureDrawing.js";
2
- import type { IAutoMovieRasterImage } from "../picture/IAutoMovieRasterImage.js";
3
- import type { IAutoMovieInspectionLegendEntry } from "../scene/inspection/IAutoMovieInspectionLegendEntry.js";
1
+ import type { IAutoMovieInspectionLegendEntry, IAutoMovieRasterImage, IAutoMovieRasterLabel } from "@automovie/interface";
4
2
  /**
5
3
  * Put a picture's legend on the picture itself, in the corner where it hides the least of what was drawn: one row per entry, a square of the entry's colour followed by the label stamp's text `<label> <count>`, so a reader of the still alone knows what each mark colour means.
6
4
  *
@@ -14,4 +12,4 @@ import type { IAutoMovieInspectionLegendEntry } from "../scene/inspection/IAutoM
14
12
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure stamp of one picture.
15
13
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Writes into the picture's own bytes and returns fresh labels.
16
14
  */
17
- export declare function stampAutoMovieDrawLegend(picture: IAutoMovieRasterImage, legend: readonly IAutoMovieInspectionLegendEntry[], scale: number): IAutoMovieCaptureDrawing.ILabel[];
15
+ export declare function stampAutoMovieDrawLegend(picture: IAutoMovieRasterImage, legend: readonly IAutoMovieInspectionLegendEntry[], scale: number): IAutoMovieRasterLabel[];
@@ -1 +1 @@
1
- {"version":3,"file":"stampAutoMovieDrawLegend.js","sourceRoot":"","sources":["../../src/draw/stampAutoMovieDrawLegend.ts"],"names":[],"mappings":";;;AAIA,mIAAmI;AACnI,MAAM,GAAG,GAAW,CAAC,CAAC;AAEtB;;;;;;;;;;;;GAYG;AACH,kCACE,OAA8B,EAC9B,MAAkD,EAClD,KAAa;IAEb,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC1C,MAAM,IAAI,GAAW,GAAG,GAAG,KAAK,CAAC;IACjC,MAAM,KAAK,GAAa,MAAM,CAAC,GAAG,CAChC,CAAC,KAAsC,EAAU,EAAE,CACjD,GAAG,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE,CAClC,CAAC;IAEF,2GAA2G;IAC3G,MAAM,UAAU,GAAW,IAAI,CAAC,GAAG,CACjC,KAAK,EACL,IAAI;QACF,IAAI,CAAC,GAAG,CACN,GAAG,KAAK,CAAC,GAAG,CACV,CAAC,IAAY,EAAU,EAAE,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,K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K,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;gBAC/C,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;gBACxC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;YAC3B,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAE,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;IAC9D,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stampAutoMovieDrawLegend.mjs","names":[],"sources":["../../src/draw/stampAutoMovieDrawLegend.ts"],"sourcesContent":["import type { IAutoMovieCaptureDrawing } from \"../capture/IAutoMovieCaptureDrawing.js\";\nimport type { IAutoMovieRasterImage } from \"../picture/IAutoMovieRasterImage.js\";\nimport type { IAutoMovieInspectionLegendEntry } from \"../scene/inspection/IAutoMovieInspectionLegendEntry.js\";\n\n/** Rows of a stamped label box in font pixels: five glyph rows and two of padding above and below, as the label stamp draws it. */\nconst ROW: number = 9;\n\n/**\n * Put a picture's legend on the picture itself, in the corner where it hides the least of what was drawn: one row per entry, a square of the entry's colour followed by the label stamp's text `<label> <count>`, so a reader of the still alone knows what each mark colour means.\n *\n * The block is tried in the bottom-left, bottom-right, top-right and top-left corners, in that order; every corner is free, since a contact sheet writes its caption in a strip under each cell rather than over the still. The block goes where the fewest of its pixels differ from the colour of the picture's pixel in that very corner, the background the corner shows, so it covers empty space where the picture has any, and the earlier corner wins a tie. Each swatch is painted now, `ROW × scale` pixels on a side, the height of a stamped label box; the returned labels are the rows' texts, anchored right of their swatches, for the capture run to stamp at the same `scale`. An empty legend paints nothing and returns nothing.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the layout, the corner rule and why every corner is open, what is painted now and what is returned for stamping, the units, and the empty case.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/passes.md` asks for a legend naming each colour's finding and for labels hidden where they cover what is judged; drawing it into the still keeps it with the picture a vision model reads, the swatch is the exact sRGB colour the inspection drew the kind in, and the corner is chosen by counting the drawn pixels it would hide, measured on the picture itself.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Measure the block, count each corner's covered pixels, paint the swatches and collect the text anchors; text drawing is the label stamp's.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Entries keep the legend's order and wording; nothing is abbreviated or recoloured, and no corner is fixed for a kind of subject.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the block's area times the four corners tried, plus the swatches' pixels.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure stamp of one picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Writes into the picture's own bytes and returns fresh labels.\n */\nexport function stampAutoMovieDrawLegend(\n picture: IAutoMovieRasterImage,\n legend: readonly IAutoMovieInspectionLegendEntry[],\n scale: number,\n): IAutoMovieCaptureDrawing.ILabel[] {\n if (legend.length === 0) return [];\n const { width, height, pixels } = picture;\n const side: number = ROW * scale;\n const texts: string[] = legend.map(\n (entry: IAutoMovieInspectionLegendEntry): string =>\n `${entry.label} ${entry.count}`,\n );\n\n // The block: swatches, then the widest stamped text box (two pads, four font pixels a character less one).\n const blockWidth: number = Math.min(\n width,\n side +\n Math.max(\n ...texts.map(\n (text: string): number => 4 * scale + text.length * 4 * scale - scale,\n ),\n ),\n );\n const blockHeight: number = Math.min(height, legend.length * side);\n\n // The corner whose block hides the fewest pixels unlike that corner's own pixel.\n const corners: { left: number; top: number; x: number; y: number }[] = [\n { left: 0, top: height - blockHeight, x: 0, y: height - 1 },\n {\n left: width - blockWidth,\n top: height - blockHeight,\n x: width - 1,\n y: height - 1,\n },\n { left: width - blockWidth, top: 0, x: width - 1, y: 0 },\n { left: 0, top: 0, x: 0, y: 0 },\n ];\n let best: { left: number; top: number } = corners[0]!;\n let fewest: number = Number.POSITIVE_INFINITY;\n for (const corner of corners) {\n const reference: number = (corner.y * width + corner.x) * 4;\n let covered: number = 0;\n for (let y: number = corner.top; y < corner.top + blockHeight; y++)\n for (let x: number = corner.left; x < corner.left + blockWidth; x++) {\n const offset: number = (y * width + x) * 4;\n if (\n pixels[offset] !== pixels[reference] ||\n pixels[offset + 1] !== pixels[reference + 1] ||\n pixels[offset + 2] !== pixels[reference + 2]\n )\n covered++;\n }\n if (covered < fewest) {\n fewest = covered;\n best = corner;\n }\n }\n\n // Swatches now, texts for the run to stamp.\n return legend.map(\n (\n entry: IAutoMovieInspectionLegendEntry,\n index: number,\n ): IAutoMovieCaptureDrawing.ILabel => {\n const top: number = best.top + index * side;\n for (\n let y: number = Math.max(0, top);\n y < Math.min(height, top + side);\n y++\n )\n for (\n let x: number = best.left;\n x < Math.min(width, best.left + side);\n x++\n ) {\n const offset: number = (y * width + x) * 4;\n pixels[offset] = (entry.color >> 16) & 0xff;\n pixels[offset + 1] = (entry.color >> 8) & 0xff;\n pixels[offset + 2] = entry.color & 0xff;\n pixels[offset + 3] = 255;\n }\n return { text: texts[index]!, x: best.left + side, y: top };\n },\n );\n}\n"],"mappings":";;AAKA,MAAM,MAAc;;;;;;;;;;;;;;AAepB,SAAgB,yBACd,SACA,QACA,OACmC;CACnC,IAAI,OAAO,WAAW,GAAG,OAAO,CAAC;CACjC,MAAM,EAAE,OAAO,QAAQ,WAAW;CAClC,MAAM,OAAe,MAAM;CAC3B,MAAM,QAAkB,OAAO,KAC5B,UACC,GAAG,MAAM,MAAM,GAAG,MAAM,OAC5B;CAGA,MAAM,aAAqB,KAAK,IAC9B,OACA,OACE,KAAK,IACH,GAAG,MAAM,KACN,SAAyB,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAClE,CACF,CACJ;CACA,MAAM,cAAsB,KAAK,IAAI,QAAQ,OAAO,SAAS,IAAI;CAGjE,MAAM,UAAiE;EACrE;GAAE,MAAM;GAAG,KAAK,SAAS;GAAa,GAAG;GAAG,GAA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AAG;EAAI;CAC5D,CACF;AACF"}
1
+ {"version":3,"file":"stampAutoMovieDrawLegend.mjs","names":[],"sources":["../../src/draw/stampAutoMovieDrawLegend.ts"],"sourcesContent":["import type {\n IAutoMovieInspectionLegendEntry,\n IAutoMovieRasterImage,\n IAutoMovieRasterLabel,\n} from \"@automovie/interface\";\n\n/** Rows of a stamped label box in font pixels: five glyph rows and two of padding above and below, as the label stamp draws it. */\nconst ROW: number = 9;\n\n/**\n * Put a picture's legend on the picture itself, in the corner where it hides the least of what was drawn: one row per entry, a square of the entry's colour followed by the label stamp's text `<label> <count>`, so a reader of the still alone knows what each mark colour means.\n *\n * The block is tried in the bottom-left, bottom-right, top-right and top-left corners, in that order; every corner is free, since a contact sheet writes its caption in a strip under each cell rather than over the still. The block goes where the fewest of its pixels differ from the colour of the picture's pixel in that very corner, the background the corner shows, so it covers empty space where the picture has any, and the earlier corner wins a tie. Each swatch is painted now, `ROW × scale` pixels on a side, the height of a stamped label box; the returned labels are the rows' texts, anchored right of their swatches, for the capture run to stamp at the same `scale`. An empty legend paints nothing and returns nothing.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the layout, the corner rule and why every corner is open, what is painted now and what is returned for stamping, the units, and the empty case.\n * @evidence contracts/development/implementation.md#principled-implementation `.agents/skills/visual-debugging/passes.md` asks for a legend naming each colour's finding and for labels hidden where they cover what is judged; drawing it into the still keeps it with the picture a vision model reads, the swatch is the exact sRGB colour the inspection drew the kind in, and the corner is chosen by counting the drawn pixels it would hide, measured on the picture itself.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Measure the block, count each corner's covered pixels, paint the swatches and collect the text anchors; text drawing is the label stamp's.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Entries keep the legend's order and wording; nothing is abbreviated or recoloured, and no corner is fixed for a kind of subject.\n * @evidence contracts/development/implementation.md#efficient-algorithms Linear in the block's area times the four corners tried, plus the swatches' pixels.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure stamp of one picture.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Writes into the picture's own bytes and returns fresh labels.\n */\nexport function stampAutoMovieDrawLegend(\n picture: IAutoMovieRasterImage,\n legend: readonly IAutoMovieInspectionLegendEntry[],\n scale: number,\n): IAutoMovieRasterLabel[] {\n if (legend.length === 0) return [];\n const { width, height, pixels } = picture;\n const side: number = ROW * scale;\n const texts: string[] = legend.map(\n (entry: IAutoMovieInspectionLegendEntry): string =>\n `${entry.label} ${entry.count}`,\n );\n\n // The block: swatches, then the widest stamped text box (two pads, four font pixels a character less one).\n const blockWidth: number = Math.min(\n width,\n side +\n Math.max(\n ...texts.map(\n (text: string): number => 4 * scale + text.length * 4 * scale - scale,\n ),\n ),\n );\n const blockHeight: number = Math.min(height, legend.length * side);\n\n // The corner whose block hides the fewest pixels unlike that corner's own pixel.\n const corners: { left: number; top: number; x: number; y: number }[] = [\n { left: 0, top: height - blockHeight, x: 0, y: height - 1 },\n {\n left: width - blockWidth,\n top: height - blockHeight,\n x: width - 1,\n y: height - 1,\n },\n { left: width - blockWidth, top: 0, x: width - 1, y: 0 },\n { left: 0, top: 0, x: 0, y: 0 },\n ];\n let best: { left: number; top: number } = corners[0]!;\n let fewest: number = Number.POSITIVE_INFINITY;\n for (const corner of corners) {\n const reference: number = (corner.y * width + corner.x) * 4;\n let covered: number = 0;\n for (let y: number = corner.top; y < corner.top + blockHeight; y++)\n for (let x: number = corner.left; x < corner.left + blockWidth; x++) {\n const offset: number = (y * width + x) * 4;\n if (\n pixels[offset] !== pixels[reference] ||\n pixels[offset + 1] !== pixels[reference + 1] ||\n pixels[offset + 2] !== pixels[reference + 2]\n )\n covered++;\n }\n if (covered < fewest) {\n fewest = covered;\n best = corner;\n }\n }\n\n // Swatches now, texts for the run to stamp.\n return legend.map(\n (\n entry: IAutoMovieInspectionLegendEntry,\n index: number,\n ): IAutoMovieRasterLabel => {\n const top: number = best.top + index * side;\n for (\n let y: number = Math.max(0, top);\n y < Math.min(height, top + side);\n y++\n )\n for (\n let x: number = best.left;\n x < Math.min(width, best.left + side);\n x++\n ) {\n const offset: number = (y * width + x) * 4;\n pixels[offset] = (entry.color >> 16) & 0xff;\n pixels[offset + 1] = (entry.color >> 8) & 0xff;\n pixels[offset + 2] = entry.color & 0xff;\n pixels[offset + 3] = 255;\n }\n return { text: texts[index]!, x: best.left + side, y: top };\n },\n );\n}\n"],"mappings":";;AAOA,MAAM,MAAc;;;;;;;;;;;;;;AAepB,SAAgB,yBACd,SACA,QACA,OACyB;CACzB,IAAI,OAAO,WAAW,GAAG,OAAO,CAAC;CACjC,MAAM,EAAE,OAAO,QAAQ,WAAW;CAClC,MAAM,OAAe,MAAM;CAC3B,MAAM,QAAkB,OAAO,KAC5B,UACC,GAAG,MAAM,MAAM,GAAG,MAAM,OAC5B;CAGA,MAAM,aAAqB,KAAK,IAC9B,OACA,OACE,KAAK,IACH,GAAG,MAAM,KACN,SAAyB,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAClE,CACF,CACJ;CACA,MAAM,cAAsB,KAAK,IAAI,QAAQ,OAAO,SAAS,IAAI;CAGjE,MAAM,UAAiE;EACrE;GAAE,MAAM;GAAG,KAAK,SAAS;GAAa,GAAG;GAAG,GAAG,SAAS;EAAE;EAC1D;GACE,MAAM,QAAQ;GACd,KAAK,SAAS;GACd,GAAG,QAAQ;GACX,GAAG,SAAS;EACd;EACA;GAAE,MAAM,QAAQ;GAAY,KAAK;GAAG,GAAG,QAAQ;GAAG,GAAG;EAAE;EACvD;GAAE,MAAM;GAAG,KAAK;GAAG,GAAG;GAAG,GAAG;EAAE;CAChC;CACA,IAAI,OAAsC,QAAQ;CAClD,IAAI,SAAiB,OAAO;CAC5B,KAAK,MAAM,UAAU,SAAS;EAC5B,MAAM,aAAqB,OAAO,IAAI,QAAQ,OAAO,KAAK;EAC1D,IAAI,UAAkB;EACtB,KAAK,IAAI,IAAY,OAAO,KAAK,IAAI,OAAO,MAAM,aAAa,KAC7D,KAAK,IAAI,IAAY,OAAO,MAAM,IAAI,OAAO,OAAO,YAAY,KAAK;GACnE,MAAM,UAAkB,IAAI,QAAQ,KAAK;GACzC,IACE,OAAO,YAAY,OAAO,cAC1B,OAAO,SAAS,OAAO,OAAO,YAAY,MAC1C,OAAO,SAAS,OAAO,OAAO,YAAY,IAE1C;EACJ;EACF,IAAI,UAAU,QAAQ;GACpB,SAAS;GACT,OAAO;EACT;CACF;CAGA,OAAO,OAAO,KAEV,OACA,UAC0B;EAC1B,MAAM,MAAc,KAAK,MAAM,QAAQ;EACvC,KACE,IAAI,IAAY,KAAK,IAAI,GAAG,GAAG,GAC/B,IAAI,KAAK,IAAI,QAAQ,MAAM,IAAI,GAC/B,KAEA,KACE,IAAI,IAAY,KAAK,MACrB,IAAI,KAAK,IAAI,OAAO,KAAK,OAAO,IAAI,GACpC,KACA;GACA,MAAM,UAAkB,IAAI,QAAQ,KAAK;GACzC,OAAO,UAAW,MAAM,SAAS,KAAM;GACvC,OAAO,SAAS,KAAM,MAAM,SAAS,IAAK;GAC1C,OAAO,SAAS,KAAK,MAAM,QAAQ;GACnC,OAAO,SAAS,KAAK;EACvB;EACF,OAAO;GAAE,MAAM,MAAM;GAAS,GAAG,KAAK,OAAO;GAAM,GAAG;EAAI;CAC5D,CACF;AACF"}
@@ -1,15 +1 @@
1
- /**
2
- * One comparable leaf value in an ordered plan field.
3
- *
4
- * `equalOrderedScalars` compares arrays of these, or arrays of arrays of them,
5
- * position by position. The two fields it serves are a WAVE speaker label
6
- * array, whose leaves are strings, and a downmix matrix, whose leaves are
7
- * numbers; naming the leaf type keeps a record or other value out of that
8
- * comparison at compile time.
9
- *
10
- * @evidence contracts/development/design.md#principled-representation A closed union of the two primitive types the compared fields hold lets `Object.is` decide every leaf, since strings and numbers are compared by value and need no structural recursion.
11
- * @evidence contracts/development/design.md#minimal-and-owned-surface The alias exists only to give `equalOrderedScalars` a stated leaf domain; it adds no wrapper, tag or runtime value.
12
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The union lists the leaf types of the two real compared fields and special-cases no value; nothing else is admitted for a future caller.
13
- * @evidence contracts/development/common.md#meaningful-documentation The doc names the comparison that reads the type, the two fields whose leaves it covers, and what the narrow domain keeps out.
14
- */
15
- export type AutoMovieOrderedScalar = number | string;
1
+ export type { AutoMovieOrderedScalar } from "@automovie/interface";
@@ -1,28 +1 @@
1
- import type { IAutoMovieProductionAudioProcessing, IAutoMovieProductionWaveSourceFormat } from "@automovie/ingest";
2
- import type { IAutoMovieProductionAudioAssetIdentityBase } from "./IAutoMovieProductionAudioAssetIdentityBase.js";
3
- /**
4
- * Source-format or placeholder provenance of one audio asset a render plan
5
- * references.
6
- *
7
- * The `wave` arm carries the decoder's source format and processing record
8
- * unchanged, and `normalizeAudioAssets` refuses it when either contradicts the
9
- * record's own rate and channel count. The `placeholder-audio-stem` arm names a
10
- * deterministic guide stem in the sound plan's 48 kHz stereo format and carries
11
- * no WAVE facts, so a stem cannot pose as a decoded source.
12
- *
13
- * @evidence contracts/development/design.md#principled-representation A discriminated union on `kind` makes the WAVE facts present exactly when the asset was decoded, so a consumer narrows by the tag instead of testing optional fields.
14
- * @evidence contracts/development/design.md#minimal-and-owned-surface The shared facts come from `IAutoMovieProductionAudioAssetIdentityBase` and each arm adds only its provenance, reusing ingest's own source-format and processing types rather than restating them.
15
- * @evidence contracts/development/design.md#prohibited-design-shortcuts Neither arm special-cases an asset; the placeholder arm's fixed format is the sound plan's contract rate and channel count, which `normalizeAudioAssets` enforces.
16
- * @evidence contracts/development/common.md#meaningful-documentation The doc says what each arm carries, where the WAVE facts come from, which validator refuses a contradiction, and the placeholder format.
17
- */
18
- export type IAutoMovieProductionAudioAssetIdentity = IAutoMovieProductionAudioAssetIdentityBase & ({
19
- /** A deterministic guide stem with no decoded source. */
20
- kind: "placeholder-audio-stem";
21
- } | {
22
- /** A decoded RIFF/WAVE source. */
23
- kind: "wave";
24
- /** The WAVE declaration the decoder read, before processing. */
25
- sourceFormat: IAutoMovieProductionWaveSourceFormat;
26
- /** The conversion the decoder applied to produce mixer input. */
27
- processing: IAutoMovieProductionAudioProcessing;
28
- });
1
+ export type { IAutoMovieProductionAudioAssetIdentity } from "@automovie/interface";
@@ -1,29 +1 @@
1
- /**
2
- * Byte, clock and channel facts every planned audio asset carries, whatever
3
- * its provenance.
4
- *
5
- * The placeholder and WAVE arms of `IAutoMovieProductionAudioAssetIdentity`
6
- * both extend it. `normalizeAudioAssets` refuses a record whose path is blank
7
- * or repeated, whose digest is not a SHA-256 content digest, whose counts are
8
- * not positive safe integers, or whose duration differs from
9
- * `sourceFrames / sampleRate`.
10
- *
11
- * @evidence contracts/development/design.md#principled-representation Sample count and rate carry integer clock facts, while durationSeconds equals their binary64 quotient rather than an exact rational value. The planner checks cue spans against sourceFrames using exact frame-to-sample conversion instead of deriving sample count from rounded seconds.
12
- * @evidence contracts/development/design.md#minimal-and-owned-surface The fields that do not depend on provenance live here once, and the union type adds only what each arm needs, so the two arms cannot describe the shared facts differently.
13
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The interface encodes no default or special value; every constraint on its fields is enforced by `normalizeAudioAssets`, which the doc names.
14
- * @evidence contracts/development/common.md#meaningful-documentation The doc names the union that extends it and the validator with each refusal, and every member states its unit, source or derivation.
15
- */
16
- export interface IAutoMovieProductionAudioAssetIdentityBase {
17
- /** Project-relative path of the builder-declared asset, unique in a plan. */
18
- path: string;
19
- /** SHA-256 content digest of the asset's current bytes. */
20
- digest: string;
21
- /** Complete source runtime in seconds, exactly `sourceFrames / sampleRate`. */
22
- durationSeconds: number;
23
- /** Number of source sample frames in the asset; a positive safe integer. */
24
- sourceFrames: number;
25
- /** Source sample rate in samples per second; a positive safe integer. */
26
- sampleRate: number;
27
- /** Source channel count; a positive safe integer. */
28
- channels: number;
29
- }
1
+ export type { IAutoMovieProductionAudioAssetIdentityBase } from "@automovie/interface";
@@ -1,36 +1 @@
1
- /**
2
- * Identity of the installed H.264 encoder and every setting that can change
3
- * its output bytes.
4
- *
5
- * It sits inside `IAutoMovieProductionRenderRuntimeIdentity`, which every chunk
6
- * id digests, so a different encoder version, closure or setting gives every
7
- * chunk a new id and an old encode reads as stale. Publication checks that the
8
- * package and version are non-blank and the closure digest is a SHA-256
9
- * content digest. No code in the repository builds this record yet; it is
10
- * supplied with the runtime identity by the caller of
11
- * `planProductionRenderJob`.
12
- *
13
- * @evidence contracts/development/design.md#principled-representation Content addressing needs every input that decides output bytes, so the record names the package, its version, a digest over its installed executable closure, and each byte-affecting encoder setting, and nothing that only affects speed of the build machine.
14
- * @evidence contracts/development/design.md#minimal-and-owned-surface The encoder facts are grouped apart from the capture facts so the runtime identity reads as capture plus encoder, and the settings sit in one `arguments` record that maps one to one onto the encoder's options.
15
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The codec is a closed `h264` literal because the H.264 adapter is the only encoder, and no setting is defaulted or special-cased here; the doc states that no repository code produces the record yet.
16
- * @evidence contracts/development/common.md#meaningful-documentation The doc states why the record exists, how a change propagates to chunk ids, which fields publication validates, and that no repository producer exists, and each member says what it identifies and in which unit.
17
- */
18
- export interface IAutoMovieProductionEncoderIdentity {
19
- /** Installed encoder package name, such as `h264-mp4-encoder`. */
20
- package: string;
21
- /** Installed encoder package version, exactly as installed. */
22
- version: string;
23
- /** SHA-256 content digest over every installed file the encoder executes. */
24
- closureDigest: string;
25
- /** Coded video format the encoder emits; H.264 is the only one. */
26
- codec: "h264";
27
- /** Every encoder setting that can change the output bytes. */
28
- arguments: {
29
- /** The encoder's quantization parameter; lower values keep more detail. */
30
- quantizationParameter: number;
31
- /** The encoder's speed preset, which trades compression for time. */
32
- speed: number;
33
- /** Key-frame interval, in frames. */
34
- groupOfPictures: number;
35
- };
36
- }
1
+ export type { IAutoMovieProductionEncoderIdentity } from "@automovie/interface";
@@ -1,39 +1 @@
1
- import type { IAutoMovieProductionRenderFrame } from "@automovie/engine";
2
- import type { AutoMovieGuidePass } from "@automovie/interface";
3
- /**
4
- * One content-addressed planned range of tier output frames for a moving-image deliverable.
5
- *
6
- * `planProductionRenderJob` emits `chunkFrames`-sized ranges for feature and guide-pass deliverables. A slot is an operational address while the id derives from supplied content inputs; the type itself neither acquires a lock nor checks a resident output's currentness. `IAutoMovieRenderChunk` instead describes numbered sequence-reassembly ranges without content identity. Retained planner consumers are tests rather than a maintained production scheduler.
7
- *
8
- * @evidence contracts/development/design.md#principled-representation The planner hashes canonical declared edit, effect, tier, raster, range, pass, runtime and source identity inputs and builds a readable operational slot. Matching claimed digests alone cannot prove equal resident media or truthful host identities; this record performs no execution or output admission.
9
- * @evidence contracts/development/design.md#minimal-and-owned-surface Resolved frames keep planned shot/time/layer facts with the range while the sequence-reassembly contract remains separate. The retained planner and its tests construct these records; no application scheduler or encoder is wired by the type.
10
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The `kind` union admits only the two moving-image deliverable kinds and `pass` is `beauty` exactly for a feature; no deliverable id or range is special-cased.
11
- * @evidence contracts/development/common.md#meaningful-documentation The doc names the producer, what one chunk covers, how slot and id differ in stability and why, and how it differs from the sequence-render chunk; each member states its unit or derivation.
12
- */
13
- export interface IAutoMovieProductionRenderChunk {
14
- /**
15
- * `<production>:<tier>:<deliverable>:<pass>:<index>`, where `index` counts
16
- * this deliverable's ranges from zero; stable across content changes.
17
- */
18
- slot: string;
19
- /**
20
- * SHA-256 digest over the edit, effects, tier, frame formats, range, pass,
21
- * runtime identity and source shot digests of this range.
22
- */
23
- id: string;
24
- /** Id of the production deliverable that owns the range. */
25
- deliverable: string;
26
- /** Kind of that deliverable; only the moving-image kinds have chunks. */
27
- kind: "feature" | "guide-pass";
28
- /** `beauty` for a feature, otherwise the guide deliverable's one pass. */
29
- pass: AutoMovieGuidePass;
30
- /** First tier output frame of the range, inclusive and zero-based. */
31
- frameStart: number;
32
- /** Tier output frame one past the range's last frame. */
33
- frameEndExclusive: number;
34
- /**
35
- * One resolved frame per output frame in the range, each with its output
36
- * index, full-rate timeline frame, time and shot layers.
37
- */
38
- frames: IAutoMovieProductionRenderFrame[];
39
- }
1
+ export type { IAutoMovieProductionRenderChunk } from "@automovie/interface";
@@ -1,53 +1 @@
1
- import type { IAutoMovieCompiledFilmEffect, IAutoMovieFilmTimeline, IAutoMovieProductionDesign } from "@automovie/interface";
2
- import type { IAutoMovieProductionAudioAssetIdentity } from "./IAutoMovieProductionAudioAssetIdentity.js";
3
- import type { IAutoMovieProductionRenderChunk } from "./IAutoMovieProductionRenderChunk.js";
4
- import type { IAutoMovieProductionRenderRuntimeIdentity } from "./IAutoMovieProductionRenderRuntimeIdentity.js";
5
- import type { IAutoMovieProductionRenderTier } from "./IAutoMovieProductionRenderTier.js";
6
- /**
7
- * One tier's render plan, containing its output frame ranges and non-video tracks.
8
- *
9
- * `planProductionRenderJob` builds it from supplied timeline and runtime inputs. Proxy and final plans share `editFingerprint` and differ in tier, projected frame format, frame count and chunks. Current repository callers are planner tests; a maintained application does not acquire, validate or execute stored plans through this record.
10
- *
11
- * @evidence contracts/development/design.md#principled-representation The planner derives this version-four record deterministically from admitted supplied inputs; a stored record alone proves neither current input identity nor resident output bytes. The type executes no currentness check.
12
- * @evidence contracts/development/design.md#minimal-and-owned-surface Identities, tier, projected raster, resolved chunks and tracks occupy one planning result. The planner's existing tests consume the shape; no removed render subcommand or replacement application consumer is claimed.
13
- * @evidence contracts/development/design.md#prohibited-design-shortcuts No field is a cached measurement or special case; every value is copied or derived from the edit and declared inputs, and `version` is the one contract-defined constant.
14
- * @evidence contracts/development/common.md#meaningful-documentation The doc names the retained planner, current test-only consumption and lack of stored-plan admission, plus the relationship between tiers. Members state their source, units and ordering, with frame counts expressed as tier output frames.
15
- */
16
- export interface IAutoMovieProductionRenderJobPlan {
17
- /** Plan schema version. */
18
- version: 4;
19
- /** Production id, which namespaces every slot and output path. */
20
- productionId: string;
21
- /** The timeline's compiler input fingerprint, shared by every capture. */
22
- compileFingerprint: string;
23
- /** Digest of the builder-owned film edit, equal for proxy and final. */
24
- editFingerprint: string;
25
- /** Capture and encoder identity every chunk renders under. */
26
- runtimeIdentity: IAutoMovieProductionRenderRuntimeIdentity;
27
- /** Proxy or final tier; final is scale one and step one. */
28
- tier: IAutoMovieProductionRenderTier;
29
- /** The production's own full-quality raster and frame clock. */
30
- sourceFrameFormat: IAutoMovieProductionDesign["frameFormat"];
31
- /** Raster and frame clock of the tier output, projected from the source. */
32
- frameFormat: IAutoMovieProductionDesign["frameFormat"];
33
- /** Number of tier output frames, the timeline length divided by the step. */
34
- totalFrames: number;
35
- /** Maximum number of output frames in one chunk; a positive safe integer. */
36
- chunkFrames: number;
37
- /**
38
- * Chunks in deliverable declaration order, each deliverable's ranges in
39
- * frame order.
40
- */
41
- chunks: IAutoMovieProductionRenderChunk[];
42
- /** Planned non-video tracks; this value does not publish or execute them. */
43
- tracks: {
44
- /** Canonical WebVTT text of the timeline's caption placements. */
45
- captions: string;
46
- /** The timeline's audio placements, copied unchanged. */
47
- audio: IAutoMovieFilmTimeline["tracks"]["audio"];
48
- /** Validated identity of every supplied audio asset, sorted by path. */
49
- audioAssets: IAutoMovieProductionAudioAssetIdentity[];
50
- /** The current film-global effect runtimes, copied unchanged. */
51
- effects: IAutoMovieCompiledFilmEffect[];
52
- };
53
- }
1
+ export type { IAutoMovieProductionRenderJobPlan } from "@automovie/interface";
@@ -1,31 +1 @@
1
- import type { IAutoMovieCaptureRuntimeIdentity } from "@automovie/interface";
2
- import type { IAutoMovieProductionEncoderIdentity } from "./IAutoMovieProductionEncoderIdentity.js";
3
- /**
4
- * Capture and encoder identity shared by every chunk of one render job.
5
- *
6
- * Every chunk id digests the whole record, so a change to the viewer bytes,
7
- * the browser, the graphics backend, the dialogue runtime or the encoder gives
8
- * every chunk a new id. `planProductionRenderJob` refuses a `sourceDigest` or
9
- * non-null `dialogueRuntimeIdentity` that is not a SHA-256 content digest; the
10
- * caller supplies the rest.
11
- *
12
- * @evidence contracts/development/design.md#principled-representation Content addressing needs every runtime input that can change captured or encoded bytes, so the record carries a digest of the declared viewer and package inputs, the dialogue runtime digest, the full capture identity and the encoder identity.
13
- * @evidence contracts/development/design.md#minimal-and-owned-surface Capture facts reuse the interface's `IAutoMovieCaptureRuntimeIdentity` and encoder facts live in `IAutoMovieProductionEncoderIdentity`, so this record only joins them with the two job-wide digests.
14
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The protocol literal is the schema version and the only fixed value; null for the dialogue runtime is the documented silent-production state, not a fallback.
15
- * @evidence contracts/development/common.md#meaningful-documentation The doc says why every field reaches the chunk ids, which fields the planner validates, and each member states what it identifies and what null means.
16
- */
17
- export interface IAutoMovieProductionRenderRuntimeIdentity {
18
- /** Schema of this record; changes when its meaning changes. */
19
- protocolVersion: "automovie.production-render-runtime.v3";
20
- /** SHA-256 digest of the declared viewer, capture, asset and package bytes. */
21
- sourceDigest: string;
22
- /**
23
- * SHA-256 digest of the dialogue and viseme runtime installed for every
24
- * capture, or null when the production synthesizes no dialogue.
25
- */
26
- dialogueRuntimeIdentity: string | null;
27
- /** Browser, graphics and installed-package identity of the capture host. */
28
- capture: IAutoMovieCaptureRuntimeIdentity;
29
- /** Encoder package, closure and byte-affecting settings. */
30
- encoder: IAutoMovieProductionEncoderIdentity;
31
- }
1
+ export type { IAutoMovieProductionRenderRuntimeIdentity } from "@automovie/interface";
@@ -1,25 +1 @@
1
- /**
2
- * Cost and quality tier of one render job over a shared builder-owned edit.
3
- *
4
- * `normalizeRenderTier` admits exactly two shapes: the final tier with scale 1
5
- * and step 1, and a proxy that reduces at least one of the two. A proxy keeps
6
- * the edit and its runtime, so the timeline length must be a multiple of
7
- * `frameStep`; `resolveProductionRenderTierFrameFormat` projects the source
8
- * raster and clock through it.
9
- *
10
- * @evidence contracts/development/design.md#principled-representation Two independent reductions, a raster scale and an integer frame decimation, describe every cheaper rendering of the same edit while keeping its runtime exact, because decimating by a divisor of the frame count divides the rational frame rate by the same integer.
11
- * @evidence contracts/development/design.md#minimal-and-owned-surface The tier is three plain fields, and its admission and its projection live in `normalizeRenderTier` and `resolveProductionRenderTierFrameFormat`, so the record carries no behavior.
12
- * @evidence contracts/development/design.md#prohibited-design-shortcuts The limits of 1 for final and 16 for the proxy step come from the production design's `renderTiers` contract, and no other value is special-cased.
13
- * @evidence contracts/development/common.md#meaningful-documentation The doc names the two admitted shapes and their validator, the divisibility rule with its reason, and the projection, and each member gives its range and its final value.
14
- */
15
- export interface IAutoMovieProductionRenderTier {
16
- /** Tier name, used in chunk slots and publication paths. */
17
- kind: "proxy" | "final";
18
- /** Raster multiplier in `(0, 1]`; exactly 1 at the final tier. */
19
- resolutionScale: number;
20
- /**
21
- * Render every Nth timeline frame; an integer from 1 through 16, exactly 1
22
- * at the final tier.
23
- */
24
- frameStep: number;
25
- }
1
+ export type { IAutoMovieProductionRenderTier } from "@automovie/interface";
@@ -1,6 +1,4 @@
1
- import type { AutoMovieOrderedScalar } from "./AutoMovieOrderedScalar.js";
2
- /** One position of a compared array: a scalar or a one-level row of scalars. */
3
- type IOrderedEntry = AutoMovieOrderedScalar | readonly AutoMovieOrderedScalar[];
1
+ import type { AutoMovieOrderedEntry } from "@automovie/interface";
4
2
  /**
5
3
  * Compare ordered arrays of scalars, or of arrays of scalars, by value.
6
4
  *
@@ -23,5 +21,4 @@ type IOrderedEntry = AutoMovieOrderedScalar | readonly AutoMovieOrderedScalar[];
23
21
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure comparison of two small arrays coordinates no phases or requests whose work could be shared.
24
22
  * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function keeps no reference to its arguments after returning a boolean and opens no handle or task.
25
23
  */
26
- export declare const equalOrderedScalars: (left: readonly IOrderedEntry[], right: readonly IOrderedEntry[]) => boolean;
27
- export {};
24
+ export declare const equalOrderedScalars: (left: readonly AutoMovieOrderedEntry[], right: readonly AutoMovieOrderedEntry[]) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"equalOrderedScalars.js","sourceRoot":"","sources":["../../src/film/equalOrderedScalars.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;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