@automovie/render 0.0.0-stage → 0.1.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 +38 -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,5 @@
1
+ export * from "./IAutoMovieSequenceRenderShotSpan";
2
+ export * from "./IAutoMovieSequenceRenderTransitionSpan";
3
+ export * from "./IAutoMovieSequenceRenderFrame";
4
+ export * from "./IAutoMovieSequenceRenderPlan";
5
+ export * from "./planSequenceRender";
@@ -0,0 +1,22 @@
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("./IAutoMovieSequenceRenderShotSpan"), exports);
18
+ __exportStar(require("./IAutoMovieSequenceRenderTransitionSpan"), exports);
19
+ __exportStar(require("./IAutoMovieSequenceRenderFrame"), exports);
20
+ __exportStar(require("./IAutoMovieSequenceRenderPlan"), exports);
21
+ __exportStar(require("./planSequenceRender"), exports);
22
+ //# sourceMappingURL=sequenceRenderPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sequenceRenderPlan.js","sourceRoot":"","sources":["../src/sequenceRenderPlan.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,2EAAyD;AACzD,kEAAgD;AAChD,iEAA+C;AAC/C,uDAAqC"}
@@ -0,0 +1,6 @@
1
+ export * from "./IAutoMovieSequenceRenderAdapters";
2
+ export * from "./IAutoMovieSequenceRenderResult";
3
+ export * from "./IAutoMovieSequenceRenderAndSeeRequest";
4
+ export * from "./IAutoMovieSequenceRenderAndSeeResult";
5
+ export * from "./renderSequenceVideo";
6
+ export * from "./renderSequenceAndSee";
@@ -0,0 +1,23 @@
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("./IAutoMovieSequenceRenderAdapters"), exports);
18
+ __exportStar(require("./IAutoMovieSequenceRenderResult"), exports);
19
+ __exportStar(require("./IAutoMovieSequenceRenderAndSeeRequest"), exports);
20
+ __exportStar(require("./IAutoMovieSequenceRenderAndSeeResult"), exports);
21
+ __exportStar(require("./renderSequenceVideo"), exports);
22
+ __exportStar(require("./renderSequenceAndSee"), exports);
23
+ //# sourceMappingURL=sequenceRenderVideo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sequenceRenderVideo.js","sourceRoot":"","sources":["../src/sequenceRenderVideo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,mEAAiD;AACjD,0EAAwD;AACxD,yEAAuD;AACvD,wDAAsC;AACtC,yDAAuC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The beat id a shot id names: the text after a leading `shot:`, or the whole
3
+ * id when it has no such prefix.
4
+ *
5
+ * The interface defines a beat's computed shot as `shot.id = "shot:" + beat`,
6
+ * and an unprefixed id comes from a hand-authored shot that is its own beat.
7
+ * The caption plan and the pose-keypoint plan label their frames with it, so
8
+ * the two sidecars name the same beat for the same frame.
9
+ *
10
+ * @evidence contracts/development/implementation.md#principled-implementation Removing the fixed prefix inverts the `"shot:" + beat` construction exactly, and any other id is returned whole because no prefix was added to it.
11
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Both sidecar planners map shots to beats through this one function instead of each spelling the prefix rule.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The prefix is the interface's shot-id contract, a defined convention rather than a special case, and no id is otherwise rewritten.
13
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states both mappings, the contract the prefix comes from, and which planners rely on it.
14
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms One prefix test and slice of a short id choose no algorithm.
15
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A prefix test per frame is cheaper than caching the mapping by shot id.
16
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The beat id is a slice of the shot id handed back to the planner, and nothing is retained.
17
+ */
18
+ export declare const shotBeat: (shotId: string) => string;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.shotBeat = void 0;
4
+ /**
5
+ * The beat id a shot id names: the text after a leading `shot:`, or the whole
6
+ * id when it has no such prefix.
7
+ *
8
+ * The interface defines a beat's computed shot as `shot.id = "shot:" + beat`,
9
+ * and an unprefixed id comes from a hand-authored shot that is its own beat.
10
+ * The caption plan and the pose-keypoint plan label their frames with it, so
11
+ * the two sidecars name the same beat for the same frame.
12
+ *
13
+ * @evidence contracts/development/implementation.md#principled-implementation Removing the fixed prefix inverts the `"shot:" + beat` construction exactly, and any other id is returned whole because no prefix was added to it.
14
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Both sidecar planners map shots to beats through this one function instead of each spelling the prefix rule.
15
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The prefix is the interface's shot-id contract, a defined convention rather than a special case, and no id is otherwise rewritten.
16
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states both mappings, the contract the prefix comes from, and which planners rely on it.
17
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms One prefix test and slice of a short id choose no algorithm.
18
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A prefix test per frame is cheaper than caching the mapping by shot id.
19
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The beat id is a slice of the shot id handed back to the planner, and nothing is retained.
20
+ */
21
+ const shotBeat = (shotId) => shotId.startsWith("shot:") ? shotId.slice("shot:".length) : shotId;
22
+ exports.shotBeat = shotBeat;
23
+ //# sourceMappingURL=shotBeat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shotBeat.js","sourceRoot":"","sources":["../src/shotBeat.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,QAAQ,GAA+B,CAAC,MAAc,EAAU,EAAE,CAC7E,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AADxD,QAAA,QAAQ,GAAR,QAAQ,CACgD"}
@@ -0,0 +1,15 @@
1
+ import { IAutoMovieCaptionSidecar } from "./captionSidecar";
2
+ /**
3
+ * Slice a caption sidecar to one chunk's window `[frameStart, frameEnd)`, with spans clipped to the window and re-based to chunk-local frame indices.
4
+ *
5
+ * This is the caption counterpart of `planChunkedSequenceRender`'s frame-atomic chunking, so each chunk render carries its own caption track. A `frameEnd` past the sidecar's coverage is clamped to `frameCount`, which is how the last, shorter chunk is sliced. Throws when `frameStart` is not a non-negative integer, when `frameEnd` is not an integer above `frameStart`, or when `frameStart` is at or beyond `frameCount`, which means the render and the caption plan disagree on the frame count, for example because they were planned at different fps. The input spans must be in play order and tile the frames, as `planCaptionSidecar` and this function produce them.
6
+ *
7
+ * @evidence contracts/development/implementation.md#principled-implementation Spans are sorted, contiguous half-open intervals, so a binary search finds the first span ending after `frameStart`, and spans are then clipped with `max` and `min` until one starts at or after the clamped end; clipping cannot empty a visited span because each one overlaps the window.
8
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The slicer reads only the sidecar, not the chunk plan, so a host can pair any chunk window with its caption track; the clamp is a named helper because the coverage refusal and the clamp are separate rules.
9
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A window beyond coverage throws instead of returning an empty or negative-length slice, and no window or sidecar is special-cased.
10
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the clipping and re-basing, the clamp for the last chunk, each refusal, and the frame-count mismatch a coverage refusal signals.
11
+ * @evidence contracts/development/implementation.md#efficient-algorithms For S spans and K spans overlapping one window, bisection plus clipping costs O(log(S+1) + K). For C contiguous chunk windows that partition the coverage, each internal boundary adds at most one repeated span visit, so total work is O(C log(S+1) + S); a single long span can still appear in all C outputs, and no span or chunk count cap is imposed.
12
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call slices one window; chunk windows are disjoint, so there is no equivalent result to reuse between calls.
13
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The function retains nothing; the returned sidecar, owned by the caller, holds exactly the K overlapping spans as new objects and never aliases the input's spans.
14
+ */
15
+ export declare const sliceCaptionSidecar: (sidecar: IAutoMovieCaptionSidecar, frameStart: number, frameEnd: number) => IAutoMovieCaptionSidecar;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sliceCaptionSidecar = void 0;
4
+ /**
5
+ * Slice a caption sidecar to one chunk's window `[frameStart, frameEnd)`, with spans clipped to the window and re-based to chunk-local frame indices.
6
+ *
7
+ * This is the caption counterpart of `planChunkedSequenceRender`'s frame-atomic chunking, so each chunk render carries its own caption track. A `frameEnd` past the sidecar's coverage is clamped to `frameCount`, which is how the last, shorter chunk is sliced. Throws when `frameStart` is not a non-negative integer, when `frameEnd` is not an integer above `frameStart`, or when `frameStart` is at or beyond `frameCount`, which means the render and the caption plan disagree on the frame count, for example because they were planned at different fps. The input spans must be in play order and tile the frames, as `planCaptionSidecar` and this function produce them.
8
+ *
9
+ * @evidence contracts/development/implementation.md#principled-implementation Spans are sorted, contiguous half-open intervals, so a binary search finds the first span ending after `frameStart`, and spans are then clipped with `max` and `min` until one starts at or after the clamped end; clipping cannot empty a visited span because each one overlaps the window.
10
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The slicer reads only the sidecar, not the chunk plan, so a host can pair any chunk window with its caption track; the clamp is a named helper because the coverage refusal and the clamp are separate rules.
11
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A window beyond coverage throws instead of returning an empty or negative-length slice, and no window or sidecar is special-cased.
12
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the clipping and re-basing, the clamp for the last chunk, each refusal, and the frame-count mismatch a coverage refusal signals.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms For S spans and K spans overlapping one window, bisection plus clipping costs O(log(S+1) + K). For C contiguous chunk windows that partition the coverage, each internal boundary adds at most one repeated span visit, so total work is O(C log(S+1) + S); a single long span can still appear in all C outputs, and no span or chunk count cap is imposed.
14
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call slices one window; chunk windows are disjoint, so there is no equivalent result to reuse between calls.
15
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The function retains nothing; the returned sidecar, owned by the caller, holds exactly the K overlapping spans as new objects and never aliases the input's spans.
16
+ */
17
+ const sliceCaptionSidecar = (sidecar, frameStart, frameEnd) => {
18
+ if (!Number.isInteger(frameStart) || frameStart < 0)
19
+ throw new Error(`frameStart must be a non-negative integer, but was ${frameStart}`);
20
+ if (!Number.isInteger(frameEnd) || frameEnd <= frameStart)
21
+ throw new Error(`frameEnd must be an integer > frameStart, but was ${frameEnd}`);
22
+ if (frameStart >= sidecar.frameCount)
23
+ throw new Error(`frameStart ${frameStart} is at or beyond the sidecar's ${sidecar.frameCount} frames; the render window exceeds caption coverage`);
24
+ const end = clampWindowEnd(frameEnd, sidecar.frameCount);
25
+ const entries = [];
26
+ for (let index = firstSpanEndingAfter(sidecar.entries, frameStart); index < sidecar.entries.length && sidecar.entries[index].frameStart < end; ++index) {
27
+ const entry = sidecar.entries[index];
28
+ entries.push({
29
+ ...entry,
30
+ frameStart: Math.max(entry.frameStart, frameStart) - frameStart,
31
+ frameEnd: Math.min(entry.frameEnd, end) - frameStart,
32
+ });
33
+ }
34
+ return {
35
+ target: sidecar.target,
36
+ fps: sidecar.fps,
37
+ frameCount: end - frameStart,
38
+ entries,
39
+ };
40
+ };
41
+ exports.sliceCaptionSidecar = sliceCaptionSidecar;
42
+ /** The window's exclusive end, clamped to the sidecar's frame count. */
43
+ const clampWindowEnd = (frameEnd, frameCount) => (frameEnd < frameCount ? frameEnd : frameCount);
44
+ /** Index of the first span whose exclusive end exceeds `frame`, by bisection. */
45
+ const firstSpanEndingAfter = (entries, frame) => {
46
+ let low = 0;
47
+ let high = entries.length;
48
+ while (low < high) {
49
+ const middle = (low + high) >>> 1;
50
+ if (entries[middle].frameEnd > frame)
51
+ high = middle;
52
+ else
53
+ low = middle + 1;
54
+ }
55
+ return low;
56
+ };
57
+ //# sourceMappingURL=sliceCaptionSidecar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sliceCaptionSidecar.js","sourceRoot":"","sources":["../src/sliceCaptionSidecar.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;GAYG;AACI,MAAM,mBAAmB,GAIA,CAC9B,OAAiC,EACjC,UAAkB,EAClB,QAAgB,EACU,EAAE;IAC5B,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,UAAU,GAAG,CAAC;QACjD,MAAM,IAAI,KAAK,CACb,sDAAsD,UAAU,EAAE,CACnE,CAAC;IACJ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,QAAQ,IAAI,UAAU;QACvD,MAAM,IAAI,KAAK,CACb,qDAAqD,QAAQ,EAAE,CAChE,CAAC;IACJ,IAAI,UAAU,IAAI,OAAO,CAAC,UAAU;QAClC,MAAM,IAAI,KAAK,CACb,cAAc,UAAU,kCAAkC,OAAO,CAAC,UAAU,qDAAqD,CAClI,CAAC;IAEJ,MAAM,GAAG,GAAW,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjE,MAAM,OAAO,GAA6B,EAAE,CAAC;IAC7C,KACE,IAAI,KAAK,GAAW,oBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EACrE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,CAAE,CAAC,UAAU,GAAG,GAAG,EAC1E,EAAE,KAAK,EACP,CAAC;QACD,MAAM,KAAK,GAA2B,OAAO,CAAC,OAAO,CAAC,KAAK,CAAE,CAAC;QAC9D,OAAO,CAAC,IAAI,CAAC;YACX,GAAG,KAAK;YACR,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,UAAU;YAC/D,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,UAAU;SACrD,CAAC,CAAC;IACL,CAAC;IACD,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,UAAU,EAAE,GAAG,GAAG,UAAU;QAC5B,OAAO;KACR,CAAC;AACJ,CAAC,CAAC;AA1CW,QAAA,mBAAmB,GAAnB,mBAAmB,CA0C9B;AAEF,wEAAwE;AACxE,MAAM,cAAc,GAAqD,CACvE,QAAgB,EAChB,UAAkB,EACV,EAAE,CAAC,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;AAE7D,iFAAiF;AACjF,MAAM,oBAAoB,GAGZ,CACZ,OAA0C,EAC1C,KAAa,EACL,EAAE;IACV,IAAI,GAAG,GAAW,CAAC,CAAC;IACpB,IAAI,IAAI,GAAW,OAAO,CAAC,MAAM,CAAC;IAClC,OAAO,GAAG,GAAG,IAAI,EAAE,CAAC;QAClB,MAAM,MAAM,GAAW,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1C,IAAI,OAAO,CAAC,MAAM,CAAE,CAAC,QAAQ,GAAG,KAAK;YAAE,IAAI,GAAG,MAAM,CAAC;;YAChD,GAAG,GAAG,MAAM,GAAG,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,49 @@
1
1
  {
2
2
  "name": "@automovie/render",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "automovie render: deterministic frame schedule + encode plan from a render spec",
5
+ "main": "lib/index.js",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./lib/index.d.ts",
9
+ "default": "./lib/index.js"
10
+ },
11
+ "./package.json": "./package.json"
12
+ },
13
+ "author": "Samchon",
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/samchon/automovie"
18
+ },
19
+ "files": [
20
+ "lib",
21
+ "src",
22
+ "package.json",
23
+ "LICENSE",
24
+ "README.md"
25
+ ],
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "dependencies": {
30
+ "mp4box": "^2.4.1",
31
+ "h264-mp4-encoder": "^1.0.12",
32
+ "@automovie/engine": "^0.1.0",
33
+ "@automovie/ingest": "^0.1.0",
34
+ "@automovie/interface": "^0.1.0"
35
+ },
36
+ "devDependencies": {
37
+ "rimraf": "^6.0.1",
38
+ "ttsc": "^0.36.3",
39
+ "typescript": "^7.0.2",
40
+ "@ttsc/lint": "^0.36.3",
41
+ "@wrtnlabs/evidence": "^0.8.2",
42
+ "@ttsc/evidence": "^0.36.3"
43
+ },
44
+ "scripts": {
45
+ "build": "rimraf lib && ttsc",
46
+ "evidence": "evidence"
47
+ },
48
+ "types": "lib/index.d.ts"
6
49
  }
@@ -0,0 +1,19 @@
1
+ import type { AutoMovieGuidePass } from "@automovie/interface";
2
+
3
+ /**
4
+ * Every member of the closed `AutoMovieGuidePass` union, in declaration order, as the runtime list a requested pass name is checked against.
5
+ *
6
+ * The `interface` package holds only types, so the value list lives here.
7
+ *
8
+ * The six lowercase names enumerate the current closed guide-pass union in deterministic declaration order; the readonly element type rejects a value outside that union. This registry supplies pass admission and default capture ordering without putting runtime values in the pure-type interface, and names rendering modes rather than authored scenes or consumer-specific entries.
9
+ *
10
+ * The fixed registry chooses no processing algorithm. Pass validators and output planners share this module-owned array for the process lifetime; it retains six names without a renderer or captured frame.
11
+ */
12
+ export const AUTOMOVIE_GUIDE_PASSES: readonly AutoMovieGuidePass[] = [
13
+ "beauty",
14
+ "depth",
15
+ "mask",
16
+ "normal",
17
+ "outline",
18
+ "pose",
19
+ ];
@@ -0,0 +1,32 @@
1
+ /**
2
+ * One caption span: the output frames `[frameStart, frameEnd)` during which one beat's shot is live, with that beat's shot caption and enclosing scene slug.
3
+ *
4
+ * A guide-frame consumer, such as an external diffusion pass, can use the caption as the prompt for those frames and the slug as scene context. A null caption carries no prompt; this declaration does not choose a consumer's fallback behavior.
5
+ *
6
+ * @evidence contracts/development/design.md#principled-representation A half-open frame interval is the representation that lets consecutive spans share a boundary without overlap, so the spans tile the output frames exactly and slicing can clip them with `max` and `min`.
7
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The span repeats the `IAutoMovieBeatCaption` fields beside the beat id and range, so a consumer reads one flat record without a second lookup into the screenplay.
8
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts No field carries a consumer-specific default prompt; null caption and slug are left for the consumer to interpret.
9
+ * @evidence contracts/development/common.md#meaningful-documentation The prose gives the interval convention and how a consumer uses each field, and each member states its bound, its frame of reference, or its null cases.
10
+ */
11
+ export interface IAutoMovieCaptionEntry {
12
+ /**
13
+ * First output frame of the span, inclusive, counted from the start of the sidecar: the whole render, or the chunk after slicing.
14
+ */
15
+ frameStart: number;
16
+
17
+ /** One past the last output frame of the span, exclusive. */
18
+ frameEnd: number;
19
+
20
+ /** Id of the beat whose shot is live across the span. */
21
+ beat: string;
22
+
23
+ /**
24
+ * The beat node's shot caption, or null when the script has no tree or the beat authored none.
25
+ */
26
+ caption: string | null;
27
+
28
+ /**
29
+ * The enclosing scene's slug, `INT. LOCATION - TIMEOFDAY`, or null when the script has no tree or no scene encloses the beat.
30
+ */
31
+ slug: string | null;
32
+ }
@@ -0,0 +1,29 @@
1
+ import type { IAutoMovieCaptionEntry } from "./IAutoMovieCaptionEntry";
2
+
3
+ /**
4
+ * The per-beat caption track of one sequence render: the machine-readable sidecar a guide-frame consumer reads next to the captured frames.
5
+ *
6
+ * `planCaptionSidecar` produces it for the whole render, `sliceCaptionSidecar` re-bases it to one chunk, and `renderCaptionSidecar` serializes it.
7
+ *
8
+ * @evidence contracts/development/design.md#principled-representation Spans are addressed in output frames at the render's `fps`, the same integer clock the captured frame files use, so a consumer maps a span to files by index without time arithmetic.
9
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Four fields carry only what a consumer needs to place spans against frame files; the cut, shots and script stay with the planner.
10
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The `frameCount` is stated explicitly so a slice can refuse a window beyond coverage instead of inferring coverage from the last span.
11
+ * @evidence contracts/development/common.md#meaningful-documentation The prose names the producer, slicer and serializer; members state the frame clock, how `frameCount` is computed, and the tiling guarantee of `entries`.
12
+ */
13
+ export interface IAutoMovieCaptionSidecar {
14
+ /** Id of the sequence this sidecar captions. */
15
+ target: string;
16
+
17
+ /** Output frames per second the spans are addressed in. */
18
+ fps: number;
19
+
20
+ /**
21
+ * Total output frames covered: `round(runtime * fps)` for a whole render, or the window length after slicing.
22
+ */
23
+ frameCount: number;
24
+
25
+ /**
26
+ * Caption spans in play order, covering every frame in `[0, frameCount)` exactly once, with adjacent spans naming different beats.
27
+ */
28
+ entries: IAutoMovieCaptionEntry[];
29
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * One captured frame artifact.
3
+ *
4
+ * @evidence contracts/development/design.md#principled-representation A zero-based index, clip-local second and host-reported path identify one captured output without deriving its location from an encoder pattern.
5
+ * @evidence contracts/development/design.md#minimal-and-owned-surface This artifact element is shared by render result records instead of duplicating frame identity fields in each wrapper.
6
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts A captured path records the adapter's actual return value rather than a fixture filename or guessed frame location.
7
+ * @evidence contracts/development/common.md#meaningful-documentation Property comments state zero-based indexing, seconds and that the path belongs to the capture host.
8
+ */
9
+ export interface IAutoMovieCapturedFrame {
10
+ /**
11
+ * Zero-based frame index.
12
+ */
13
+ index: number;
14
+
15
+ /**
16
+ * Clip-local sample time in seconds.
17
+ */
18
+ timeSeconds: number;
19
+
20
+ /**
21
+ * Host path returned by `captureFrame`.
22
+ */
23
+ path: string;
24
+ }
@@ -0,0 +1,27 @@
1
+ import type { AutoMovieGuidePass } from "@automovie/interface";
2
+
3
+ /**
4
+ * Where one guide pass writes its frames inside a frame directory, as
5
+ * `planGuidePassOutputs` plans it.
6
+ *
7
+ * Paths join the frame directory and the default `png` five-digit frame name
8
+ * with `/`.
9
+ *
10
+ * @evidence contracts/development/design.md#principled-representation The record stores the first and last frame paths and the ffmpeg pattern, which are the three facts a capture writer and an encoder need to address one pass's sequence.
11
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Four plain fields per pass, with no frame list, because the pattern already addresses every frame between the first and last.
12
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts Every field is derived from the shared naming rule; nothing is special-cased per pass beyond the untagged beauty name.
13
+ * @evidence contracts/development/common.md#meaningful-documentation The doc names the producer and the path spelling, and each member states which frame or input it addresses.
14
+ */
15
+ export interface IAutoMovieGuidePassOutput {
16
+ /** The guide pass these paths belong to. */
17
+ pass: AutoMovieGuidePass;
18
+
19
+ /** Path of the pass's frame 0. */
20
+ firstFrame: string;
21
+
22
+ /** Path of the pass's last frame, numbered `frameCount - 1`. */
23
+ lastFrame: string;
24
+
25
+ /** Ffmpeg `-i` pattern matching every frame of the pass. */
26
+ inputPattern: string;
27
+ }
@@ -0,0 +1,39 @@
1
+ import type { IAutoMoviePoseKeypoint } from "@automovie/interface";
2
+
3
+ /**
4
+ * One performing actor's projected joints in one output frame of the
5
+ * pose-keypoint sidecar.
6
+ *
7
+ * `planPoseKeypointSidecar` writes one record per performance whose motion,
8
+ * skeleton and scene node resolve, in the shot's performance order. A
9
+ * pose-conditioned generator reads `keypoints` as the actor's skeleton on
10
+ * screen and `atmosphere`, when present, as how visible the actor is through
11
+ * the scene's fog.
12
+ *
13
+ * @evidence contracts/development/design.md#principled-representation The record keeps resolvePoseKeypoints output including joint order and off-frame flags, plus sceneFogTransmittance at the actor's root camera depth. That binary64 scalar predicts the viewer's fog law; GPU precision, per-joint depth variation, lighting and compositing prevent claiming exact captured-pixel agreement.
14
+ * @evidence contracts/development/design.md#minimal-and-owned-surface One record holds node identity, projected joints and an optional root-sampled atmosphere fraction. Per-joint fog is absent, so depth variation across an actor is an approximation rather than a proven negligible visual difference.
15
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts `atmosphere` is omitted rather than written as 1 or null for a scene without fog, so a sidecar of a fogless scene is byte-identical to one written before the field existed, and no consumer is special-cased.
16
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states who writes the record, which performances produce one and in what order, how a consumer reads each member, and each member states its meaning, range and absence.
17
+ */
18
+ export interface IAutoMoviePoseKeypointActor {
19
+ /** Id of the performing actor's scene node. */
20
+ node: string;
21
+
22
+ /**
23
+ * The actor's named joints projected to the frame, in
24
+ * `resolvePoseKeypoints` order, with off-frame joints flagged rather than
25
+ * clamped.
26
+ */
27
+ keypoints: IAutoMoviePoseKeypoint[];
28
+
29
+ /**
30
+ * Fraction of the actor's own color that survives the scene's fog at the
31
+ * camera depth of the actor's world root: 1 at the lens, falling toward 0
32
+ * with distance, from `sceneFogTransmittance` over the scene's fog.
33
+ *
34
+ * Screen coordinates alone do not say whether the subject standing there is
35
+ * fully visible or barely separable from the haze, so a pose-conditioned
36
+ * host reads this to know. Present only when the scene declares fog.
37
+ */
38
+ atmosphere?: number;
39
+ }
@@ -0,0 +1,28 @@
1
+ import type { IAutoMoviePoseKeypointActor } from "./IAutoMoviePoseKeypointActor";
2
+
3
+ /**
4
+ * One output frame of the pose-keypoint sidecar: the live beat and every
5
+ * performing actor's projected joints.
6
+ *
7
+ * Unlike the caption sidecar, which stores run-length spans because a caption
8
+ * holds for a whole shot, the pose sidecar stores every frame, because poses
9
+ * change every frame.
10
+ *
11
+ * @evidence contracts/development/design.md#principled-representation One record per output frame is the representation of a per-frame signal, and the frame index and beat are the same frame clock and shot-to-beat mapping the caption plan uses, so the two sidecars align frame for frame.
12
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The record holds only the frame index, the beat and the actor list; the clock itself lives once on the sidecar.
13
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts Missing scenes or cameras keep the frame with an empty actor list, while unresolved motion, node or skeleton references skip that actor. A missing timeline shot refuses during sequence planning rather than producing an invented frame.
14
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states what one record covers and why the sidecar is per frame rather than run-length, and each member states its meaning.
15
+ */
16
+ export interface IAutoMoviePoseKeypointFrame {
17
+ /** Output frame index, from 0, on the sidecar's `fps` clock. */
18
+ frame: number;
19
+
20
+ /**
21
+ * Id of the beat whose shot is live on this frame: the shot id without its
22
+ * `shot:` prefix, or the shot id itself when it has none.
23
+ */
24
+ beat: string;
25
+
26
+ /** Every resolvable performing actor's keypoints on this frame, possibly none. */
27
+ actors: IAutoMoviePoseKeypointActor[];
28
+ }
@@ -0,0 +1,25 @@
1
+ import type { IAutoMoviePoseKeypointFrame } from "./IAutoMoviePoseKeypointFrame";
2
+
3
+ /**
4
+ * The per-frame pose-keypoint sidecar of one sequence render: the machine-readable, OpenPose-style companion to the rendered `pose` guide pass, as the caption sidecar accompanies the beauty frames.
5
+ *
6
+ * A diffusion host can read it frame for frame to drive pose-conditioned (ControlNet) generation. `planPoseKeypointSidecar` builds it and `renderPoseKeypointSidecar` serializes it for the host to write; this declaration does not implement that external host.
7
+ *
8
+ * @evidence contracts/development/design.md#principled-representation The sidecar is addressed in output frames on the render's own clock, `round(runtime * fps)` frames at `i / fps`, the same schedule the render captures, so frame `i` of the sidecar describes frame `i` of the video.
9
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The record holds the target, the clock, the frame count and the frame list, nothing a consumer could not use, and the planner and serializer are separate so a host can inspect or slice before writing.
10
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts Every output frame has a record even when nothing resolves on it, and no host-specific field is added.
11
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states what the sidecar accompanies, who reads it and for what, who builds and serializes it, and each member states its unit and invariant.
12
+ */
13
+ export interface IAutoMoviePoseKeypointSidecar {
14
+ /** Id of the sequence the sidecar tracks. */
15
+ target: string;
16
+
17
+ /** Output frames per second the frames are addressed in, the render clock. */
18
+ fps: number;
19
+
20
+ /** Number of output frames, `round(runtime * fps)`, and of `frames`. */
21
+ frameCount: number;
22
+
23
+ /** One record per output frame, in play order, `frames[i].frame === i`. */
24
+ frames: IAutoMoviePoseKeypointFrame[];
25
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Host I/O for rendering a clip. Scheduling remains deterministic while the caller owns capture, encoding and cleanup of files, sessions and processes.
3
+ *
4
+ * @evidence contracts/development/design.md#principled-representation Separate asynchronous capture and encoding callbacks expose the two host effects while preserving clip-local seconds and frame naming at the capture boundary.
5
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The renderer-agnostic loop receives host I/O through this record so no browser, GPU or ffmpeg implementation enters scheduling.
6
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The callbacks are the supported injection seam, not replacements for a global or foreign method; their failures remain rejected promises.
7
+ * @evidence contracts/development/common.md#meaningful-documentation Members define clip-local seconds, zero-based index, destination directory, encoder arguments and returned written paths.
8
+ */
9
+ export interface IAutoMovieRenderAdapters {
10
+ /**
11
+ * Render the scene at clip-local `timeSeconds` and write frame `index` into `dir` under its {@link frameName}. Returns the written path.
12
+ *
13
+ * @evidence contracts/development/implementation.md#principled-implementation renderVideo supplies each scheduled clip-local second and zero-based index in order, awaiting this promise before the next capture. The host is responsible for drawing and writing the corresponding frame, and the returned path is reported without independent filesystem or pixel validation.
14
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Three scalar capture arguments keep scene and renderer ownership with the supplied host, separate from the deterministic schedule and later encoder call.
15
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts This declared effect seam supplies the host operation instead of replacing a global renderer; rejection stops renderVideo before encoding, and the signature supplies no synthetic-frame fallback.
16
+ * @evidence contracts/development/common.md#meaningful-documentation The member defines clip-local seconds, frame ordinal, destination directory and returned path; the host must honor those naming and timing inputs, and reporting a path alone does not prove a file was written.
17
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms This erased callback signature selects no drawing or filesystem algorithm. renderVideo owns its O(F) scheduling loop, and the concrete host owns each frame's capture and write costs.
18
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The signature shares no capture work; renderVideo requests distinct scheduled frames, while the host must establish equivalence before reusing any rendered data or effect.
19
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources This erased member opens no session or file. The supplied capture implementation owns its drawing resources and written files, including cleanup after rejection; renderVideo retains the reported path in caller-owned result metadata and has no host cleanup capability.
20
+ */
21
+ captureFrame: (
22
+ timeSeconds: number,
23
+ index: number,
24
+ dir: string,
25
+ ) => Promise<string>;
26
+
27
+ /**
28
+ * Run ffmpeg with `args` (from {@link ffmpegArgs}); resolve with `outputPath`.
29
+ *
30
+ * @evidence contracts/development/implementation.md#principled-implementation renderVideo calls this capability once after every capture succeeds, supplying ffmpegArgs' planned argument vector and destination. The host owns actual encoding and must return its written output path; the orchestrator neither starts ffmpeg itself nor verifies the resulting container.
31
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Encoding is a separate asynchronous effect from frame capture, so the scheduling loop can await one host result without owning an encoder implementation.
32
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The host callback is the declared process seam; a rejected encode propagates rather than becoming a successful artifact, and no destination or argument vector selects a fixture result.
33
+ * @evidence contracts/development/common.md#meaningful-documentation The member states the planned encoder arguments and requested output path. Implementations must preserve those inputs while encoding; returning a string does not prove container or pixel correctness.
34
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms This erased encoder signature chooses no codec algorithm. The concrete implementation owns input-frame reading, codec work and output writing; renderVideo merely awaits one call.
35
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The signature coordinates no encoder cache; a host cannot equate encoding effects solely by destination name, and renderVideo invokes this capability once per render attempt.
36
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources This erased member launches no process or output stream. The host owns encoder resources and cleanup on success or rejection, while renderVideo retains its reported output path and argument array in caller-owned metadata.
37
+ */
38
+ encode: (args: string[], outputPath: string) => Promise<string>;
39
+ }
@@ -0,0 +1,38 @@
1
+ import { IAutoMovieRenderSpec } from "@automovie/interface";
2
+
3
+ import { IAutoMovieRenderAdapters } from "./IAutoMovieRenderAdapters";
4
+
5
+ /**
6
+ * Host-supplied request for rendering a clip and returning inspectable artifacts.
7
+ *
8
+ * @evidence contracts/development/design.md#principled-representation The request couples one render spec and duration in seconds with explicit host paths and adapters, providing all inputs the clip orchestration needs.
9
+ * @evidence contracts/development/design.md#minimal-and-owned-surface A single request object groups clip rendering and artifact metadata inputs at the agent-facing boundary.
10
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts Host effects enter through the declared adapters rather than source-specific branches or process-global replacements.
11
+ * @evidence contracts/development/common.md#meaningful-documentation Members identify seconds, requested video path, frame directory and host ownership of capture and encoding.
12
+ */
13
+ export interface IAutoMovieRenderAndSeeRequest {
14
+ /**
15
+ * Render spec for the target shot or sequence.
16
+ */
17
+ spec: IAutoMovieRenderSpec;
18
+
19
+ /**
20
+ * Target duration in seconds.
21
+ */
22
+ durationSeconds: number;
23
+
24
+ /**
25
+ * Directory where captured frames are written.
26
+ */
27
+ frameDir: string;
28
+
29
+ /**
30
+ * Requested encoded video path.
31
+ */
32
+ outputPath: string;
33
+
34
+ /**
35
+ * Capture and encode adapters owned by the host.
36
+ */
37
+ adapters: IAutoMovieRenderAdapters;
38
+ }
@@ -0,0 +1,23 @@
1
+ import { IAutoMovieRenderSpec } from "@automovie/interface";
2
+
3
+ import { IAutoMovieRenderResult } from "./IAutoMovieRenderResult";
4
+
5
+ /**
6
+ * JSON-friendly render artifact returned to an agent or host.
7
+ *
8
+ * @evidence contracts/development/design.md#principled-representation Extending the clip outcome adds the requested duration and a shallow spec snapshot without altering captured frame identity.
9
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The inheritance keeps encoded paths and frame metadata in the existing render result while this envelope owns inspection inputs.
10
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The artifact records the supplied duration rather than inferring authored runtime from the encoder's output.
11
+ * @evidence contracts/development/common.md#meaningful-documentation Its added properties state the capture spec and requested seconds, while inherited result members define paths and frame metadata.
12
+ */
13
+ export interface IAutoMovieRenderAndSeeResult extends IAutoMovieRenderResult {
14
+ /**
15
+ * Render spec snapshot used for the capture.
16
+ */
17
+ spec: IAutoMovieRenderSpec;
18
+
19
+ /**
20
+ * Target duration in seconds.
21
+ */
22
+ durationSeconds: number;
23
+ }