@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,24 @@
1
+ /**
2
+ * The plan for stitching encoded chunk videos back into one video with ffmpeg's concat demuxer and stream copy.
3
+ *
4
+ * The host writes `concatListLines` to `concatListPath` and runs ffmpeg with `ffmpegArgs`. The list holds chunk basenames because the demuxer resolves a relative entry against the list file's directory, which is also the chunk outputs' directory. Successful stream-copy concatenation requires the host's actual encoded streams to be compatible; a planned argument vector alone does not prove that condition.
5
+ *
6
+ * @evidence contracts/development/design.md#principled-representation The concat demuxer and stream-copy arguments request joining without re-encoding, under the host's premise that actual chunk streams have compatible parameters. The planner supplies one render spec for their argument vectors but does not inspect encoded bytes here; basename entries resolve relative to the list file's directory.
7
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The plan gives the list path, its exact lines and the argument vector, so the host only writes one file and spawns one process with no path logic of its own.
8
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts `-safe 0` is ffmpeg's documented switch for accepting arbitrary entry names, needed because chunk basenames may contain characters the safe mode rejects, and no output name is special-cased.
9
+ * @evidence contracts/development/common.md#meaningful-documentation The prose states the host's two steps and why entries are basenames; members state order, the line format and that the arguments copy streams.
10
+ */
11
+ export interface IAutoMovieRenderReassembly {
12
+ /** Final video path, the whole plan's `outputPath`. */
13
+ outputPath: string;
14
+ /** Chunk output video paths, in play order. */
15
+ chunkOutputs: string[];
16
+ /** Path of the concat-demuxer list file the host writes, beside the output. */
17
+ concatListPath: string;
18
+ /**
19
+ * Lines of that list, `file '<basename>'` with each apostrophe escaped, in play order.
20
+ */
21
+ concatListLines: string[];
22
+ /** Ffmpeg argument vector that concatenates the chunk videos with stream copy. */
23
+ ffmpegArgs: string[];
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieRenderReassembly.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieRenderReassembly.js","sourceRoot":"","sources":["../src/IAutoMovieRenderReassembly.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ import type { IAutoMovieCapturedFrame } from "./IAutoMovieCapturedFrame";
2
+ /**
3
+ * The outcome of a render: encoded video plus frame metadata an agent can inspect without inferring paths from the ffmpeg pattern.
4
+ *
5
+ * @evidence contracts/development/design.md#principled-representation The encoded output path is accompanied by the half-open sample schedule and frame records, retaining encode order and the exact encoder argument vector.
6
+ * @evidence contracts/development/design.md#minimal-and-owned-surface One result envelope supplies both direct clip rendering and the inspectable render wrapper without another path inference layer.
7
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The result exposes host-returned output and frame paths; its type makes no claim that an encoder succeeded beyond the callback outcome.
8
+ * @evidence contracts/development/common.md#meaningful-documentation Members explain seconds, frame ordering, directory, input pattern and the distinction between adapter output and requested paths.
9
+ */
10
+ export interface IAutoMovieRenderResult {
11
+ /**
12
+ * Path to the encoded video (the adapter's `encode` output).
13
+ */
14
+ output: string;
15
+ /**
16
+ * Number of frames captured and encoded.
17
+ */
18
+ frameCount: number;
19
+ /**
20
+ * The clip-local sample instants, one per frame (`t = i / fps`).
21
+ */
22
+ times: number[];
23
+ /**
24
+ * Captured frame artifacts in encode order.
25
+ */
26
+ frames: IAutoMovieCapturedFrame[];
27
+ /**
28
+ * Directory passed to each `captureFrame` call.
29
+ */
30
+ frameDir: string;
31
+ /**
32
+ * Ffmpeg input pattern used to encode the frame sequence.
33
+ */
34
+ inputPattern: string;
35
+ /**
36
+ * Exact ffmpeg argument vector handed to the encode adapter.
37
+ */
38
+ ffmpegArgs: string[];
39
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieRenderResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieRenderResult.js","sourceRoot":"","sources":["../src/IAutoMovieRenderResult.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import { IAutoMovieSequenceRenderFrame } from "./IAutoMovieSequenceRenderFrame";
2
+ import { IAutoMovieSequenceRenderPlan } from "./IAutoMovieSequenceRenderPlan";
3
+ /**
4
+ * Host I/O for sequence rendering. The capture adapter receives the resolved sequence frame sample, including the live shot local time and optional outgoing blend tail; drawing pixels remains the host's job.
5
+ *
6
+ * @evidence contracts/development/design.md#principled-representation Sequence capture receives the fully resolved frame and the same manifest used for encoding, including outgoing blend tails.
7
+ * @evidence contracts/development/design.md#minimal-and-owned-surface These callbacks separate host drawing and encoder effects from deterministic sequence playback resolution.
8
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The declared callbacks are public host seams and do not replace renderer globals or hidden engine state.
9
+ * @evidence contracts/development/common.md#meaningful-documentation Capture returns the actual written frame path and encode returns the actual video path, with all frame timing supplied by the plan.
10
+ */
11
+ export interface IAutoMovieSequenceRenderAdapters {
12
+ /**
13
+ * Capture one resolved sequence frame and return the written frame path.
14
+ *
15
+ * @evidence contracts/development/implementation.md#principled-implementation renderSequenceVideo passes each prepared frame and the same sequence manifest, awaiting capture in plan order. The frame includes shot-local timing and any outgoing blend tail; the host draws those inputs and returns its reported written path without an independent pixel or filesystem check here.
16
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One resolved frame plus its shared manifest exposes sequence semantics without moving cut resolution or playback arithmetic into this callback declaration.
17
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The supplied capture operation is the declared host seam; rejection stops execution before encoding, with no missing-shot fallback or fabricated successful frame.
18
+ * @evidence contracts/development/common.md#meaningful-documentation The member identifies a resolved frame, shared manifest and reported destination. Implementations must keep these shared plan inputs stable during rendering and honor the frame's shot and blend semantics; the returned path alone does not prove capture.
19
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms This erased signature selects no scene or blend rendering algorithm. renderSequenceVideo owns O(F) scheduling and shallow metadata copies; the host owns actual per-frame drawing and writing cost.
20
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The declaration coordinates no capture cache. The orchestration shares one unchanged manifest across calls, while each scheduled capture remains a distinct host effect whose reuse needs host-specific equivalence.
21
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources This erased member acquires no drawing session or file. The concrete host owns capture resources and failure cleanup; renderSequenceVideo preserves supplied sample fields with the reported path in its caller-owned result records.
22
+ */
23
+ captureFrame: (frame: IAutoMovieSequenceRenderFrame, plan: IAutoMovieSequenceRenderPlan) => Promise<string>;
24
+ /**
25
+ * Encode the captured frame sequence and return the encoded output path.
26
+ *
27
+ * @evidence contracts/development/implementation.md#principled-implementation renderSequenceVideo invokes this capability once after all prepared frames capture successfully, passing the manifest's exact ffmpegArgs and outputPath. The host performs encoding and returns its reported output, whose container and pixels are not independently validated by this orchestration.
28
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One encoder promise consumes planned sequence arguments, leaving manifest construction with planSequenceRender and actual codec execution with the host.
29
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts This public effect seam does not replace a global encoder. Its rejection propagates, and sequence identity or output naming cannot turn an unencoded result into successful orchestration metadata.
30
+ * @evidence contracts/development/common.md#meaningful-documentation The member states captured-sequence encoding and returned destination; the host must keep shared manifest arguments stable and complete encoding before resolving, while this signature cannot prove actual output bytes.
31
+ * @evidenceExclude contracts/development/implementation.md#efficient-algorithms This erased member chooses no encoder algorithm. Input frame reads, compression and output writes belong to the concrete host; renderSequenceVideo only schedules and awaits one encode call.
32
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The signature coordinates no shared encoding work; the host needs complete input and encoding equivalence before reuse, and the sequence orchestrator performs one encode per attempt.
33
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources This erased member opens no process or stream. The host owns encoder lifetime and cleanup on completion or rejection; the orchestrator returns the reported path alongside the shared manifest and caller-owned frame metadata.
34
+ */
35
+ encode: (args: string[], outputPath: string) => Promise<string>;
36
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieSequenceRenderAdapters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieSequenceRenderAdapters.js","sourceRoot":"","sources":["../src/IAutoMovieSequenceRenderAdapters.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import { IAutoMovieRenderSpec, IAutoMovieSequence, IAutoMovieShot } from "@automovie/interface";
2
+ import type { IAutoMovieSequenceRenderAdapters } from "./IAutoMovieSequenceRenderAdapters";
3
+ /**
4
+ * Host-supplied request for building a sequence manifest and rendering it.
5
+ *
6
+ * @evidence contracts/development/design.md#principled-representation A committed sequence, its shots and a render spec provide the editorial and output inputs, while paths and adapters identify host execution effects.
7
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The agent-facing request groups planning inputs and capture ownership without embedding a renderer in the cut representation.
8
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The target-equality contract prevents rendering an unrelated sequence under a different target identity.
9
+ * @evidence contracts/development/common.md#meaningful-documentation Properties name committed shot references, target equality, frame and video destinations and host-owned adapters.
10
+ */
11
+ export interface IAutoMovieSequenceRenderAndSeeRequest {
12
+ /**
13
+ * Sequence being rendered.
14
+ */
15
+ sequence: IAutoMovieSequence;
16
+ /**
17
+ * Committed shots referenced by the sequence.
18
+ */
19
+ shots: IAutoMovieShot[];
20
+ /**
21
+ * Render parameters whose target must equal `sequence.id`.
22
+ */
23
+ spec: IAutoMovieRenderSpec;
24
+ /**
25
+ * Directory where captured frames are written.
26
+ */
27
+ frameDir: string;
28
+ /**
29
+ * Requested encoded video path.
30
+ */
31
+ outputPath: string;
32
+ /**
33
+ * Capture and encode adapters owned by the host.
34
+ */
35
+ adapters: IAutoMovieSequenceRenderAdapters;
36
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieSequenceRenderAndSeeRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieSequenceRenderAndSeeRequest.js","sourceRoot":"","sources":["../src/IAutoMovieSequenceRenderAndSeeRequest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { IAutoMovieRenderSpec } from "@automovie/interface";
2
+ import type { IAutoMovieSequenceRenderResult } from "./IAutoMovieSequenceRenderResult";
3
+ /**
4
+ * JSON-friendly sequence render artifact.
5
+ *
6
+ * @evidence contracts/development/design.md#principled-representation The sequence outcome adds a shallow render-spec snapshot and the authored sequence id and fps so output sampling remains distinguishable from editorial intent.
7
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The wrapper extends executed sequence metadata rather than redefining capture records or plan fields.
8
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The sequence snapshot reports authored fps even when the output spec requests a different sampling rate.
9
+ * @evidence contracts/development/common.md#meaningful-documentation Added member comments name the render spec snapshot and sequence identity with authored fps; inherited members define captured artifacts.
10
+ */
11
+ export interface IAutoMovieSequenceRenderAndSeeResult extends IAutoMovieSequenceRenderResult {
12
+ /**
13
+ * Render spec snapshot used for the sequence render.
14
+ */
15
+ spec: IAutoMovieRenderSpec;
16
+ /**
17
+ * Sequence identity and authored fps snapshot.
18
+ */
19
+ sequence: {
20
+ id: string;
21
+ fps: number;
22
+ };
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieSequenceRenderAndSeeResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieSequenceRenderAndSeeResult.js","sourceRoot":"","sources":["../src/IAutoMovieSequenceRenderAndSeeResult.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A sequence frame sample ready for a render host.
3
+ *
4
+ * @evidence contracts/development/design.md#principled-representation One output index and global sample time resolve to a shot-local time and an optional outgoing tail with incoming blend weight.
5
+ * @evidence contracts/development/design.md#minimal-and-owned-surface This record carries the engine-resolved playback decision directly to capture, keeping editorial logic out of host adapters.
6
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts A hard cut is explicitly null rather than a manufactured blend, and outgoing samples preserve their own shot identity and local second.
7
+ * @evidence contracts/development/common.md#meaningful-documentation Properties specify zero-based indexing, global and local seconds, destination path, null hard cuts and incoming alpha in the half-open unit interval.
8
+ */
9
+ export interface IAutoMovieSequenceRenderFrame {
10
+ /**
11
+ * Zero-based output frame index.
12
+ */
13
+ index: number;
14
+ /**
15
+ * Global output sample time in seconds.
16
+ */
17
+ timeSeconds: number;
18
+ /**
19
+ * Frame path that the capture host should write.
20
+ */
21
+ path: string;
22
+ /**
23
+ * Live shot id at this output frame.
24
+ */
25
+ shot: string;
26
+ /**
27
+ * Live shot-local time in seconds.
28
+ */
29
+ shotTimeSeconds: number;
30
+ /**
31
+ * Outgoing tail blended into this frame, or `null` for a hard cut.
32
+ */
33
+ blend: {
34
+ /** Outgoing shot id. */
35
+ shot: string;
36
+ /** Outgoing shot-local time in seconds. */
37
+ shotTimeSeconds: number;
38
+ /** Incoming weight in `[0, 1)`. */
39
+ alpha: number;
40
+ } | null;
41
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieSequenceRenderFrame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieSequenceRenderFrame.js","sourceRoot":"","sources":["../src/IAutoMovieSequenceRenderFrame.ts"],"names":[],"mappings":""}
@@ -0,0 +1,76 @@
1
+ import type { IAutoMovieSequenceRenderFrame } from "./IAutoMovieSequenceRenderFrame";
2
+ import type { IAutoMovieSequenceRenderShotSpan } from "./IAutoMovieSequenceRenderShotSpan";
3
+ import type { IAutoMovieSequenceRenderTransitionSpan } from "./IAutoMovieSequenceRenderTransitionSpan";
4
+ /**
5
+ * Public sequence render manifest: editorial timeline, transition spans, frame samples, output paths, and encoder args in one deterministic artifact.
6
+ *
7
+ * @evidence contracts/development/design.md#principled-representation The manifest binds a sequence target to editorial and output fps, resolved spans, exact sample metadata, paths and encoding arguments from one planning call.
8
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Captures consume one complete manifest rather than independently deriving frame names, transitions and local shot times.
9
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The record preserves both frame clocks instead of pretending a render fps override changes the authored cut.
10
+ * @evidence contracts/development/common.md#meaningful-documentation Members document seconds, fps roles, encode ordering, first and last paths and the shared ffmpeg argument vector.
11
+ */
12
+ export interface IAutoMovieSequenceRenderPlan {
13
+ /**
14
+ * Render target identity.
15
+ */
16
+ target: {
17
+ kind: "sequence";
18
+ id: string;
19
+ };
20
+ /**
21
+ * Sequence fps as authored by the cut.
22
+ */
23
+ sequenceFps: number;
24
+ /**
25
+ * Output fps from the render spec.
26
+ */
27
+ renderFps: number;
28
+ /**
29
+ * Total output seconds after transition overlaps are subtracted.
30
+ */
31
+ durationSeconds: number;
32
+ /**
33
+ * Number of output frames.
34
+ */
35
+ frameCount: number;
36
+ /**
37
+ * Global output sample times, one per frame.
38
+ */
39
+ times: number[];
40
+ /**
41
+ * Shot spans on the output clock.
42
+ */
43
+ shots: IAutoMovieSequenceRenderShotSpan[];
44
+ /**
45
+ * Incoming transition spans on the output clock.
46
+ */
47
+ transitionSpans: IAutoMovieSequenceRenderTransitionSpan[];
48
+ /**
49
+ * Frame samples in capture order.
50
+ */
51
+ frames: IAutoMovieSequenceRenderFrame[];
52
+ /**
53
+ * Directory where frame files should be written.
54
+ */
55
+ frameDir: string;
56
+ /**
57
+ * First output frame path.
58
+ */
59
+ firstFrame: string;
60
+ /**
61
+ * Last output frame path.
62
+ */
63
+ lastFrame: string;
64
+ /**
65
+ * Ffmpeg input pattern for the frame sequence.
66
+ */
67
+ inputPattern: string;
68
+ /**
69
+ * Encoded video output path.
70
+ */
71
+ outputPath: string;
72
+ /**
73
+ * Exact ffmpeg argument vector for the encoded output.
74
+ */
75
+ ffmpegArgs: string[];
76
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieSequenceRenderPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieSequenceRenderPlan.js","sourceRoot":"","sources":["../src/IAutoMovieSequenceRenderPlan.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ import { IAutoMovieSequenceRenderFrame } from "./IAutoMovieSequenceRenderFrame";
2
+ import { IAutoMovieSequenceRenderPlan } from "./IAutoMovieSequenceRenderPlan";
3
+ /**
4
+ * The outcome of rendering a sequence through injected host I/O.
5
+ *
6
+ * @evidence contracts/development/design.md#principled-representation The result records captured samples in encode order alongside the executed manifest, schedule and actual encoded path.
7
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Keeping the exact plan with captured frames lets inspection compare intended sequence samples with host-returned artifacts.
8
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts Frame paths are capture results and the output is the encoder result; neither is guessed from a fixture or inferred pattern.
9
+ * @evidence contracts/development/common.md#meaningful-documentation Members distinguish global sample seconds, capture-order records, input pattern, directory and exact encoder arguments.
10
+ */
11
+ export interface IAutoMovieSequenceRenderResult {
12
+ /**
13
+ * Path to the encoded video.
14
+ */
15
+ output: string;
16
+ /**
17
+ * Number of captured frames.
18
+ */
19
+ frameCount: number;
20
+ /**
21
+ * Global output sample times.
22
+ */
23
+ times: number[];
24
+ /**
25
+ * Captured frame samples in encode order.
26
+ */
27
+ frames: IAutoMovieSequenceRenderFrame[];
28
+ /**
29
+ * Directory passed through the manifest for frame files.
30
+ */
31
+ frameDir: string;
32
+ /**
33
+ * Ffmpeg input pattern for the captured frame sequence.
34
+ */
35
+ inputPattern: string;
36
+ /**
37
+ * Exact ffmpeg argument vector handed to the encode adapter.
38
+ */
39
+ ffmpegArgs: string[];
40
+ /**
41
+ * The deterministic sequence manifest that drove capture.
42
+ */
43
+ plan: IAutoMovieSequenceRenderPlan;
44
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieSequenceRenderResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieSequenceRenderResult.js","sourceRoot":"","sources":["../src/IAutoMovieSequenceRenderResult.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ import { IAutoMovieTrim } from "@automovie/interface";
2
+ /**
3
+ * A shot entry resolved onto the sequence output clock.
4
+ *
5
+ * @evidence contracts/development/design.md#principled-representation An entry index joins a committed shot to its global start and end, played length and source offset in seconds, preserving the authored trim.
6
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The manifest exposes shot timing in one span record so capture hosts need not recompute sequence trim arithmetic.
7
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The span records engine-resolved timing and authored trim without supplying a replacement shot or consumer-specific duration.
8
+ * @evidence contracts/development/common.md#meaningful-documentation Member documentation distinguishes global seconds, source-local seconds, entry indexing and nullable authored trim.
9
+ */
10
+ export interface IAutoMovieSequenceRenderShotSpan {
11
+ /**
12
+ * Index into `sequence.shots`.
13
+ */
14
+ entry: number;
15
+ /**
16
+ * Shot id played by this entry.
17
+ */
18
+ shot: string;
19
+ /**
20
+ * Global output second where the entry starts.
21
+ */
22
+ start: number;
23
+ /**
24
+ * Global output second where the entry ends.
25
+ */
26
+ end: number;
27
+ /**
28
+ * Seconds of the source shot that this entry plays.
29
+ */
30
+ played: number;
31
+ /**
32
+ * Source shot-local second where playback begins.
33
+ */
34
+ offset: number;
35
+ /**
36
+ * Trim copied from the sequence entry.
37
+ */
38
+ trim: IAutoMovieTrim | null;
39
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieSequenceRenderShotSpan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieSequenceRenderShotSpan.js","sourceRoot":"","sources":["../src/IAutoMovieSequenceRenderShotSpan.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ import { IAutoMovieTransition } from "@automovie/interface";
2
+ /**
3
+ * Incoming transition span on the output clock.
4
+ *
5
+ * @evidence contracts/development/design.md#principled-representation An incoming entry identifies the outgoing and incoming shots and one transition interval on the global output clock.
6
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The manifest names transition timing independently from sampled blend weights because hosts may inspect editorial spans without visiting every frame.
7
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts Transition kind and duration are the authored values resolved by the timeline, with no shot-name exception.
8
+ * @evidence contracts/development/common.md#meaningful-documentation Members state incoming entry indexing, endpoints, kind and the start, end and overlap duration in seconds.
9
+ */
10
+ export interface IAutoMovieSequenceRenderTransitionSpan {
11
+ /**
12
+ * Index of the incoming entry in `sequence.shots`.
13
+ */
14
+ entry: number;
15
+ /**
16
+ * Outgoing shot id.
17
+ */
18
+ from: string;
19
+ /**
20
+ * Incoming shot id.
21
+ */
22
+ to: string;
23
+ /**
24
+ * Transition style copied from the sequence entry.
25
+ */
26
+ kind: IAutoMovieTransition["kind"];
27
+ /**
28
+ * Global output second where the transition begins.
29
+ */
30
+ start: number;
31
+ /**
32
+ * Global output second where the transition ends.
33
+ */
34
+ end: number;
35
+ /**
36
+ * Transition overlap duration in seconds.
37
+ */
38
+ duration: number;
39
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieSequenceRenderTransitionSpan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieSequenceRenderTransitionSpan.js","sourceRoot":"","sources":["../src/IAutoMovieSequenceRenderTransitionSpan.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Encode two equally long normalized channels as a canonical 44-byte-header
3
+ * RIFF/WAVE file of 16-bit little-endian PCM stereo. Each sample is
4
+ * quantized by `round(x * 32767)` for nonnegative and `round(x * 32768)` for
5
+ * negative amplitudes, the inverse of the 1/32768 decode scale up to
6
+ * rounding; a nonfinite or out-of-range amplitude is refused rather than
7
+ * clipped. Deterministic: equal channels give equal bytes.
8
+ *
9
+ * @param left Left channel, amplitudes in [-1, 1].
10
+ * @param right Right channel, the same length.
11
+ * @param sampleRate Samples per second, a positive safe integer.
12
+ * @returns The file bytes.
13
+ * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Encode two equally long normalized channels as a canonical 44-byte-header RIFF/WAVE file of 16-bit little-endian PCM stereo) and documents parameters `left`, `right`, `sampleRate`, the returned value as stated in this comment.
14
+ * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Encode two equally long normalized channels as a canonical 44-byte-header RIFF/WAVE file of 16-bit little-endian PCM stereo) directly over its typed inputs (`left`, `right`, `sampleRate`) as nested iteration of depth 2 (for loop bounded by k < text.length; for loop bounded by k < left.length; for loop bounded by channel < 2), delegating to `Number.isSafeInteger`, `text.charCodeAt`, `tag`, `view.setUint32`, `view.setUint16`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (2 throw sites). Beyond structural 0, 1 and 2 the body uses the literals 4294967295, 36, 4, 44, 8, whose basis this answer does not independently establish and a reviewer must confirm.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 41 lines and 19 top-level statements that reuses `Number.isSafeInteger`, `text.charCodeAt`, `tag`, `view.setUint32`, `view.setUint16` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The body contains 0 `any`, 0 type assertion(s), 1 non-null assertion(s); these are the remaining shortcuts and are not justified here.
17
+ * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `left`, `right`, `sampleRate`; the dominant cost is nested iteration of depth 2 (for loop bounded by k < text.length; for loop bounded by k < left.length; for loop bounded by channel < 2), performed once per call with 4 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
18
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
19
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 4 allocation sites become the returned value or die with the call, so nothing grows.
20
+ */
21
+ export declare function encodeAutoMovieWavPcm16(left: Float32Array, right: Float32Array, sampleRate: number): Uint8Array;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.encodeAutoMovieWavPcm16 = encodeAutoMovieWavPcm16;
4
+ /**
5
+ * Encode two equally long normalized channels as a canonical 44-byte-header
6
+ * RIFF/WAVE file of 16-bit little-endian PCM stereo. Each sample is
7
+ * quantized by `round(x * 32767)` for nonnegative and `round(x * 32768)` for
8
+ * negative amplitudes, the inverse of the 1/32768 decode scale up to
9
+ * rounding; a nonfinite or out-of-range amplitude is refused rather than
10
+ * clipped. Deterministic: equal channels give equal bytes.
11
+ *
12
+ * @param left Left channel, amplitudes in [-1, 1].
13
+ * @param right Right channel, the same length.
14
+ * @param sampleRate Samples per second, a positive safe integer.
15
+ * @returns The file bytes.
16
+ * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Encode two equally long normalized channels as a canonical 44-byte-header RIFF/WAVE file of 16-bit little-endian PCM stereo) and documents parameters `left`, `right`, `sampleRate`, the returned value as stated in this comment.
17
+ * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Encode two equally long normalized channels as a canonical 44-byte-header RIFF/WAVE file of 16-bit little-endian PCM stereo) directly over its typed inputs (`left`, `right`, `sampleRate`) as nested iteration of depth 2 (for loop bounded by k < text.length; for loop bounded by k < left.length; for loop bounded by channel < 2), delegating to `Number.isSafeInteger`, `text.charCodeAt`, `tag`, `view.setUint32`, `view.setUint16`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (2 throw sites). Beyond structural 0, 1 and 2 the body uses the literals 4294967295, 36, 4, 44, 8, whose basis this answer does not independently establish and a reviewer must confirm.
18
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 41 lines and 19 top-level statements that reuses `Number.isSafeInteger`, `text.charCodeAt`, `tag`, `view.setUint32`, `view.setUint16` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
19
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The body contains 0 `any`, 0 type assertion(s), 1 non-null assertion(s); these are the remaining shortcuts and are not justified here.
20
+ * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `left`, `right`, `sampleRate`; the dominant cost is nested iteration of depth 2 (for loop bounded by k < text.length; for loop bounded by k < left.length; for loop bounded by channel < 2), performed once per call with 4 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
21
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
22
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 4 allocation sites become the returned value or die with the call, so nothing grows.
23
+ */
24
+ function encodeAutoMovieWavPcm16(left, right, sampleRate) {
25
+ if (left.length === 0 ||
26
+ left.length !== right.length ||
27
+ left.length > (0xffffffff - 36) / 4 ||
28
+ !Number.isSafeInteger(sampleRate) ||
29
+ sampleRate <= 0)
30
+ throw new Error("Invalid stereo PCM length or rate");
31
+ const bytes = new Uint8Array(44 + left.length * 4);
32
+ const view = new DataView(bytes.buffer);
33
+ const tag = (at, text) => {
34
+ for (let k = 0; k < text.length; k++)
35
+ bytes[at + k] = text.charCodeAt(k);
36
+ };
37
+ tag(0, "RIFF");
38
+ view.setUint32(4, bytes.length - 8, true);
39
+ tag(8, "WAVE");
40
+ tag(12, "fmt ");
41
+ view.setUint32(16, 16, true);
42
+ view.setUint16(20, 1, true);
43
+ view.setUint16(22, 2, true);
44
+ view.setUint32(24, sampleRate, true);
45
+ view.setUint32(28, sampleRate * 4, true);
46
+ view.setUint16(32, 4, true);
47
+ view.setUint16(34, 16, true);
48
+ tag(36, "data");
49
+ view.setUint32(40, left.length * 4, true);
50
+ for (let k = 0; k < left.length; k++)
51
+ for (let channel = 0; channel < 2; channel++) {
52
+ const x = (channel === 0 ? left : right)[k];
53
+ if (!Number.isFinite(x) || Math.abs(x) > 1)
54
+ throw new Error(`PCM amplitude ${x} at frame ${k}, channel ${channel}`);
55
+ view.setInt16(44 + 4 * k + 2 * channel, Math.round(x * (x < 0 ? 32768 : 32767)), true);
56
+ }
57
+ return bytes;
58
+ }
59
+ //# sourceMappingURL=encodeAutoMovieWavPcm16.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeAutoMovieWavPcm16.js","sourceRoot":"","sources":["../../src/audio/encodeAutoMovieWavPcm16.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iCACE,IAAkB,EAClB,KAAmB,EACnB,UAAkB;IAElB,IACE,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAC5B,IAAI,CAAC,MAAM,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC,GAAG,CAAC;QACnC,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC;QACjC,UAAU,IAAI,CAAC;QAEf,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,MAAM,KAAK,GAAe,IAAI,UAAU,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAa,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,CAAC,EAAU,EAAE,IAAY,EAAQ,EAAE;QAC7C,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE;YAC1C,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC;IACF,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACf,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IAC1C,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACf,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IAChB,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IACrC,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,UAAU,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC7B,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IAChB,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IAC1C,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE;QAC1C,KAAK,IAAI,OAAO,GAAW,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;YACrD,MAAM,CAAC,GAAW,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,CAAC;YACrD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxC,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,aAAa,OAAO,EAAE,CAAC,CAAC;YAC1E,IAAI,CAAC,QAAQ,CACX,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,OAAO,EACxB,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EACvC,IAAI,CACL,CAAC;QACJ,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./encodeAutoMovieWavPcm16";
2
+ export * from "./mixAutoMovieAudioPcm";
@@ -0,0 +1,19 @@
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("./encodeAutoMovieWavPcm16"), exports);
18
+ __exportStar(require("./mixAutoMovieAudioPcm"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/audio/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,yDAAuC"}