@automovie/render 0.0.0-stage → 0.0.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 (503) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -2
  3. package/lib/AUTOMOVIE_GUIDE_PASSES.d.ts +11 -0
  4. package/lib/AUTOMOVIE_GUIDE_PASSES.js +21 -0
  5. package/lib/AUTOMOVIE_GUIDE_PASSES.js.map +1 -0
  6. package/lib/IAutoMovieCaptionEntry.d.ts +28 -0
  7. package/lib/IAutoMovieCaptionEntry.js +3 -0
  8. package/lib/IAutoMovieCaptionEntry.js.map +1 -0
  9. package/lib/IAutoMovieCaptionSidecar.d.ts +25 -0
  10. package/lib/IAutoMovieCaptionSidecar.js +3 -0
  11. package/lib/IAutoMovieCaptionSidecar.js.map +1 -0
  12. package/lib/IAutoMovieCapturedFrame.d.ts +22 -0
  13. package/lib/IAutoMovieCapturedFrame.js +3 -0
  14. package/lib/IAutoMovieCapturedFrame.js.map +1 -0
  15. package/lib/IAutoMovieGuidePassOutput.d.ts +23 -0
  16. package/lib/IAutoMovieGuidePassOutput.js +3 -0
  17. package/lib/IAutoMovieGuidePassOutput.js.map +1 -0
  18. package/lib/IAutoMoviePoseKeypointActor.d.ts +36 -0
  19. package/lib/IAutoMoviePoseKeypointActor.js +3 -0
  20. package/lib/IAutoMoviePoseKeypointActor.js.map +1 -0
  21. package/lib/IAutoMoviePoseKeypointFrame.d.ts +25 -0
  22. package/lib/IAutoMoviePoseKeypointFrame.js +3 -0
  23. package/lib/IAutoMoviePoseKeypointFrame.js.map +1 -0
  24. package/lib/IAutoMoviePoseKeypointSidecar.d.ts +21 -0
  25. package/lib/IAutoMoviePoseKeypointSidecar.js +3 -0
  26. package/lib/IAutoMoviePoseKeypointSidecar.js.map +1 -0
  27. package/lib/IAutoMovieRenderAdapters.d.ts +34 -0
  28. package/lib/IAutoMovieRenderAdapters.js +3 -0
  29. package/lib/IAutoMovieRenderAdapters.js.map +1 -0
  30. package/lib/IAutoMovieRenderAndSeeRequest.d.ts +32 -0
  31. package/lib/IAutoMovieRenderAndSeeRequest.js +3 -0
  32. package/lib/IAutoMovieRenderAndSeeRequest.js.map +1 -0
  33. package/lib/IAutoMovieRenderAndSeeResult.d.ts +20 -0
  34. package/lib/IAutoMovieRenderAndSeeResult.js +3 -0
  35. package/lib/IAutoMovieRenderAndSeeResult.js.map +1 -0
  36. package/lib/IAutoMovieRenderChunk.d.ts +48 -0
  37. package/lib/IAutoMovieRenderChunk.js +3 -0
  38. package/lib/IAutoMovieRenderChunk.js.map +1 -0
  39. package/lib/IAutoMovieRenderChunkPlan.d.ts +32 -0
  40. package/lib/IAutoMovieRenderChunkPlan.js +3 -0
  41. package/lib/IAutoMovieRenderChunkPlan.js.map +1 -0
  42. package/lib/IAutoMovieRenderPassManifest.d.ts +21 -0
  43. package/lib/IAutoMovieRenderPassManifest.js +3 -0
  44. package/lib/IAutoMovieRenderPassManifest.js.map +1 -0
  45. package/lib/IAutoMovieRenderReassembly.d.ts +24 -0
  46. package/lib/IAutoMovieRenderReassembly.js +3 -0
  47. package/lib/IAutoMovieRenderReassembly.js.map +1 -0
  48. package/lib/IAutoMovieRenderResult.d.ts +39 -0
  49. package/lib/IAutoMovieRenderResult.js +3 -0
  50. package/lib/IAutoMovieRenderResult.js.map +1 -0
  51. package/lib/IAutoMovieSequenceRenderAdapters.d.ts +36 -0
  52. package/lib/IAutoMovieSequenceRenderAdapters.js +3 -0
  53. package/lib/IAutoMovieSequenceRenderAdapters.js.map +1 -0
  54. package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +36 -0
  55. package/lib/IAutoMovieSequenceRenderAndSeeRequest.js +3 -0
  56. package/lib/IAutoMovieSequenceRenderAndSeeRequest.js.map +1 -0
  57. package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +23 -0
  58. package/lib/IAutoMovieSequenceRenderAndSeeResult.js +3 -0
  59. package/lib/IAutoMovieSequenceRenderAndSeeResult.js.map +1 -0
  60. package/lib/IAutoMovieSequenceRenderFrame.d.ts +41 -0
  61. package/lib/IAutoMovieSequenceRenderFrame.js +3 -0
  62. package/lib/IAutoMovieSequenceRenderFrame.js.map +1 -0
  63. package/lib/IAutoMovieSequenceRenderPlan.d.ts +76 -0
  64. package/lib/IAutoMovieSequenceRenderPlan.js +3 -0
  65. package/lib/IAutoMovieSequenceRenderPlan.js.map +1 -0
  66. package/lib/IAutoMovieSequenceRenderResult.d.ts +44 -0
  67. package/lib/IAutoMovieSequenceRenderResult.js +3 -0
  68. package/lib/IAutoMovieSequenceRenderResult.js.map +1 -0
  69. package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +39 -0
  70. package/lib/IAutoMovieSequenceRenderShotSpan.js +3 -0
  71. package/lib/IAutoMovieSequenceRenderShotSpan.js.map +1 -0
  72. package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +39 -0
  73. package/lib/IAutoMovieSequenceRenderTransitionSpan.js +3 -0
  74. package/lib/IAutoMovieSequenceRenderTransitionSpan.js.map +1 -0
  75. package/lib/audio/encodeAutoMovieWavPcm16.d.ts +21 -0
  76. package/lib/audio/encodeAutoMovieWavPcm16.js +59 -0
  77. package/lib/audio/encodeAutoMovieWavPcm16.js.map +1 -0
  78. package/lib/audio/index.d.ts +2 -0
  79. package/lib/audio/index.js +19 -0
  80. package/lib/audio/index.js.map +1 -0
  81. package/lib/audio/mixAutoMovieAudioPcm.d.ts +64 -0
  82. package/lib/audio/mixAutoMovieAudioPcm.js +86 -0
  83. package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -0
  84. package/lib/auditAutoMovieRenderObservation.d.ts +31 -0
  85. package/lib/auditAutoMovieRenderObservation.js +63 -0
  86. package/lib/auditAutoMovieRenderObservation.js.map +1 -0
  87. package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +28 -0
  88. package/lib/cache/createAutoMovieHttpArtifactStore.js +66 -0
  89. package/lib/cache/createAutoMovieHttpArtifactStore.js.map +1 -0
  90. package/lib/caption/IAutoMovieBeatCaption.d.ts +22 -0
  91. package/lib/caption/IAutoMovieBeatCaption.js +3 -0
  92. package/lib/caption/IAutoMovieBeatCaption.js.map +1 -0
  93. package/lib/caption/autoMovieCaptionLanguageComparisonKey.d.ts +18 -0
  94. package/lib/caption/autoMovieCaptionLanguageComparisonKey.js +24 -0
  95. package/lib/caption/autoMovieCaptionLanguageComparisonKey.js.map +1 -0
  96. package/lib/caption/beatCaptions.d.ts +22 -0
  97. package/lib/caption/beatCaptions.js +50 -0
  98. package/lib/caption/beatCaptions.js.map +1 -0
  99. package/lib/caption/canonicalProductionWebVtt.d.ts +23 -0
  100. package/lib/caption/canonicalProductionWebVtt.js +60 -0
  101. package/lib/caption/canonicalProductionWebVtt.js.map +1 -0
  102. package/lib/caption/canonicalizeAutoMovieCaptionText.d.ts +18 -0
  103. package/lib/caption/canonicalizeAutoMovieCaptionText.js +24 -0
  104. package/lib/caption/canonicalizeAutoMovieCaptionText.js.map +1 -0
  105. package/lib/caption/escapeWebVttText.d.ts +17 -0
  106. package/lib/caption/escapeWebVttText.js +25 -0
  107. package/lib/caption/escapeWebVttText.js.map +1 -0
  108. package/lib/caption/index.d.ts +11 -0
  109. package/lib/caption/index.js +28 -0
  110. package/lib/caption/index.js.map +1 -0
  111. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +37 -0
  112. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js +129 -0
  113. package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -0
  114. package/lib/caption/isAutoMovieWebVttIdentifier.d.ts +21 -0
  115. package/lib/caption/isAutoMovieWebVttIdentifier.js +28 -0
  116. package/lib/caption/isAutoMovieWebVttIdentifier.js.map +1 -0
  117. package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +34 -0
  118. package/lib/caption/parseAutoMovieCaptionLanguage.js +121 -0
  119. package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -0
  120. package/lib/caption/serializeAutoMovieWebVttCueText.d.ts +17 -0
  121. package/lib/caption/serializeAutoMovieWebVttCueText.js +27 -0
  122. package/lib/caption/serializeAutoMovieWebVttCueText.js.map +1 -0
  123. package/lib/caption/serializeAutoMovieWebVttIdentifier.d.ts +17 -0
  124. package/lib/caption/serializeAutoMovieWebVttIdentifier.js +27 -0
  125. package/lib/caption/serializeAutoMovieWebVttIdentifier.js.map +1 -0
  126. package/lib/caption/serializeAutoMovieWebVttSingleLineText.d.ts +19 -0
  127. package/lib/caption/serializeAutoMovieWebVttSingleLineText.js +26 -0
  128. package/lib/caption/serializeAutoMovieWebVttSingleLineText.js.map +1 -0
  129. package/lib/caption/webVttCaptionLanguage.d.ts +18 -0
  130. package/lib/caption/webVttCaptionLanguage.js +29 -0
  131. package/lib/caption/webVttCaptionLanguage.js.map +1 -0
  132. package/lib/caption/webVttTime.d.ts +19 -0
  133. package/lib/caption/webVttTime.js +30 -0
  134. package/lib/caption/webVttTime.js.map +1 -0
  135. package/lib/captionPlan.d.ts +1 -0
  136. package/lib/captionPlan.js +18 -0
  137. package/lib/captionPlan.js.map +1 -0
  138. package/lib/captionSidecar.d.ts +3 -0
  139. package/lib/captionSidecar.js +20 -0
  140. package/lib/captionSidecar.js.map +1 -0
  141. package/lib/captionSlice.d.ts +1 -0
  142. package/lib/captionSlice.js +18 -0
  143. package/lib/captionSlice.js.map +1 -0
  144. package/lib/chunkSequenceRender.d.ts +5 -0
  145. package/lib/chunkSequenceRender.js +22 -0
  146. package/lib/chunkSequenceRender.js.map +1 -0
  147. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +16 -0
  148. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js +20 -0
  149. package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -0
  150. package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.d.ts +11 -0
  151. package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.js +14 -0
  152. package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.js.map +1 -0
  153. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +15 -0
  154. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js +19 -0
  155. package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -0
  156. package/lib/delivery/AutoMovieProductionPngRole.d.ts +14 -0
  157. package/lib/delivery/AutoMovieProductionPngRole.js +3 -0
  158. package/lib/delivery/AutoMovieProductionPngRole.js.map +1 -0
  159. package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +41 -0
  160. package/lib/delivery/IAutoMovieProductionPngProfile.js +3 -0
  161. package/lib/delivery/IAutoMovieProductionPngProfile.js.map +1 -0
  162. package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +46 -0
  163. package/lib/delivery/IAutoMovieProductionVideoProfile.js +3 -0
  164. package/lib/delivery/IAutoMovieProductionVideoProfile.js.map +1 -0
  165. package/lib/delivery/assertAutoMovieCaptureClock.d.ts +26 -0
  166. package/lib/delivery/assertAutoMovieCaptureClock.js +29 -0
  167. package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -0
  168. package/lib/delivery/assertProductionOpusProfile.d.ts +23 -0
  169. package/lib/delivery/assertProductionOpusProfile.js +160 -0
  170. package/lib/delivery/assertProductionOpusProfile.js.map +1 -0
  171. package/lib/delivery/assertProductionPngPicture.d.ts +24 -0
  172. package/lib/delivery/assertProductionPngPicture.js +47 -0
  173. package/lib/delivery/assertProductionPngPicture.js.map +1 -0
  174. package/lib/delivery/assertProductionVideoProfile.d.ts +30 -0
  175. package/lib/delivery/assertProductionVideoProfile.js +150 -0
  176. package/lib/delivery/assertProductionVideoProfile.js.map +1 -0
  177. package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +56 -0
  178. package/lib/delivery/auditAutoMovieDecodedFrames.js +92 -0
  179. package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -0
  180. package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +27 -0
  181. package/lib/delivery/auditAutoMovieEncodedPresentation.js +62 -0
  182. package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -0
  183. package/lib/delivery/index.d.ts +14 -0
  184. package/lib/delivery/index.js +31 -0
  185. package/lib/delivery/index.js.map +1 -0
  186. package/lib/delivery/planAutoMovieCaptureUrl.d.ts +18 -0
  187. package/lib/delivery/planAutoMovieCaptureUrl.js +31 -0
  188. package/lib/delivery/planAutoMovieCaptureUrl.js.map +1 -0
  189. package/lib/delivery/productionOpusDescription.d.ts +41 -0
  190. package/lib/delivery/productionOpusDescription.js +125 -0
  191. package/lib/delivery/productionOpusDescription.js.map +1 -0
  192. package/lib/delivery/resolveProductionPngProfile.d.ts +27 -0
  193. package/lib/delivery/resolveProductionPngProfile.js +53 -0
  194. package/lib/delivery/resolveProductionPngProfile.js.map +1 -0
  195. package/lib/delivery/resolveProductionVideoProfile.d.ts +27 -0
  196. package/lib/delivery/resolveProductionVideoProfile.js +36 -0
  197. package/lib/delivery/resolveProductionVideoProfile.js.map +1 -0
  198. package/lib/ffmpegArgs.d.ts +33 -0
  199. package/lib/ffmpegArgs.js +56 -0
  200. package/lib/ffmpegArgs.js.map +1 -0
  201. package/lib/film/AutoMovieOrderedScalar.d.ts +15 -0
  202. package/lib/film/AutoMovieOrderedScalar.js +3 -0
  203. package/lib/film/AutoMovieOrderedScalar.js.map +1 -0
  204. package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +28 -0
  205. package/lib/film/IAutoMovieProductionAudioAssetIdentity.js +3 -0
  206. package/lib/film/IAutoMovieProductionAudioAssetIdentity.js.map +1 -0
  207. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +29 -0
  208. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.js +3 -0
  209. package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.js.map +1 -0
  210. package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +36 -0
  211. package/lib/film/IAutoMovieProductionEncoderIdentity.js +3 -0
  212. package/lib/film/IAutoMovieProductionEncoderIdentity.js.map +1 -0
  213. package/lib/film/IAutoMovieProductionRenderChunk.d.ts +39 -0
  214. package/lib/film/IAutoMovieProductionRenderChunk.js +3 -0
  215. package/lib/film/IAutoMovieProductionRenderChunk.js.map +1 -0
  216. package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +53 -0
  217. package/lib/film/IAutoMovieProductionRenderJobPlan.js +3 -0
  218. package/lib/film/IAutoMovieProductionRenderJobPlan.js.map +1 -0
  219. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +31 -0
  220. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.js +3 -0
  221. package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.js.map +1 -0
  222. package/lib/film/IAutoMovieProductionRenderTier.d.ts +25 -0
  223. package/lib/film/IAutoMovieProductionRenderTier.js +3 -0
  224. package/lib/film/IAutoMovieProductionRenderTier.js.map +1 -0
  225. package/lib/film/assertSingleGuidePass.d.ts +19 -0
  226. package/lib/film/assertSingleGuidePass.js +35 -0
  227. package/lib/film/assertSingleGuidePass.js.map +1 -0
  228. package/lib/film/equalOrderedScalars.d.ts +27 -0
  229. package/lib/film/equalOrderedScalars.js +52 -0
  230. package/lib/film/equalOrderedScalars.js.map +1 -0
  231. package/lib/film/index.d.ts +9 -0
  232. package/lib/film/index.js +26 -0
  233. package/lib/film/index.js.map +1 -0
  234. package/lib/film/normalizeAudioAssets.d.ts +21 -0
  235. package/lib/film/normalizeAudioAssets.js +56 -0
  236. package/lib/film/normalizeAudioAssets.js.map +1 -0
  237. package/lib/film/normalizeRenderTier.d.ts +19 -0
  238. package/lib/film/normalizeRenderTier.js +45 -0
  239. package/lib/film/normalizeRenderTier.js.map +1 -0
  240. package/lib/film/planProductionRenderJob.d.ts +48 -0
  241. package/lib/film/planProductionRenderJob.js +196 -0
  242. package/lib/film/planProductionRenderJob.js.map +1 -0
  243. package/lib/film/productionVisualDeliveryOccurrence.d.ts +20 -0
  244. package/lib/film/productionVisualDeliveryOccurrence.js +24 -0
  245. package/lib/film/productionVisualDeliveryOccurrence.js.map +1 -0
  246. package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +21 -0
  247. package/lib/film/resolveProductionRenderTierFrameFormat.js +46 -0
  248. package/lib/film/resolveProductionRenderTierFrameFormat.js.map +1 -0
  249. package/lib/film/validDigest.d.ts +18 -0
  250. package/lib/film/validDigest.js +25 -0
  251. package/lib/film/validDigest.js.map +1 -0
  252. package/lib/film/validWaveAudioIdentity.d.ts +25 -0
  253. package/lib/film/validWaveAudioIdentity.js +76 -0
  254. package/lib/film/validWaveAudioIdentity.js.map +1 -0
  255. package/lib/frameName.d.ts +19 -0
  256. package/lib/frameName.js +24 -0
  257. package/lib/frameName.js.map +1 -0
  258. package/lib/framePattern.d.ts +16 -0
  259. package/lib/framePattern.js +21 -0
  260. package/lib/framePattern.js.map +1 -0
  261. package/lib/frameTimes.d.ts +20 -0
  262. package/lib/frameTimes.js +33 -0
  263. package/lib/frameTimes.js.map +1 -0
  264. package/lib/guidePassFrameName.d.ts +15 -0
  265. package/lib/guidePassFrameName.js +21 -0
  266. package/lib/guidePassFrameName.js.map +1 -0
  267. package/lib/guidePassFramePattern.d.ts +15 -0
  268. package/lib/guidePassFramePattern.js +21 -0
  269. package/lib/guidePassFramePattern.js.map +1 -0
  270. package/lib/guidePasses.d.ts +7 -0
  271. package/lib/guidePasses.js +24 -0
  272. package/lib/guidePasses.js.map +1 -0
  273. package/lib/guidePassesInternal/passExtension.d.ts +14 -0
  274. package/lib/guidePassesInternal/passExtension.js +18 -0
  275. package/lib/guidePassesInternal/passExtension.js.map +1 -0
  276. package/lib/index.d.ts +69 -0
  277. package/lib/index.js +86 -0
  278. package/lib/index.js.map +1 -0
  279. package/lib/isGuidePass.d.ts +15 -0
  280. package/lib/isGuidePass.js +20 -0
  281. package/lib/isGuidePass.js.map +1 -0
  282. package/lib/normalizeGuidePasses.d.ts +15 -0
  283. package/lib/normalizeGuidePasses.js +32 -0
  284. package/lib/normalizeGuidePasses.js.map +1 -0
  285. package/lib/planCaptionSidecar.d.ts +23 -0
  286. package/lib/planCaptionSidecar.js +56 -0
  287. package/lib/planCaptionSidecar.js.map +1 -0
  288. package/lib/planChunkedSequenceRender.d.ts +26 -0
  289. package/lib/planChunkedSequenceRender.js +132 -0
  290. package/lib/planChunkedSequenceRender.js.map +1 -0
  291. package/lib/planGuidePassOutputs.d.ts +19 -0
  292. package/lib/planGuidePassOutputs.js +31 -0
  293. package/lib/planGuidePassOutputs.js.map +1 -0
  294. package/lib/planPoseKeypointSidecar.d.ts +27 -0
  295. package/lib/planPoseKeypointSidecar.js +141 -0
  296. package/lib/planPoseKeypointSidecar.js.map +1 -0
  297. package/lib/planSequenceRender.d.ts +20 -0
  298. package/lib/planSequenceRender.js +99 -0
  299. package/lib/planSequenceRender.js.map +1 -0
  300. package/lib/planViewerFrameTimes.d.ts +33 -0
  301. package/lib/planViewerFrameTimes.js +74 -0
  302. package/lib/planViewerFrameTimes.js.map +1 -0
  303. package/lib/renderAndSee.d.ts +14 -0
  304. package/lib/renderAndSee.js +22 -0
  305. package/lib/renderAndSee.js.map +1 -0
  306. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +41 -0
  307. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.js +3 -0
  308. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.js.map +1 -0
  309. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +53 -0
  310. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.js +3 -0
  311. package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.js.map +1 -0
  312. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +27 -0
  313. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.js +3 -0
  314. package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.js.map +1 -0
  315. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +28 -0
  316. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js +77 -0
  317. package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -0
  318. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +23 -0
  319. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js +55 -0
  320. package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -0
  321. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +17 -0
  322. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js +51 -0
  323. package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -0
  324. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +22 -0
  325. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js +32 -0
  326. package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -0
  327. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +23 -0
  328. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js +35 -0
  329. package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -0
  330. package/lib/renderBudgetPreflight/index.d.ts +9 -0
  331. package/lib/renderBudgetPreflight/index.js +26 -0
  332. package/lib/renderBudgetPreflight/index.js.map +1 -0
  333. package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.d.ts +18 -0
  334. package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.js +22 -0
  335. package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.js.map +1 -0
  336. package/lib/renderCaptionSidecar.d.ts +13 -0
  337. package/lib/renderCaptionSidecar.js +17 -0
  338. package/lib/renderCaptionSidecar.js.map +1 -0
  339. package/lib/renderObservationAudit.d.ts +1 -0
  340. package/lib/renderObservationAudit.js +18 -0
  341. package/lib/renderObservationAudit.js.map +1 -0
  342. package/lib/renderPathStem.d.ts +22 -0
  343. package/lib/renderPathStem.js +64 -0
  344. package/lib/renderPathStem.js.map +1 -0
  345. package/lib/renderPoseKeypointSidecar.d.ts +15 -0
  346. package/lib/renderPoseKeypointSidecar.js +19 -0
  347. package/lib/renderPoseKeypointSidecar.js.map +1 -0
  348. package/lib/renderSequenceAndSee.d.ts +14 -0
  349. package/lib/renderSequenceAndSee.js +32 -0
  350. package/lib/renderSequenceAndSee.js.map +1 -0
  351. package/lib/renderSequenceVideo.d.ts +15 -0
  352. package/lib/renderSequenceVideo.js +35 -0
  353. package/lib/renderSequenceVideo.js.map +1 -0
  354. package/lib/renderVideo.d.ts +17 -0
  355. package/lib/renderVideo.js +45 -0
  356. package/lib/renderVideo.js.map +1 -0
  357. package/lib/screenplay/index.d.ts +1 -0
  358. package/lib/screenplay/index.js +18 -0
  359. package/lib/screenplay/index.js.map +1 -0
  360. package/lib/screenplay/renderScreenplay.d.ts +25 -0
  361. package/lib/screenplay/renderScreenplay.js +101 -0
  362. package/lib/screenplay/renderScreenplay.js.map +1 -0
  363. package/lib/screenplay/screenplaySceneSlug.d.ts +17 -0
  364. package/lib/screenplay/screenplaySceneSlug.js +21 -0
  365. package/lib/screenplay/screenplaySceneSlug.js.map +1 -0
  366. package/lib/sequenceRenderPlan.d.ts +5 -0
  367. package/lib/sequenceRenderPlan.js +22 -0
  368. package/lib/sequenceRenderPlan.js.map +1 -0
  369. package/lib/sequenceRenderVideo.d.ts +6 -0
  370. package/lib/sequenceRenderVideo.js +23 -0
  371. package/lib/sequenceRenderVideo.js.map +1 -0
  372. package/lib/shotBeat.d.ts +18 -0
  373. package/lib/shotBeat.js +23 -0
  374. package/lib/shotBeat.js.map +1 -0
  375. package/lib/sliceCaptionSidecar.d.ts +15 -0
  376. package/lib/sliceCaptionSidecar.js +57 -0
  377. package/lib/sliceCaptionSidecar.js.map +1 -0
  378. package/package.json +46 -3
  379. package/src/AUTOMOVIE_GUIDE_PASSES.ts +19 -0
  380. package/src/IAutoMovieCaptionEntry.ts +32 -0
  381. package/src/IAutoMovieCaptionSidecar.ts +29 -0
  382. package/src/IAutoMovieCapturedFrame.ts +24 -0
  383. package/src/IAutoMovieGuidePassOutput.ts +27 -0
  384. package/src/IAutoMoviePoseKeypointActor.ts +39 -0
  385. package/src/IAutoMoviePoseKeypointFrame.ts +28 -0
  386. package/src/IAutoMoviePoseKeypointSidecar.ts +25 -0
  387. package/src/IAutoMovieRenderAdapters.ts +39 -0
  388. package/src/IAutoMovieRenderAndSeeRequest.ts +38 -0
  389. package/src/IAutoMovieRenderAndSeeResult.ts +23 -0
  390. package/src/IAutoMovieRenderChunk.ts +62 -0
  391. package/src/IAutoMovieRenderChunkPlan.ts +40 -0
  392. package/src/IAutoMovieRenderPassManifest.ts +25 -0
  393. package/src/IAutoMovieRenderReassembly.ts +28 -0
  394. package/src/IAutoMovieRenderResult.ts +46 -0
  395. package/src/IAutoMovieSequenceRenderAdapters.ts +41 -0
  396. package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +47 -0
  397. package/src/IAutoMovieSequenceRenderAndSeeResult.ts +23 -0
  398. package/src/IAutoMovieSequenceRenderFrame.ts +48 -0
  399. package/src/IAutoMovieSequenceRenderPlan.ts +88 -0
  400. package/src/IAutoMovieSequenceRenderResult.ts +52 -0
  401. package/src/IAutoMovieSequenceRenderShotSpan.ts +46 -0
  402. package/src/IAutoMovieSequenceRenderTransitionSpan.ts +46 -0
  403. package/src/audio/encodeAutoMovieWavPcm16.ts +65 -0
  404. package/src/audio/index.ts +2 -0
  405. package/src/audio/mixAutoMovieAudioPcm.ts +137 -0
  406. package/src/auditAutoMovieRenderObservation.ts +79 -0
  407. package/src/cache/createAutoMovieHttpArtifactStore.ts +84 -0
  408. package/src/caption/IAutoMovieBeatCaption.ts +23 -0
  409. package/src/caption/autoMovieCaptionLanguageComparisonKey.ts +23 -0
  410. package/src/caption/beatCaptions.ts +59 -0
  411. package/src/caption/canonicalProductionWebVtt.ts +76 -0
  412. package/src/caption/canonicalizeAutoMovieCaptionText.ts +24 -0
  413. package/src/caption/escapeWebVttText.ts +23 -0
  414. package/src/caption/index.ts +11 -0
  415. package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +231 -0
  416. package/src/caption/isAutoMovieWebVttIdentifier.ts +26 -0
  417. package/src/caption/parseAutoMovieCaptionLanguage.ts +160 -0
  418. package/src/caption/serializeAutoMovieWebVttCueText.ts +28 -0
  419. package/src/caption/serializeAutoMovieWebVttIdentifier.ts +27 -0
  420. package/src/caption/serializeAutoMovieWebVttSingleLineText.ts +26 -0
  421. package/src/caption/webVttCaptionLanguage.ts +30 -0
  422. package/src/caption/webVttTime.ts +30 -0
  423. package/src/captionPlan.ts +1 -0
  424. package/src/captionSidecar.ts +3 -0
  425. package/src/captionSlice.ts +1 -0
  426. package/src/chunkSequenceRender.ts +5 -0
  427. package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +21 -0
  428. package/src/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.ts +14 -0
  429. package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +28 -0
  430. package/src/delivery/AutoMovieProductionPngRole.ts +18 -0
  431. package/src/delivery/IAutoMovieProductionPngProfile.ts +52 -0
  432. package/src/delivery/IAutoMovieProductionVideoProfile.ts +48 -0
  433. package/src/delivery/assertAutoMovieCaptureClock.ts +37 -0
  434. package/src/delivery/assertProductionOpusProfile.ts +179 -0
  435. package/src/delivery/assertProductionPngPicture.ts +62 -0
  436. package/src/delivery/assertProductionVideoProfile.ts +180 -0
  437. package/src/delivery/auditAutoMovieDecodedFrames.ts +157 -0
  438. package/src/delivery/auditAutoMovieEncodedPresentation.ts +86 -0
  439. package/src/delivery/index.ts +14 -0
  440. package/src/delivery/planAutoMovieCaptureUrl.ts +32 -0
  441. package/src/delivery/productionOpusDescription.ts +173 -0
  442. package/src/delivery/resolveProductionPngProfile.ts +70 -0
  443. package/src/delivery/resolveProductionVideoProfile.ts +48 -0
  444. package/src/ffmpegArgs.ts +61 -0
  445. package/src/film/AutoMovieOrderedScalar.ts +15 -0
  446. package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +40 -0
  447. package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +34 -0
  448. package/src/film/IAutoMovieProductionEncoderIdentity.ts +42 -0
  449. package/src/film/IAutoMovieProductionRenderChunk.ts +47 -0
  450. package/src/film/IAutoMovieProductionRenderJobPlan.ts +73 -0
  451. package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +37 -0
  452. package/src/film/IAutoMovieProductionRenderTier.ts +27 -0
  453. package/src/film/assertSingleGuidePass.ts +38 -0
  454. package/src/film/equalOrderedScalars.ts +56 -0
  455. package/src/film/index.ts +9 -0
  456. package/src/film/normalizeAudioAssets.ts +74 -0
  457. package/src/film/normalizeRenderTier.ts +51 -0
  458. package/src/film/planProductionRenderJob.ts +353 -0
  459. package/src/film/productionVisualDeliveryOccurrence.ts +28 -0
  460. package/src/film/resolveProductionRenderTierFrameFormat.ts +60 -0
  461. package/src/film/validDigest.ts +23 -0
  462. package/src/film/validWaveAudioIdentity.ts +88 -0
  463. package/src/frameName.ts +24 -0
  464. package/src/framePattern.ts +19 -0
  465. package/src/frameTimes.ts +36 -0
  466. package/src/guidePassFrameName.ts +29 -0
  467. package/src/guidePassFramePattern.ts +27 -0
  468. package/src/guidePasses.ts +7 -0
  469. package/src/guidePassesInternal/passExtension.ts +19 -0
  470. package/src/index.ts +69 -0
  471. package/src/isGuidePass.ts +21 -0
  472. package/src/normalizeGuidePasses.ts +33 -0
  473. package/src/planCaptionSidecar.ts +98 -0
  474. package/src/planChunkedSequenceRender.ts +200 -0
  475. package/src/planGuidePassOutputs.ts +47 -0
  476. package/src/planPoseKeypointSidecar.ts +289 -0
  477. package/src/planSequenceRender.ts +175 -0
  478. package/src/planViewerFrameTimes.ts +98 -0
  479. package/src/renderAndSee.ts +30 -0
  480. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +53 -0
  481. package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +61 -0
  482. package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +29 -0
  483. package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +137 -0
  484. package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +100 -0
  485. package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +82 -0
  486. package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +40 -0
  487. package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +59 -0
  488. package/src/renderBudgetPreflight/index.ts +9 -0
  489. package/src/renderBudgetPreflight/selectAutoMovieRenderBudget.ts +28 -0
  490. package/src/renderCaptionSidecar.ts +17 -0
  491. package/src/renderObservationAudit.ts +1 -0
  492. package/src/renderPathStem.ts +61 -0
  493. package/src/renderPoseKeypointSidecar.ts +19 -0
  494. package/src/renderSequenceAndSee.ts +34 -0
  495. package/src/renderSequenceVideo.ts +44 -0
  496. package/src/renderVideo.ts +65 -0
  497. package/src/screenplay/index.ts +1 -0
  498. package/src/screenplay/renderScreenplay.ts +128 -0
  499. package/src/screenplay/screenplaySceneSlug.ts +29 -0
  500. package/src/sequenceRenderPlan.ts +5 -0
  501. package/src/sequenceRenderVideo.ts +6 -0
  502. package/src/shotBeat.ts +19 -0
  503. package/src/sliceCaptionSidecar.ts +85 -0
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertSingleGuidePass = void 0;
4
+ const guidePasses_1 = require("../guidePasses");
5
+ /**
6
+ * Return the one structural pass a guide-pass deliverable declares, or throw.
7
+ *
8
+ * Every entry must be a known guide pass other than `beauty`, and after
9
+ * folding repeats exactly one distinct pass must remain, so one deliverable's
10
+ * failure can never hide inside another's output. `normalizeGuidePasses` is
11
+ * the different, wider rule of the sequence planners, which keeps any number
12
+ * of passes and admits `beauty`.
13
+ *
14
+ * @evidence contracts/development/implementation.md#principled-implementation Membership is decided by `isGuidePass` over the runtime list that mirrors the `AutoMovieGuidePass` union, minus `beauty`, and repeats fold into a list of distinct passes whose length must be one.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function returns the single pass the planner keys a chunk by instead of a one-element list, and it reuses the shared pass list rather than restating it; it stays apart from `normalizeGuidePasses` because the two admission rules differ.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No pass or deliverable is special-cased; the runtime membership check covers values that reached the typed parameter from untyped JSON, and each refusal throws rather than picking a pass.
17
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states what is returned, both refusals, the reason a deliverable owns one pass, and how this rule differs from `normalizeGuidePasses`.
18
+ * @evidence contracts/development/implementation.md#efficient-algorithms One pass over the P entries with two scans of at most six known passes each, O(P) time, and a distinct list of at most five entries; every entry must be read to prove there is one distinct pass.
19
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner calls it once for the legacy default and once per declared guide deliverable on one-element lists, so there is no repeated work worth sharing.
20
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The distinct list of at most five passes is local and dropped on return, leaving only the returned pass literal; no handle or task is involved.
21
+ */
22
+ const assertSingleGuidePass = (passes) => {
23
+ const distinct = [];
24
+ for (const pass of passes) {
25
+ if ((0, guidePasses_1.isGuidePass)(pass) === false || pass === "beauty")
26
+ throw new Error(`Guide-pass render cannot use "${pass}".`);
27
+ if (distinct.includes(pass) === false)
28
+ distinct.push(pass);
29
+ }
30
+ if (distinct.length !== 1)
31
+ throw new Error(`A guide-pass deliverable requires exactly one declared pass, but received ${distinct.length}. Declare separate deliverables when the production contract gains per-pass ownership.`);
32
+ return distinct[0];
33
+ };
34
+ exports.assertSingleGuidePass = assertSingleGuidePass;
35
+ //# sourceMappingURL=assertSingleGuidePass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertSingleGuidePass.js","sourceRoot":"","sources":["../../src/film/assertSingleGuidePass.ts"],"names":[],"mappings":";;;AAEA,gDAA6C;AAE7C;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,qBAAqB,GAEW,CAC3C,MAAwD,EACjB,EAAE;IACzC,MAAM,QAAQ,GAA4C,EAAE,CAAC;IAC7D,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;QAC1B,IAAI,IAAA,yBAAW,EAAC,IAAI,CAAC,KAAK,KAAK,IAAK,IAAe,KAAK,QAAQ;YAC9D,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,IAAI,CAAC,CAAC;QAC7D,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,KAAK;YAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,6EAA6E,QAAQ,CAAC,MAAM,wFAAwF,CACrL,CAAC;IACJ,OAAO,QAAQ,CAAC,CAAC,CAAE,CAAC;AACtB,CAAC,CAAC;AAhBW,QAAA,qBAAqB,GAArB,qBAAqB,CAgBhC"}
@@ -0,0 +1,27 @@
1
+ import type { AutoMovieOrderedScalar } from "./AutoMovieOrderedScalar";
2
+ /** One position of a compared array: a scalar or a one-level row of scalars. */
3
+ type IOrderedEntry = AutoMovieOrderedScalar | readonly AutoMovieOrderedScalar[];
4
+ /**
5
+ * Compare ordered arrays of scalars, or of arrays of scalars, by value.
6
+ *
7
+ * The domain is exactly what `validWaveAudioIdentity` compares: a speaker-label
8
+ * array such as `["front-left", "front-right"]` and a one-row downmix matrix
9
+ * such as `[[0.5, 0.5]]`. Arrays are equal when they have the same length and
10
+ * every position holds equal scalars, or rows of the same length with equal
11
+ * scalars; order and the scalar's type both count. `Object.is` decides each
12
+ * scalar, so `NaN` equals `NaN` and `+0` differs from `-0`.
13
+ *
14
+ * A non-array argument returns false instead of being compared, so a record
15
+ * cannot pass by lacking a `length`. Nesting deeper than one row, prototypes,
16
+ * symbol keys, boxed primitives and cycles are outside the domain.
17
+ *
18
+ * @evidence contracts/development/implementation.md#principled-implementation A length check followed by a positional `Object.is` comparison is the definition of ordered-sequence equality over primitive leaves, applied once more for the single nesting level the matrix has; the premise that leaves are strings or numbers holds because the parameter type admits nothing else.
19
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One loop handles both shapes, descending only where a position holds a row, instead of a general deep equality whose answer would also depend on prototypes and key order the callers never compare.
20
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No value or caller is special-cased; the non-array refusal is the stated domain boundary, not a compensation for a particular input.
21
+ * @evidence contracts/development/common.md#meaningful-documentation The doc names the two compared shapes and their caller, the equality rule including order and type, the `Object.is` cases for `NaN` and signed zero, and what lies outside the domain.
22
+ * @evidence contracts/development/implementation.md#efficient-algorithms Time is linear in the total leaf count and stops at the first difference, with no allocation; every leaf must be read to prove equality, so no faster comparison exists.
23
+ * @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
+ * @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
+ */
26
+ export declare const equalOrderedScalars: (left: readonly IOrderedEntry[], right: readonly IOrderedEntry[]) => boolean;
27
+ export {};
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.equalOrderedScalars = void 0;
4
+ /**
5
+ * Compare ordered arrays of scalars, or of arrays of scalars, by value.
6
+ *
7
+ * The domain is exactly what `validWaveAudioIdentity` compares: a speaker-label
8
+ * array such as `["front-left", "front-right"]` and a one-row downmix matrix
9
+ * such as `[[0.5, 0.5]]`. Arrays are equal when they have the same length and
10
+ * every position holds equal scalars, or rows of the same length with equal
11
+ * scalars; order and the scalar's type both count. `Object.is` decides each
12
+ * scalar, so `NaN` equals `NaN` and `+0` differs from `-0`.
13
+ *
14
+ * A non-array argument returns false instead of being compared, so a record
15
+ * cannot pass by lacking a `length`. Nesting deeper than one row, prototypes,
16
+ * symbol keys, boxed primitives and cycles are outside the domain.
17
+ *
18
+ * @evidence contracts/development/implementation.md#principled-implementation A length check followed by a positional `Object.is` comparison is the definition of ordered-sequence equality over primitive leaves, applied once more for the single nesting level the matrix has; the premise that leaves are strings or numbers holds because the parameter type admits nothing else.
19
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One loop handles both shapes, descending only where a position holds a row, instead of a general deep equality whose answer would also depend on prototypes and key order the callers never compare.
20
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No value or caller is special-cased; the non-array refusal is the stated domain boundary, not a compensation for a particular input.
21
+ * @evidence contracts/development/common.md#meaningful-documentation The doc names the two compared shapes and their caller, the equality rule including order and type, the `Object.is` cases for `NaN` and signed zero, and what lies outside the domain.
22
+ * @evidence contracts/development/implementation.md#efficient-algorithms Time is linear in the total leaf count and stops at the first difference, with no allocation; every leaf must be read to prove equality, so no faster comparison exists.
23
+ * @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
+ * @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
+ */
26
+ const equalOrderedScalars = (left, right) => {
27
+ if (Array.isArray(left) === false || Array.isArray(right) === false)
28
+ return false;
29
+ if (left.length !== right.length)
30
+ return false;
31
+ for (let at = 0; at < left.length; ++at) {
32
+ const one = left[at];
33
+ const other = right[at];
34
+ if (Array.isArray(one) || Array.isArray(other)) {
35
+ if (Array.isArray(one) === false || Array.isArray(other) === false)
36
+ return false;
37
+ const row = one;
38
+ const otherRow = other;
39
+ if (row.length !== otherRow.length)
40
+ return false;
41
+ for (let inner = 0; inner < row.length; ++inner)
42
+ if (Object.is(row[inner], otherRow[inner]) === false)
43
+ return false;
44
+ continue;
45
+ }
46
+ if (Object.is(one, other) === false)
47
+ return false;
48
+ }
49
+ return true;
50
+ };
51
+ exports.equalOrderedScalars = equalOrderedScalars;
52
+ //# sourceMappingURL=equalOrderedScalars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equalOrderedScalars.js","sourceRoot":"","sources":["../../src/film/equalOrderedScalars.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,MAAM,mBAAmB,GAGjB,CACb,IAA8B,EAC9B,KAA+B,EACtB,EAAE;IACX,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK;QACjE,OAAO,KAAK,CAAC;IACf,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC/C,KAAK,IAAI,EAAE,GAAW,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;QAChD,MAAM,GAAG,GAAkB,IAAI,CAAC,EAAE,CAAE,CAAC;QACrC,MAAM,KAAK,GAAkB,KAAK,CAAC,EAAE,CAAE,CAAC;QACxC,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK;gBAChE,OAAO,KAAK,CAAC;YACf,MAAM,GAAG,GACP,GAAwC,CAAC;YAC3C,MAAM,QAAQ,GACZ,KAA0C,CAAC;YAC7C,IAAI,GAAG,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;gBAAE,OAAO,KAAK,CAAC;YACjD,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,KAAK;gBACrD,IAAI,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK;oBAAE,OAAO,KAAK,CAAC;YACrE,SAAS;QACX,CAAC;QACD,IAAI,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,KAAK;YAAE,OAAO,KAAK,CAAC;IACpD,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AA5BW,QAAA,mBAAmB,GAAnB,mBAAmB,CA4B9B"}
@@ -0,0 +1,9 @@
1
+ export * from "./IAutoMovieProductionAudioAssetIdentity";
2
+ export * from "./IAutoMovieProductionEncoderIdentity";
3
+ export * from "./IAutoMovieProductionRenderChunk";
4
+ export * from "./IAutoMovieProductionRenderJobPlan";
5
+ export * from "./IAutoMovieProductionRenderRuntimeIdentity";
6
+ export * from "./IAutoMovieProductionRenderTier";
7
+ export * from "./planProductionRenderJob";
8
+ export * from "./productionVisualDeliveryOccurrence";
9
+ export * from "./resolveProductionRenderTierFrameFormat";
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./IAutoMovieProductionAudioAssetIdentity"), exports);
18
+ __exportStar(require("./IAutoMovieProductionEncoderIdentity"), exports);
19
+ __exportStar(require("./IAutoMovieProductionRenderChunk"), exports);
20
+ __exportStar(require("./IAutoMovieProductionRenderJobPlan"), exports);
21
+ __exportStar(require("./IAutoMovieProductionRenderRuntimeIdentity"), exports);
22
+ __exportStar(require("./IAutoMovieProductionRenderTier"), exports);
23
+ __exportStar(require("./planProductionRenderJob"), exports);
24
+ __exportStar(require("./productionVisualDeliveryOccurrence"), exports);
25
+ __exportStar(require("./resolveProductionRenderTierFrameFormat"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/film/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,wEAAsD;AACtD,oEAAkD;AAClD,sEAAoD;AACpD,8EAA4D;AAC5D,mEAAiD;AACjD,4DAA0C;AAC1C,uEAAqD;AACrD,2EAAyD"}
@@ -0,0 +1,21 @@
1
+ import type { IAutoMovieProductionAudioAssetIdentity } from "./IAutoMovieProductionAudioAssetIdentity";
2
+ /**
3
+ * Copy the planned audio asset identities sorted by path, refusing any that
4
+ * is invalid.
5
+ *
6
+ * Paths sort by UTF-16 code unit, so one input yields one plan on every host.
7
+ * Throws when a path is blank or repeated, the digest is not a SHA-256 content
8
+ * digest, the sample rate, channel count or sample-frame count is not a
9
+ * positive safe integer, `durationSeconds` is not exactly `sourceFrames /
10
+ * sampleRate`, the kind is unknown, a placeholder stem is not 48 kHz stereo,
11
+ * or a WAVE identity fails `validWaveAudioIdentity`. The input is not changed.
12
+ *
13
+ * @evidence contracts/development/implementation.md#principled-implementation Code-unit order is locale-independent and total over distinct paths, and the duration check compares the stored seconds with the same IEEE division that produced them, so an exact record passes and any edited count or duration is refused.
14
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One sort and one validating copy produce the plan's asset list; the WAVE-specific relations live in `validWaveAudioIdentity` and the digest grammar in `validDigest`, so this function holds only the provenance-independent rules.
15
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The placeholder format is typed from `IAutoMovieProductionSoundPlan`'s fixed rate and channel count rather than chosen here, no path is special-cased, and an invalid asset throws rather than being dropped.
16
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the ordering and why, every refusal, the placeholder format, and that the input is left unchanged.
17
+ * @evidence contracts/development/implementation.md#efficient-algorithms For A assets the cost is an O(A log A) sort plus one O(1) set lookup and constant checks per asset and one deep copy of each identity; the sort is needed because the order is part of the plan bytes.
18
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner calls it once per plan on that plan's own inputs, so there is no completed equivalent work to share.
19
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The path set and the sorted array are local and released on return; the returned copies, owned by the caller, hold one record per asset and no handle or task.
20
+ */
21
+ export declare const normalizeAudioAssets: (assets: readonly IAutoMovieProductionAudioAssetIdentity[]) => IAutoMovieProductionAudioAssetIdentity[];
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeAudioAssets = void 0;
4
+ const engine_1 = require("@automovie/engine");
5
+ const validDigest_1 = require("./validDigest");
6
+ const validWaveAudioIdentity_1 = require("./validWaveAudioIdentity");
7
+ /** Sample rate of a placeholder stem: the sound plan's fixed mix rate. */
8
+ const PLACEHOLDER_SAMPLE_RATE = 48_000;
9
+ /** Channel count of a placeholder stem: the sound plan's fixed stereo mix. */
10
+ const PLACEHOLDER_CHANNELS = 2;
11
+ /**
12
+ * Copy the planned audio asset identities sorted by path, refusing any that
13
+ * is invalid.
14
+ *
15
+ * Paths sort by UTF-16 code unit, so one input yields one plan on every host.
16
+ * Throws when a path is blank or repeated, the digest is not a SHA-256 content
17
+ * digest, the sample rate, channel count or sample-frame count is not a
18
+ * positive safe integer, `durationSeconds` is not exactly `sourceFrames /
19
+ * sampleRate`, the kind is unknown, a placeholder stem is not 48 kHz stereo,
20
+ * or a WAVE identity fails `validWaveAudioIdentity`. The input is not changed.
21
+ *
22
+ * @evidence contracts/development/implementation.md#principled-implementation Code-unit order is locale-independent and total over distinct paths, and the duration check compares the stored seconds with the same IEEE division that produced them, so an exact record passes and any edited count or duration is refused.
23
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One sort and one validating copy produce the plan's asset list; the WAVE-specific relations live in `validWaveAudioIdentity` and the digest grammar in `validDigest`, so this function holds only the provenance-independent rules.
24
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The placeholder format is typed from `IAutoMovieProductionSoundPlan`'s fixed rate and channel count rather than chosen here, no path is special-cased, and an invalid asset throws rather than being dropped.
25
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the ordering and why, every refusal, the placeholder format, and that the input is left unchanged.
26
+ * @evidence contracts/development/implementation.md#efficient-algorithms For A assets the cost is an O(A log A) sort plus one O(1) set lookup and constant checks per asset and one deep copy of each identity; the sort is needed because the order is part of the plan bytes.
27
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner calls it once per plan on that plan's own inputs, so there is no completed equivalent work to share.
28
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The path set and the sorted array are local and released on return; the returned copies, owned by the caller, hold one record per asset and no handle or task.
29
+ */
30
+ const normalizeAudioAssets = (assets) => {
31
+ const paths = new Set();
32
+ return [...assets]
33
+ .sort((left, right) => (0, engine_1.compareCodeUnits)(left.path, right.path))
34
+ .map((asset) => {
35
+ if (asset.path.trim().length === 0 ||
36
+ paths.has(asset.path) ||
37
+ (0, validDigest_1.validDigest)(asset.digest) === false ||
38
+ Number.isSafeInteger(asset.sampleRate) === false ||
39
+ asset.sampleRate <= 0 ||
40
+ Number.isSafeInteger(asset.channels) === false ||
41
+ asset.channels <= 0 ||
42
+ Number.isSafeInteger(asset.sourceFrames) === false ||
43
+ asset.sourceFrames <= 0 ||
44
+ asset.durationSeconds !== asset.sourceFrames / asset.sampleRate ||
45
+ (asset.kind !== "placeholder-audio-stem" && asset.kind !== "wave") ||
46
+ (asset.kind === "placeholder-audio-stem" &&
47
+ (asset.sampleRate !== PLACEHOLDER_SAMPLE_RATE ||
48
+ asset.channels !== PLACEHOLDER_CHANNELS)) ||
49
+ (asset.kind === "wave" && (0, validWaveAudioIdentity_1.validWaveAudioIdentity)(asset) === false))
50
+ throw new Error(`Audio asset "${asset.path}" has invalid identity, duration, sample rate, channels, or duplicate ownership.`);
51
+ paths.add(asset.path);
52
+ return structuredClone(asset);
53
+ });
54
+ };
55
+ exports.normalizeAudioAssets = normalizeAudioAssets;
56
+ //# sourceMappingURL=normalizeAudioAssets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeAudioAssets.js","sourceRoot":"","sources":["../../src/film/normalizeAudioAssets.ts"],"names":[],"mappings":";;;AAAA,8CAAqD;AAIrD,+CAA4C;AAC5C,qEAAkE;AAElE,0EAA0E;AAC1E,MAAM,uBAAuB,GAAgD,MAAM,CAAC;AAEpF,8EAA8E;AAC9E,MAAM,oBAAoB,GAA8C,CAAC,CAAC;AAE1E;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,oBAAoB,GAEe,CAC9C,MAAyD,EACf,EAAE;IAC5C,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAE,CAAC;IACrC,OAAO,CAAC,GAAG,MAAM,CAAC;SACf,IAAI,CACH,CACE,IAA4C,EAC5C,KAA6C,EACrC,EAAE,CAAC,IAAA,yBAAgB,EAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CACrD;SACA,GAAG,CACF,CACE,KAA6C,EACL,EAAE;QAC1C,IACE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;YAC9B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;YACrB,IAAA,yBAAW,EAAC,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK;YACnC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,KAAK;YAChD,KAAK,CAAC,UAAU,IAAI,CAAC;YACrB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,KAAK;YAC9C,KAAK,CAAC,QAAQ,IAAI,CAAC;YACnB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK;YAClD,KAAK,CAAC,YAAY,IAAI,CAAC;YACvB,KAAK,CAAC,eAAe,KAAK,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU;YAC/D,CAAC,KAAK,CAAC,IAAI,KAAK,wBAAwB,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;YAClE,CAAC,KAAK,CAAC,IAAI,KAAK,wBAAwB;gBACtC,CAAC,KAAK,CAAC,UAAU,KAAK,uBAAuB;oBAC3C,KAAK,CAAC,QAAQ,KAAK,oBAAoB,CAAC,CAAC;YAC7C,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,IAAA,+CAAsB,EAAC,KAAK,CAAC,KAAK,KAAK,CAAC;YAElE,MAAM,IAAI,KAAK,CACb,gBAAgB,KAAK,CAAC,IAAI,kFAAkF,CAC7G,CAAC;QACJ,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC,CACF,CAAC;AACN,CAAC,CAAC;AAzCW,QAAA,oBAAoB,GAApB,oBAAoB,CAyC/B"}
@@ -0,0 +1,19 @@
1
+ import type { IAutoMovieProductionRenderTier } from "./IAutoMovieProductionRenderTier";
2
+ /**
3
+ * Return a copy of the declared render tier, or the final tier when none is
4
+ * declared, refusing any other shape.
5
+ *
6
+ * Final must be scale 1 and step 1. A proxy must have a finite scale in
7
+ * `(0, 1]` and an integer step from 1 through 16, and reduce at least one of
8
+ * them, so a proxy cannot claim final's output and final cannot be spelled as
9
+ * a proxy. Throws one error naming both admitted shapes.
10
+ *
11
+ * @evidence contracts/development/implementation.md#principled-implementation The check is the closed admission rule of the production design's `renderTiers` contract, evaluated field by field on finite and safe-integer predicates so NaN, infinity and fractional steps are refused rather than compared.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate admits the two shapes and one structured clone returns a value the caller owns, so the planner and the frame-format projection share one rule instead of each restating it.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The limits are the design contract's 1-for-final and 1-through-16 step bounds; the default for an omitted tier is the documented final tier, not a guess, and an invalid tier throws instead of being clamped.
14
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the omitted-tier default, both admitted shapes with their bounds, why a proxy must reduce something, that the result is a copy, and the refusal.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms The call does constant work: a fixed set of comparisons and one clone of a three-field record.
16
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call validates one small record, and the planner and the projection each call it once per plan, so caching would cost more than the check.
17
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function retains nothing after returning the copy its caller owns and opens no handle or task.
18
+ */
19
+ export declare const normalizeRenderTier: (tier: IAutoMovieProductionRenderTier | undefined) => IAutoMovieProductionRenderTier;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeRenderTier = void 0;
4
+ /** The tier an omitted declaration means: exact final output. */
5
+ const FINAL_TIER = {
6
+ kind: "final",
7
+ resolutionScale: 1,
8
+ frameStep: 1,
9
+ };
10
+ /**
11
+ * Return a copy of the declared render tier, or the final tier when none is
12
+ * declared, refusing any other shape.
13
+ *
14
+ * Final must be scale 1 and step 1. A proxy must have a finite scale in
15
+ * `(0, 1]` and an integer step from 1 through 16, and reduce at least one of
16
+ * them, so a proxy cannot claim final's output and final cannot be spelled as
17
+ * a proxy. Throws one error naming both admitted shapes.
18
+ *
19
+ * @evidence contracts/development/implementation.md#principled-implementation The check is the closed admission rule of the production design's `renderTiers` contract, evaluated field by field on finite and safe-integer predicates so NaN, infinity and fractional steps are refused rather than compared.
20
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate admits the two shapes and one structured clone returns a value the caller owns, so the planner and the frame-format projection share one rule instead of each restating it.
21
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The limits are the design contract's 1-for-final and 1-through-16 step bounds; the default for an omitted tier is the documented final tier, not a guess, and an invalid tier throws instead of being clamped.
22
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the omitted-tier default, both admitted shapes with their bounds, why a proxy must reduce something, that the result is a copy, and the refusal.
23
+ * @evidence contracts/development/implementation.md#efficient-algorithms The call does constant work: a fixed set of comparisons and one clone of a three-field record.
24
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call validates one small record, and the planner and the projection each call it once per plan, so caching would cost more than the check.
25
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function retains nothing after returning the copy its caller owns and opens no handle or task.
26
+ */
27
+ const normalizeRenderTier = (tier) => {
28
+ const value = tier ?? FINAL_TIER;
29
+ if ((value.kind !== "proxy" && value.kind !== "final") ||
30
+ Number.isFinite(value.resolutionScale) === false ||
31
+ value.resolutionScale <= 0 ||
32
+ value.resolutionScale > 1 ||
33
+ Number.isSafeInteger(value.frameStep) === false ||
34
+ value.frameStep <= 0 ||
35
+ value.frameStep > 16 ||
36
+ (value.kind === "final" &&
37
+ (value.resolutionScale !== 1 || value.frameStep !== 1)) ||
38
+ (value.kind === "proxy" &&
39
+ value.resolutionScale === 1 &&
40
+ value.frameStep === 1))
41
+ throw new Error("Render tier must be exact final (scale 1, step 1) or a bounded cheaper proxy (scale in (0, 1], integer step 1..16, with at least one reduction).");
42
+ return structuredClone(value);
43
+ };
44
+ exports.normalizeRenderTier = normalizeRenderTier;
45
+ //# sourceMappingURL=normalizeRenderTier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeRenderTier.js","sourceRoot":"","sources":["../../src/film/normalizeRenderTier.ts"],"names":[],"mappings":";;;AAEA,iEAAiE;AACjE,MAAM,UAAU,GAA6C;IAC3D,IAAI,EAAE,OAAO;IACb,eAAe,EAAE,CAAC;IAClB,SAAS,EAAE,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,mBAAmB,GAEM,CACpC,IAAgD,EAChB,EAAE;IAClC,MAAM,KAAK,GAA6C,IAAI,IAAI,UAAU,CAAC;IAC3E,IACE,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC;QAClD,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,KAAK;QAChD,KAAK,CAAC,eAAe,IAAI,CAAC;QAC1B,KAAK,CAAC,eAAe,GAAG,CAAC;QACzB,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,KAAK;QAC/C,KAAK,CAAC,SAAS,IAAI,CAAC;QACpB,KAAK,CAAC,SAAS,GAAG,EAAE;QACpB,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;YACrB,CAAC,KAAK,CAAC,eAAe,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC;QACzD,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;YACrB,KAAK,CAAC,eAAe,KAAK,CAAC;YAC3B,KAAK,CAAC,SAAS,KAAK,CAAC,CAAC;QAExB,MAAM,IAAI,KAAK,CACb,kJAAkJ,CACnJ,CAAC;IACJ,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC,CAAC;AAxBW,QAAA,mBAAmB,GAAnB,mBAAmB,CAwB9B"}
@@ -0,0 +1,48 @@
1
+ import type { AutoMovieGuidePass, IAutoMovieCompiledFilmEffect, IAutoMovieFilmTimeline, IAutoMovieProductionDesign } from "@automovie/interface";
2
+ import type { IAutoMovieProductionAudioAssetIdentity } from "./IAutoMovieProductionAudioAssetIdentity";
3
+ import type { IAutoMovieProductionRenderJobPlan } from "./IAutoMovieProductionRenderJobPlan";
4
+ import type { IAutoMovieProductionRenderRuntimeIdentity } from "./IAutoMovieProductionRenderRuntimeIdentity";
5
+ import type { IAutoMovieProductionRenderTier } from "./IAutoMovieProductionRenderTier";
6
+ /**
7
+ * Plan the content-addressed render chunks and publication tracks of one
8
+ * production edit at one tier.
9
+ *
10
+ * The tier, which defaults to final, decimates the timeline by `frameStep` and
11
+ * projects the raster; output frames are partitioned into ranges of at most
12
+ * `chunkFrames`, and every feature and guide-pass deliverable gets one chunk
13
+ * per range, in declaration order. A feature renders `beauty`; a guide-pass
14
+ * deliverable renders its declared `pass`, or, for a legacy record without
15
+ * one, the single pass in `guidePasses`, which defaults to `pose`. Each chunk
16
+ * id digests the edit, effect digests, tier, frame formats, range, pass,
17
+ * runtime identity and the source digest of every shot the range shows.
18
+ *
19
+ * Throws when `chunkFrames` is not a positive safe integer; a runtime,
20
+ * compile or source digest is malformed or missing; the tier is inadmissible
21
+ * or its raster is odd; the timeline's id, frame rate or runtime differs from
22
+ * the production's, or its length is not a multiple of `frameStep`; the effect
23
+ * runtimes are not exactly the timeline's current population for this
24
+ * production, as an `AutoMovieFilmEffectRuntimeError`; an audio asset is
25
+ * invalid or a cue's asset is missing or holds another sample count; or a
26
+ * guide pass is unknown or not single. The inputs are not changed.
27
+ *
28
+ * Current maintained callers are planner tests. This function does not execute a render, authenticate supplied runtime or source digests, or establish stored-plan currentness for an application scheduler.
29
+ *
30
+ * @evidence contracts/development/implementation.md#principled-implementation Chunk ids hash canonical JSON of the declared edit, effects, tier, formats, range, pass, runtime identity and range source digests. Engine population and production-owner checks admit effect runtimes, and exact rational frame-to-tick rounding checks cue source lengths against asset samples. Supplied identity records remain caller claims; hashing them does not authenticate renderer bytes or prove equal pixels.
31
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Admission rules live in their helpers (`normalizeRenderTier`, `normalizeAudioAssets`, `assertSingleGuidePass`, `validDigest`) and the engine (`verifyProductionFilmEffectPopulation`, `sampleProductionRenderFrame`); this function orders them, builds each range once, and joins ranges with deliverables. The range walk repeats `planChunkedSequenceRender`'s arithmetic on purpose, because there the range index orders reassembly and here it is one field of a content-addressed slot.
32
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `pose` default is the interface's documented legacy rule for a guide deliverable without a pass, the protocol and version literals are schema identities, and every refusal throws rather than skipping a deliverable, cue or shot.
33
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the tier default and decimation, the range partition and chunk order, which pass each deliverable renders including the legacy default, what a chunk id digests, every refusal with the effect error type, and that inputs are left unchanged.
34
+ * @evidence contracts/development/implementation.md#efficient-algorithms For F tier output frames and S ordered segments, engine sampling costs O(F log(S+1)) plus rate reduction per frame. Range construction visits their at-most-two layers, sorts each range's distinct shot ids and shares ranges across D moving deliverables. Audio asset sorting/copying, effect verification/cloning, caption sorting/serialization and each chunk's canonical JSON/hash work depend on their complete populations and byte lengths; large runtime identities are serialized again per chunk.
35
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Each range's frame array and sorted source identities are built once and shared across the moving deliverables of this call. There is no cross-call cache or maintained scheduler consuming these ids to reuse completed encodes; any such effect reuse would require a host's currentness and byte checks.
36
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources All F samples are allocated even with no moving deliverable, then become collectable if no range retains them. With moving deliverables the result shares F frame records through D times ceil(F/chunkFrames) chunk records and retains copied audio/effect tracks, asset identities and caption text. Input arrays and output populations have no quota here; local indexes and digest strings become collectable after completion or refusal, with no acquired host handle or task.
37
+ */
38
+ export declare const planProductionRenderJob: (props: {
39
+ timeline: IAutoMovieFilmTimeline;
40
+ effects: readonly IAutoMovieCompiledFilmEffect[];
41
+ production: IAutoMovieProductionDesign;
42
+ runtimeIdentity: IAutoMovieProductionRenderRuntimeIdentity;
43
+ sourceFingerprints: Readonly<Record<string, string>>;
44
+ audioAssets: readonly IAutoMovieProductionAudioAssetIdentity[];
45
+ chunkFrames: number;
46
+ guidePasses?: readonly Exclude<AutoMovieGuidePass, "beauty">[];
47
+ tier?: IAutoMovieProductionRenderTier;
48
+ }) => IAutoMovieProductionRenderJobPlan;
@@ -0,0 +1,196 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.planProductionRenderJob = void 0;
4
+ const engine_1 = require("@automovie/engine");
5
+ const canonicalProductionWebVtt_1 = require("../caption/canonicalProductionWebVtt");
6
+ const assertSingleGuidePass_1 = require("./assertSingleGuidePass");
7
+ const normalizeAudioAssets_1 = require("./normalizeAudioAssets");
8
+ const normalizeRenderTier_1 = require("./normalizeRenderTier");
9
+ const resolveProductionRenderTierFrameFormat_1 = require("./resolveProductionRenderTierFrameFormat");
10
+ const validDigest_1 = require("./validDigest");
11
+ /**
12
+ * Plan the content-addressed render chunks and publication tracks of one
13
+ * production edit at one tier.
14
+ *
15
+ * The tier, which defaults to final, decimates the timeline by `frameStep` and
16
+ * projects the raster; output frames are partitioned into ranges of at most
17
+ * `chunkFrames`, and every feature and guide-pass deliverable gets one chunk
18
+ * per range, in declaration order. A feature renders `beauty`; a guide-pass
19
+ * deliverable renders its declared `pass`, or, for a legacy record without
20
+ * one, the single pass in `guidePasses`, which defaults to `pose`. Each chunk
21
+ * id digests the edit, effect digests, tier, frame formats, range, pass,
22
+ * runtime identity and the source digest of every shot the range shows.
23
+ *
24
+ * Throws when `chunkFrames` is not a positive safe integer; a runtime,
25
+ * compile or source digest is malformed or missing; the tier is inadmissible
26
+ * or its raster is odd; the timeline's id, frame rate or runtime differs from
27
+ * the production's, or its length is not a multiple of `frameStep`; the effect
28
+ * runtimes are not exactly the timeline's current population for this
29
+ * production, as an `AutoMovieFilmEffectRuntimeError`; an audio asset is
30
+ * invalid or a cue's asset is missing or holds another sample count; or a
31
+ * guide pass is unknown or not single. The inputs are not changed.
32
+ *
33
+ * Current maintained callers are planner tests. This function does not execute a render, authenticate supplied runtime or source digests, or establish stored-plan currentness for an application scheduler.
34
+ *
35
+ * @evidence contracts/development/implementation.md#principled-implementation Chunk ids hash canonical JSON of the declared edit, effects, tier, formats, range, pass, runtime identity and range source digests. Engine population and production-owner checks admit effect runtimes, and exact rational frame-to-tick rounding checks cue source lengths against asset samples. Supplied identity records remain caller claims; hashing them does not authenticate renderer bytes or prove equal pixels.
36
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Admission rules live in their helpers (`normalizeRenderTier`, `normalizeAudioAssets`, `assertSingleGuidePass`, `validDigest`) and the engine (`verifyProductionFilmEffectPopulation`, `sampleProductionRenderFrame`); this function orders them, builds each range once, and joins ranges with deliverables. The range walk repeats `planChunkedSequenceRender`'s arithmetic on purpose, because there the range index orders reassembly and here it is one field of a content-addressed slot.
37
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `pose` default is the interface's documented legacy rule for a guide deliverable without a pass, the protocol and version literals are schema identities, and every refusal throws rather than skipping a deliverable, cue or shot.
38
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the tier default and decimation, the range partition and chunk order, which pass each deliverable renders including the legacy default, what a chunk id digests, every refusal with the effect error type, and that inputs are left unchanged.
39
+ * @evidence contracts/development/implementation.md#efficient-algorithms For F tier output frames and S ordered segments, engine sampling costs O(F log(S+1)) plus rate reduction per frame. Range construction visits their at-most-two layers, sorts each range's distinct shot ids and shares ranges across D moving deliverables. Audio asset sorting/copying, effect verification/cloning, caption sorting/serialization and each chunk's canonical JSON/hash work depend on their complete populations and byte lengths; large runtime identities are serialized again per chunk.
40
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Each range's frame array and sorted source identities are built once and shared across the moving deliverables of this call. There is no cross-call cache or maintained scheduler consuming these ids to reuse completed encodes; any such effect reuse would require a host's currentness and byte checks.
41
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources All F samples are allocated even with no moving deliverable, then become collectable if no range retains them. With moving deliverables the result shares F frame records through D times ceil(F/chunkFrames) chunk records and retains copied audio/effect tracks, asset identities and caption text. Input arrays and output populations have no quota here; local indexes and digest strings become collectable after completion or refusal, with no acquired host handle or task.
42
+ */
43
+ const planProductionRenderJob = (props) => {
44
+ if (Number.isSafeInteger(props.chunkFrames) === false ||
45
+ props.chunkFrames <= 0)
46
+ throw new Error(`chunkFrames must be a positive safe integer, but was ${props.chunkFrames}.`);
47
+ if ((0, validDigest_1.validDigest)(props.runtimeIdentity.sourceDigest) === false)
48
+ throw new Error("Render runtime sourceDigest must be one current SHA-256 content identity.");
49
+ if (props.runtimeIdentity.dialogueRuntimeIdentity !== null &&
50
+ (0, validDigest_1.validDigest)(props.runtimeIdentity.dialogueRuntimeIdentity) === false)
51
+ throw new Error("Render runtime dialogueRuntimeIdentity must be null or one current SHA-256 content identity.");
52
+ const tier = (0, normalizeRenderTier_1.normalizeRenderTier)(props.tier);
53
+ const frameFormat = (0, resolveProductionRenderTierFrameFormat_1.resolveProductionRenderTierFrameFormat)(props.production.frameFormat, tier);
54
+ const outputRate = (0, engine_1.resolveProductionFrameRate)(frameFormat);
55
+ if (frameFormat.width % 2 !== 0 || frameFormat.height % 2 !== 0)
56
+ throw new Error("The production H.264 render adapter requires even width and height.");
57
+ const timelineRate = (0, engine_1.resolveProductionFrameRate)(props.timeline);
58
+ const productionRate = (0, engine_1.resolveProductionFrameRate)(props.production.frameFormat);
59
+ if (props.production.id.trim().length === 0 ||
60
+ props.timeline.id !== props.production.id ||
61
+ (0, validDigest_1.validDigest)(props.timeline.inputFingerprint) === false ||
62
+ (0, engine_1.equalProductionFrameRates)(timelineRate, productionRate) === false ||
63
+ props.production.targetRuntimeSeconds !==
64
+ (props.timeline.totalFrames * productionRate.denominator) /
65
+ productionRate.numerator)
66
+ throw new Error("The film edit differs from the production identity, frame clock, or runtime. Recompile before planning.");
67
+ if (props.timeline.totalFrames % tier.frameStep !== 0)
68
+ throw new Error(`Render tier "${tier.kind}" frameStep ${tier.frameStep} does not divide the ${props.timeline.totalFrames}-frame edit. Choose a divisor so proxy and final have the same exact runtime.`);
69
+ const audioAssets = (0, normalizeAudioAssets_1.normalizeAudioAssets)(props.audioAssets);
70
+ const assetsByPath = new Map(audioAssets.map((asset) => [
71
+ asset.path,
72
+ asset,
73
+ ]));
74
+ for (const cue of props.timeline.tracks.audio) {
75
+ // `sourceDurationFrames` is the cue's claim about the complete asset, so
76
+ // it must land on exactly the asset's sample count at the asset's own rate;
77
+ // the trim inside that duration is the mix's own refusal.
78
+ const asset = assetsByPath.get(cue.asset);
79
+ if (asset === undefined ||
80
+ asset.sourceFrames !==
81
+ (0, engine_1.productionFrameBoundaryToGridTick)({
82
+ frame: cue.sourceDurationFrames,
83
+ frameRate: timelineRate,
84
+ ticksPerSecond: asset.sampleRate,
85
+ rounding: "nearest",
86
+ }))
87
+ throw new Error(`Audio cue "${cue.id}" lacks one digest-, format-, and duration-verified source asset.`);
88
+ }
89
+ const legacyGuidePass = (0, assertSingleGuidePass_1.assertSingleGuidePass)(props.guidePasses ?? ["pose"]);
90
+ const editFingerprint = (0, engine_1.productionFilmEffectEditFingerprint)(props.timeline);
91
+ (0, engine_1.verifyProductionFilmEffectPopulation)({
92
+ timeline: props.timeline,
93
+ effects: props.effects,
94
+ });
95
+ for (const effect of props.effects)
96
+ if (effect.production !== props.production.id)
97
+ throw new engine_1.AutoMovieFilmEffectRuntimeError("film-effect-runtime-stale", `Film effect runtime "${effect.effect.id}" belongs to production "${effect.production}", not "${props.production.id}".`);
98
+ const effectDigests = props.effects.map((effect) => effect.digest);
99
+ const frames = Array.from({ length: props.timeline.totalFrames / tier.frameStep }, (_, outputFrame) => {
100
+ const timelineFrame = outputFrame * tier.frameStep;
101
+ return {
102
+ ...(0, engine_1.sampleProductionRenderFrame)(props.timeline, timelineFrame),
103
+ globalFrame: outputFrame,
104
+ timelineFrame,
105
+ timeSeconds: (outputFrame * outputRate.denominator) / outputRate.numerator,
106
+ };
107
+ });
108
+ const moving = props.production.deliverables.filter((deliverable) => deliverable.kind === "feature" || deliverable.kind === "guide-pass");
109
+ const ranges = moving.length === 0 ? [] : partition(frames, props);
110
+ const chunks = [];
111
+ for (const deliverable of moving) {
112
+ const pass = deliverable.kind === "feature"
113
+ ? "beauty"
114
+ : deliverable.pass === undefined
115
+ ? legacyGuidePass
116
+ : (0, assertSingleGuidePass_1.assertSingleGuidePass)([deliverable.pass]);
117
+ ranges.forEach((range, index) => {
118
+ chunks.push({
119
+ slot: `${props.production.id}:${tier.kind}:${deliverable.id}:${pass}:${index}`,
120
+ id: (0, engine_1.autoMovieRenderDigest)((0, engine_1.canonicalizeAutoMovieJson)({
121
+ protocol: "automovie.production-render-chunk.v4",
122
+ production: props.production.id,
123
+ tier,
124
+ deliverable: deliverable.id,
125
+ kind: deliverable.kind,
126
+ editFingerprint,
127
+ effects: effectDigests,
128
+ sourceFrameFormat: props.production.frameFormat,
129
+ frameFormat,
130
+ frameStart: range.frameStart,
131
+ frameEndExclusive: range.frameEndExclusive,
132
+ pass,
133
+ runtimeIdentity: props.runtimeIdentity,
134
+ sources: range.sources,
135
+ })),
136
+ deliverable: deliverable.id,
137
+ kind: deliverable.kind,
138
+ pass,
139
+ frameStart: range.frameStart,
140
+ frameEndExclusive: range.frameEndExclusive,
141
+ frames: range.frames,
142
+ });
143
+ });
144
+ }
145
+ return {
146
+ version: 4,
147
+ productionId: props.production.id,
148
+ compileFingerprint: props.timeline.inputFingerprint,
149
+ editFingerprint,
150
+ runtimeIdentity: props.runtimeIdentity,
151
+ tier,
152
+ sourceFrameFormat: structuredClone(props.production.frameFormat),
153
+ frameFormat,
154
+ totalFrames: frames.length,
155
+ chunkFrames: props.chunkFrames,
156
+ chunks,
157
+ tracks: {
158
+ captions: (0, canonicalProductionWebVtt_1.canonicalProductionWebVtt)(props.timeline),
159
+ audio: structuredClone(props.timeline.tracks.audio),
160
+ audioAssets,
161
+ effects: props.effects.map((effect) => structuredClone(effect)),
162
+ },
163
+ };
164
+ };
165
+ exports.planProductionRenderJob = planProductionRenderJob;
166
+ /**
167
+ * Split the output frames into consecutive ranges of at most `chunkFrames` and
168
+ * attach the code-unit-sorted source digest of every shot each range shows,
169
+ * throwing for a shot without a valid digest.
170
+ */
171
+ const partition = (frames, props) => {
172
+ const ranges = [];
173
+ for (let frameStart = 0; frameStart < frames.length; frameStart += props.chunkFrames) {
174
+ const frameEndExclusive = Math.min(frameStart + props.chunkFrames, frames.length);
175
+ const range = frames.slice(frameStart, frameEndExclusive);
176
+ const shots = new Set();
177
+ for (const frame of range)
178
+ for (const layer of frame.layers)
179
+ shots.add(layer.shot);
180
+ ranges.push({
181
+ frameStart,
182
+ frameEndExclusive,
183
+ frames: range,
184
+ sources: [...shots]
185
+ .sort(engine_1.compareCodeUnits)
186
+ .map((shot) => {
187
+ const digest = props.sourceFingerprints[shot];
188
+ if (digest === undefined || (0, validDigest_1.validDigest)(digest) === false)
189
+ throw new Error(`Render range references shot "${shot}" without one current builder-owned source fingerprint.`);
190
+ return { shot, digest };
191
+ }),
192
+ });
193
+ }
194
+ return ranges;
195
+ };
196
+ //# sourceMappingURL=planProductionRenderJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planProductionRenderJob.js","sourceRoot":"","sources":["../../src/film/planProductionRenderJob.ts"],"names":[],"mappings":";;;AAAA,8CAY2B;AAU3B,oFAAiF;AAMjF,mEAAgE;AAChE,iEAA8D;AAC9D,+DAA4D;AAC5D,qGAAkG;AAClG,+CAA4C;AAe5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACI,MAAM,uBAAuB,GAUM,CAAC,KA8B1C,EAAqC,EAAE;IACtC,IACE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,KAAK;QACjD,KAAK,CAAC,WAAW,IAAI,CAAC;QAEtB,MAAM,IAAI,KAAK,CACb,wDAAwD,KAAK,CAAC,WAAW,GAAG,CAC7E,CAAC;IACJ,IAAI,IAAA,yBAAW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