@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 @@
1
+ {"version":3,"file":"parseAutoMovieCaptionLanguage.js","sourceRoot":"","sources":["../../src/caption/parseAutoMovieCaptionLanguage.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Serialize one authored caption as a WebVTT cue payload.
3
+ *
4
+ * The caption is canonicalized first, so the payload shows exactly the lines
5
+ * readability measured. Each line is escaped, and an empty line becomes the
6
+ * empty class span `<c></c>`, which keeps a visible line without writing a
7
+ * blank line that would end the cue block.
8
+ *
9
+ * @evidence contracts/development/implementation.md#principled-implementation WebVTT ends a cue at the first empty line, and an empty `<c>` span renders no text, so replacing only empty lines with it preserves the line structure while every other line is escaped with the WebVTT character references.
10
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Normalization belongs to `canonicalizeAutoMovieCaptionText` and escaping to `escapeWebVttText`; this function adds only the per-line blank-line rule that applies to payloads alone.
11
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `<c></c>` span is the WebVTT class span used for its specified empty rendering, not a marker any reader recognizes, and no caption is special-cased.
12
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the canonicalization it applies, the escape, and why an empty line becomes an empty class span.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms Normalization, split, per-line escape and join are each linear in the caption length, so a caption of L characters costs O(L) time and space.
14
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure per-caption serialization shares no work across calls or consumers.
15
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The intermediate line array is released on return, and the function keeps no state, handle or task.
16
+ */
17
+ export declare const serializeAutoMovieWebVttCueText: (value: string) => string;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeAutoMovieWebVttCueText = void 0;
4
+ const canonicalizeAutoMovieCaptionText_1 = require("./canonicalizeAutoMovieCaptionText");
5
+ const escapeWebVttText_1 = require("./escapeWebVttText");
6
+ /**
7
+ * Serialize one authored caption as a WebVTT cue payload.
8
+ *
9
+ * The caption is canonicalized first, so the payload shows exactly the lines
10
+ * readability measured. Each line is escaped, and an empty line becomes the
11
+ * empty class span `<c></c>`, which keeps a visible line without writing a
12
+ * blank line that would end the cue block.
13
+ *
14
+ * @evidence contracts/development/implementation.md#principled-implementation WebVTT ends a cue at the first empty line, and an empty `<c>` span renders no text, so replacing only empty lines with it preserves the line structure while every other line is escaped with the WebVTT character references.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Normalization belongs to `canonicalizeAutoMovieCaptionText` and escaping to `escapeWebVttText`; this function adds only the per-line blank-line rule that applies to payloads alone.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `<c></c>` span is the WebVTT class span used for its specified empty rendering, not a marker any reader recognizes, and no caption is special-cased.
17
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the canonicalization it applies, the escape, and why an empty line becomes an empty class span.
18
+ * @evidence contracts/development/implementation.md#efficient-algorithms Normalization, split, per-line escape and join are each linear in the caption length, so a caption of L characters costs O(L) time and space.
19
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure per-caption serialization shares no work across calls or consumers.
20
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The intermediate line array is released on return, and the function keeps no state, handle or task.
21
+ */
22
+ const serializeAutoMovieWebVttCueText = (value) => (0, canonicalizeAutoMovieCaptionText_1.canonicalizeAutoMovieCaptionText)(value)
23
+ .split("\n")
24
+ .map((line) => line.length === 0 ? "<c></c>" : (0, escapeWebVttText_1.escapeWebVttText)(line))
25
+ .join("\n");
26
+ exports.serializeAutoMovieWebVttCueText = serializeAutoMovieWebVttCueText;
27
+ //# sourceMappingURL=serializeAutoMovieWebVttCueText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeAutoMovieWebVttCueText.js","sourceRoot":"","sources":["../../src/caption/serializeAutoMovieWebVttCueText.ts"],"names":[],"mappings":";;;AAAA,yFAAsF;AACtF,yDAAsD;AAEtD;;;;;;;;;;;;;;;GAeG;AACI,MAAM,+BAA+B,GAA8B,CACxE,KAAa,EACL,EAAE,CACV,IAAA,mEAAgC,EAAC,KAAK,CAAC;KACpC,KAAK,CAAC,IAAI,CAAC;KACX,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE,CAC5B,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,mCAAgB,EAAC,IAAI,CAAC,CACvD;KACA,IAAI,CAAC,IAAI,CAAC,CAAC;AARH,QAAA,+BAA+B,GAA/B,+BAA+B,CAQ5B"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Return one WebVTT header text or cue identifier verbatim, or throw.
3
+ *
4
+ * WebVTT defines no character references for these lines, so escaping would
5
+ * change the identity a player reads; a value `isAutoMovieWebVttIdentifier`
6
+ * refuses (empty, containing CR or LF, or containing `-->`) throws an `Error`
7
+ * instead of being rewritten.
8
+ *
9
+ * @evidence contracts/development/implementation.md#principled-implementation Preserving the value and refusing what the grammar cannot carry is the only reversible choice, because any substitution would publish a different id than the timeline holds.
10
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The rule lives in `isAutoMovieWebVttIdentifier`; this function is the throwing form `canonicalProductionWebVtt` needs, while film assembly uses the predicate to report a diagnostic.
11
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts It never trims, replaces or escapes a malformed id to make serialization succeed; the throw surfaces the invalid input.
12
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states that the value is preserved verbatim, why it is not escaped, which values are refused, and that refusal throws.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms The cost is the predicate's single O(L) scan, and the input string is returned without copying.
14
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Validating one string coordinates no phases and leaves nothing a later call could reuse.
15
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources No state, handle or task outlives the call; the returned value is the caller's own string.
16
+ */
17
+ export declare const serializeAutoMovieWebVttIdentifier: (value: string) => string;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeAutoMovieWebVttIdentifier = void 0;
4
+ const isAutoMovieWebVttIdentifier_1 = require("./isAutoMovieWebVttIdentifier");
5
+ /**
6
+ * Return one WebVTT header text or cue identifier verbatim, or throw.
7
+ *
8
+ * WebVTT defines no character references for these lines, so escaping would
9
+ * change the identity a player reads; a value `isAutoMovieWebVttIdentifier`
10
+ * refuses (empty, containing CR or LF, or containing `-->`) throws an `Error`
11
+ * instead of being rewritten.
12
+ *
13
+ * @evidence contracts/development/implementation.md#principled-implementation Preserving the value and refusing what the grammar cannot carry is the only reversible choice, because any substitution would publish a different id than the timeline holds.
14
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The rule lives in `isAutoMovieWebVttIdentifier`; this function is the throwing form `canonicalProductionWebVtt` needs, while film assembly uses the predicate to report a diagnostic.
15
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts It never trims, replaces or escapes a malformed id to make serialization succeed; the throw surfaces the invalid input.
16
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states that the value is preserved verbatim, why it is not escaped, which values are refused, and that refusal throws.
17
+ * @evidence contracts/development/implementation.md#efficient-algorithms The cost is the predicate's single O(L) scan, and the input string is returned without copying.
18
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Validating one string coordinates no phases and leaves nothing a later call could reuse.
19
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources No state, handle or task outlives the call; the returned value is the caller's own string.
20
+ */
21
+ const serializeAutoMovieWebVttIdentifier = (value) => {
22
+ if ((0, isAutoMovieWebVttIdentifier_1.isAutoMovieWebVttIdentifier)(value) === false)
23
+ throw new Error("WebVTT header and cue identifiers must be non-empty and must not contain a line break or -->.");
24
+ return value;
25
+ };
26
+ exports.serializeAutoMovieWebVttIdentifier = serializeAutoMovieWebVttIdentifier;
27
+ //# sourceMappingURL=serializeAutoMovieWebVttIdentifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeAutoMovieWebVttIdentifier.js","sourceRoot":"","sources":["../../src/caption/serializeAutoMovieWebVttIdentifier.ts"],"names":[],"mappings":";;;AAAA,+EAA4E;AAE5E;;;;;;;;;;;;;;;GAeG;AACI,MAAM,kCAAkC,GAA8B,CAC3E,KAAa,EACL,EAAE;IACV,IAAI,IAAA,yDAA2B,EAAC,KAAK,CAAC,KAAK,KAAK;QAC9C,MAAM,IAAI,KAAK,CACb,+FAA+F,CAChG,CAAC;IACJ,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AARW,QAAA,kCAAkC,GAAlC,kCAAkC,CAQ7C"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Serialize annotation text, such as a `<v>` speaker name, that must stay on
3
+ * one WebVTT line.
4
+ *
5
+ * Every C0 control, tab and line terminators included, and DEL becomes one
6
+ * space, then `&`, `<` and `>` are escaped, so the annotation can neither break
7
+ * the cue line nor close its tag early. Identifiers use
8
+ * `serializeAutoMovieWebVttIdentifier` instead, because WebVTT gives them no
9
+ * escape.
10
+ *
11
+ * @evidence contracts/development/implementation.md#principled-implementation An annotation ends at the first `>` and a cue line at the first line terminator, so mapping all controls to spaces and then applying the shared WebVTT escape keeps the annotation inside its tag while preserving its visible characters one-for-one.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns only single-line flattening and delegates escaping to `escapeWebVttText`, which cue payloads share; film assembly reuses it to judge whether a speaker name is blank after flattening.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The flattened set is the full C0 range and DEL, a format rule rather than a case drawn from a fixture, and no speaker or caller is special-cased.
14
+ * @evidence contracts/development/common.md#meaningful-documentation The doc names the field it serves, the exact control mapping and escape, the two failure modes it prevents, and which serializer handles identifiers instead.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms One regular-expression replacement and the three escape passes are each linear in the annotation length.
16
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure string mapping has no completed work worth sharing; each cue's speaker is serialized once per call.
17
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the module-level compiled pattern is retained, and `replace` resets its global-flag state on every call.
18
+ */
19
+ export declare const serializeAutoMovieWebVttSingleLineText: (value: string) => string;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeAutoMovieWebVttSingleLineText = void 0;
4
+ const escapeWebVttText_1 = require("./escapeWebVttText");
5
+ const SINGLE_LINE_CONTROLS = /[\u0000-\u001f\u007f]/gu;
6
+ /**
7
+ * Serialize annotation text, such as a `<v>` speaker name, that must stay on
8
+ * one WebVTT line.
9
+ *
10
+ * Every C0 control, tab and line terminators included, and DEL becomes one
11
+ * space, then `&`, `<` and `>` are escaped, so the annotation can neither break
12
+ * the cue line nor close its tag early. Identifiers use
13
+ * `serializeAutoMovieWebVttIdentifier` instead, because WebVTT gives them no
14
+ * escape.
15
+ *
16
+ * @evidence contracts/development/implementation.md#principled-implementation An annotation ends at the first `>` and a cue line at the first line terminator, so mapping all controls to spaces and then applying the shared WebVTT escape keeps the annotation inside its tag while preserving its visible characters one-for-one.
17
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns only single-line flattening and delegates escaping to `escapeWebVttText`, which cue payloads share; film assembly reuses it to judge whether a speaker name is blank after flattening.
18
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The flattened set is the full C0 range and DEL, a format rule rather than a case drawn from a fixture, and no speaker or caller is special-cased.
19
+ * @evidence contracts/development/common.md#meaningful-documentation The doc names the field it serves, the exact control mapping and escape, the two failure modes it prevents, and which serializer handles identifiers instead.
20
+ * @evidence contracts/development/implementation.md#efficient-algorithms One regular-expression replacement and the three escape passes are each linear in the annotation length.
21
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure string mapping has no completed work worth sharing; each cue's speaker is serialized once per call.
22
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the module-level compiled pattern is retained, and `replace` resets its global-flag state on every call.
23
+ */
24
+ const serializeAutoMovieWebVttSingleLineText = (value) => (0, escapeWebVttText_1.escapeWebVttText)(value.replace(SINGLE_LINE_CONTROLS, " "));
25
+ exports.serializeAutoMovieWebVttSingleLineText = serializeAutoMovieWebVttSingleLineText;
26
+ //# sourceMappingURL=serializeAutoMovieWebVttSingleLineText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeAutoMovieWebVttSingleLineText.js","sourceRoot":"","sources":["../../src/caption/serializeAutoMovieWebVttSingleLineText.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAEtD,MAAM,oBAAoB,GAAW,yBAAyB,CAAC;AAE/D;;;;;;;;;;;;;;;;;GAiBG;AACI,MAAM,sCAAsC,GAErC,CAAC,KAAa,EAAU,EAAE,CACtC,IAAA,mCAAgB,EAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC,CAAC;AAHhD,QAAA,sCAAsC,GAAtC,sCAAsC,CAGU"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Return one caption language tag, in its authored spelling, for a WebVTT
3
+ * `<lang>` span annotation, or throw.
4
+ *
5
+ * A tag that is not well-formed RFC 5646 throws an `Error` naming the tag
6
+ * rather than reaching the caption file, so a player never receives a language
7
+ * span it cannot interpret. The authored case is kept; only identity
8
+ * comparison folds case.
9
+ *
10
+ * @evidence contracts/development/implementation.md#principled-implementation A well-formed tag consists of ASCII letters, digits and hyphens only, which contain no WebVTT syntax character or control, so the parsed display spelling is written without escaping or flattening.
11
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The grammar lives in `parseAutoMovieCaptionLanguage`; this function is the throwing form `canonicalProductionWebVtt` needs for one annotation and adds no rule of its own.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A malformed tag throws instead of being normalized, replaced by a Preferred-Value, or dropped from the cue.
13
+ * @evidence contracts/development/common.md#meaningful-documentation The doc says which spelling is returned, where it goes, and that a malformed tag throws and why.
14
+ * @evidence contracts/development/implementation.md#efficient-algorithms The cost is one parse, linear in the tag length, and no sanitizer pass follows because the grammar already excludes every character one would rewrite.
15
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The function validates one tag per cue and coordinates no phases; repeated tags reparse in a few character comparisons.
16
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Nothing persists past the call except the returned display string, and no handle or task is opened.
17
+ */
18
+ export declare const webVttCaptionLanguage: (value: string) => string;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webVttCaptionLanguage = void 0;
4
+ const parseAutoMovieCaptionLanguage_1 = require("./parseAutoMovieCaptionLanguage");
5
+ /**
6
+ * Return one caption language tag, in its authored spelling, for a WebVTT
7
+ * `<lang>` span annotation, or throw.
8
+ *
9
+ * A tag that is not well-formed RFC 5646 throws an `Error` naming the tag
10
+ * rather than reaching the caption file, so a player never receives a language
11
+ * span it cannot interpret. The authored case is kept; only identity
12
+ * comparison folds case.
13
+ *
14
+ * @evidence contracts/development/implementation.md#principled-implementation A well-formed tag consists of ASCII letters, digits and hyphens only, which contain no WebVTT syntax character or control, so the parsed display spelling is written without escaping or flattening.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The grammar lives in `parseAutoMovieCaptionLanguage`; this function is the throwing form `canonicalProductionWebVtt` needs for one annotation and adds no rule of its own.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A malformed tag throws instead of being normalized, replaced by a Preferred-Value, or dropped from the cue.
17
+ * @evidence contracts/development/common.md#meaningful-documentation The doc says which spelling is returned, where it goes, and that a malformed tag throws and why.
18
+ * @evidence contracts/development/implementation.md#efficient-algorithms The cost is one parse, linear in the tag length, and no sanitizer pass follows because the grammar already excludes every character one would rewrite.
19
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The function validates one tag per cue and coordinates no phases; repeated tags reparse in a few character comparisons.
20
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Nothing persists past the call except the returned display string, and no handle or task is opened.
21
+ */
22
+ const webVttCaptionLanguage = (value) => {
23
+ const identity = (0, parseAutoMovieCaptionLanguage_1.parseAutoMovieCaptionLanguage)(value);
24
+ if (identity === null)
25
+ throw new Error(`Caption language "${value}" is not a well-formed RFC 5646 tag.`);
26
+ return identity.display;
27
+ };
28
+ exports.webVttCaptionLanguage = webVttCaptionLanguage;
29
+ //# sourceMappingURL=webVttCaptionLanguage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webVttCaptionLanguage.js","sourceRoot":"","sources":["../../src/caption/webVttCaptionLanguage.ts"],"names":[],"mappings":";;;AAAA,mFAAgF;AAEhF;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,qBAAqB,GAA8B,CAC9D,KAAa,EACL,EAAE;IACV,MAAM,QAAQ,GACZ,IAAA,6DAA6B,EAAC,KAAK,CAAC,CAAC;IACvC,IAAI,QAAQ,KAAK,IAAI;QACnB,MAAM,IAAI,KAAK,CACb,qBAAqB,KAAK,sCAAsC,CACjE,CAAC;IACJ,OAAO,QAAQ,CAAC,OAAO,CAAC;AAC1B,CAAC,CAAC;AAVW,QAAA,qBAAqB,GAArB,qBAAqB,CAUhC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Spell one non-negative integer millisecond offset as a WebVTT timestamp,
3
+ * `hh:mm:ss.ttt`.
4
+ *
5
+ * Hours always carry at least two digits and grow past two after 99 hours,
6
+ * which WebVTT allows; minutes and seconds carry two digits and milliseconds
7
+ * three, so one cue boundary has exactly one spelling on every host. The
8
+ * caller passes an integer from `productionFrameIntervalToGridTicks`; a
9
+ * fractional or negative input would produce an invalid timestamp.
10
+ *
11
+ * @evidence contracts/development/implementation.md#principled-implementation Integer division and remainder by 3,600,000, 60,000 and 1,000 decompose the offset exactly because every input is a non-negative safe integer from the BigInt tick mapping, and zero padding yields the fixed-width fields the WebVTT timestamp production requires.
12
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only spells a timestamp; frame-to-millisecond rounding stays in the engine mapping that owns it, so the spelling never decides a boundary.
13
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The always-present hour field is the WebVTT long form chosen for one canonical spelling, not a per-file case, and the input premise is documented rather than silently rounded.
14
+ * @evidence contracts/development/common.md#meaningful-documentation The doc gives the unit, the field widths including hour growth, the canonical-spelling reason, and the integer premise with its failure effect.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms Four arithmetic steps and four short pads run in constant time per boundary.
16
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Spelling one number coordinates no phases and leaves nothing a later call could reuse.
17
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function holds no state, handle or task beyond the short string it returns.
18
+ */
19
+ export declare const webVttTime: (milliseconds: number) => string;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webVttTime = void 0;
4
+ /**
5
+ * Spell one non-negative integer millisecond offset as a WebVTT timestamp,
6
+ * `hh:mm:ss.ttt`.
7
+ *
8
+ * Hours always carry at least two digits and grow past two after 99 hours,
9
+ * which WebVTT allows; minutes and seconds carry two digits and milliseconds
10
+ * three, so one cue boundary has exactly one spelling on every host. The
11
+ * caller passes an integer from `productionFrameIntervalToGridTicks`; a
12
+ * fractional or negative input would produce an invalid timestamp.
13
+ *
14
+ * @evidence contracts/development/implementation.md#principled-implementation Integer division and remainder by 3,600,000, 60,000 and 1,000 decompose the offset exactly because every input is a non-negative safe integer from the BigInt tick mapping, and zero padding yields the fixed-width fields the WebVTT timestamp production requires.
15
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only spells a timestamp; frame-to-millisecond rounding stays in the engine mapping that owns it, so the spelling never decides a boundary.
16
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The always-present hour field is the WebVTT long form chosen for one canonical spelling, not a per-file case, and the input premise is documented rather than silently rounded.
17
+ * @evidence contracts/development/common.md#meaningful-documentation The doc gives the unit, the field widths including hour growth, the canonical-spelling reason, and the integer premise with its failure effect.
18
+ * @evidence contracts/development/implementation.md#efficient-algorithms Four arithmetic steps and four short pads run in constant time per boundary.
19
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Spelling one number coordinates no phases and leaves nothing a later call could reuse.
20
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function holds no state, handle or task beyond the short string it returns.
21
+ */
22
+ const webVttTime = (milliseconds) => {
23
+ const hours = Math.floor(milliseconds / 3_600_000);
24
+ const minutes = Math.floor((milliseconds % 3_600_000) / 60_000);
25
+ const seconds = Math.floor((milliseconds % 60_000) / 1_000);
26
+ const fraction = milliseconds % 1_000;
27
+ return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(fraction).padStart(3, "0")}`;
28
+ };
29
+ exports.webVttTime = webVttTime;
30
+ //# sourceMappingURL=webVttTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webVttTime.js","sourceRoot":"","sources":["../../src/caption/webVttTime.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACI,MAAM,UAAU,GAAqC,CAC1D,YAAoB,EACZ,EAAE;IACV,MAAM,KAAK,GAAW,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAW,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,SAAS,CAAC,GAAG,MAAM,CAAC,CAAC;IACxE,MAAM,OAAO,GAAW,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAW,YAAY,GAAG,KAAK,CAAC;IAC9C,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,CAClE,CAAC,EACD,GAAG,CACJ,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AAC/E,CAAC,CAAC;AAXW,QAAA,UAAU,GAAV,UAAU,CAWrB"}
@@ -0,0 +1 @@
1
+ export * from "./planCaptionSidecar";
@@ -0,0 +1,18 @@
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("./planCaptionSidecar"), exports);
18
+ //# sourceMappingURL=captionPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captionPlan.js","sourceRoot":"","sources":["../src/captionPlan.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,3 @@
1
+ export * from "./IAutoMovieCaptionEntry";
2
+ export * from "./IAutoMovieCaptionSidecar";
3
+ export * from "./renderCaptionSidecar";
@@ -0,0 +1,20 @@
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("./IAutoMovieCaptionEntry"), exports);
18
+ __exportStar(require("./IAutoMovieCaptionSidecar"), exports);
19
+ __exportStar(require("./renderCaptionSidecar"), exports);
20
+ //# sourceMappingURL=captionSidecar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captionSidecar.js","sourceRoot":"","sources":["../src/captionSidecar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,6DAA2C;AAC3C,yDAAuC"}
@@ -0,0 +1 @@
1
+ export * from "./sliceCaptionSidecar";
@@ -0,0 +1,18 @@
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("./sliceCaptionSidecar"), exports);
18
+ //# sourceMappingURL=captionSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captionSlice.js","sourceRoot":"","sources":["../src/captionSlice.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -0,0 +1,5 @@
1
+ export * from "./IAutoMovieRenderChunk";
2
+ export * from "./IAutoMovieRenderPassManifest";
3
+ export * from "./IAutoMovieRenderReassembly";
4
+ export * from "./IAutoMovieRenderChunkPlan";
5
+ export * from "./planChunkedSequenceRender";
@@ -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("./IAutoMovieRenderChunk"), exports);
18
+ __exportStar(require("./IAutoMovieRenderPassManifest"), exports);
19
+ __exportStar(require("./IAutoMovieRenderReassembly"), exports);
20
+ __exportStar(require("./IAutoMovieRenderChunkPlan"), exports);
21
+ __exportStar(require("./planChunkedSequenceRender"), exports);
22
+ //# sourceMappingURL=chunkSequenceRender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunkSequenceRender.js","sourceRoot":"","sources":["../src/chunkSequenceRender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,iEAA+C;AAC/C,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The ITU-T H.273 code points that spell sRGB in an MP4 `colr` box.
3
+ *
4
+ * Primaries 1 is BT.709, transfer 13 is IEC 61966-2-1 sRGB, matrix 1 is BT.709,
5
+ * and full range means the samples use the complete code range. These are
6
+ * standard identities rather than a project preference, and three readings
7
+ * depend on the same four numbers: the delivery profile requires them, the track
8
+ * probe classifies a container as sRGB by them, and the normalizer writes them.
9
+ * Spelling them three times is how one of those readings drifts from the others.
10
+ */
11
+ export declare const AUTOMOVIE_MP4_SRGB_COLOUR: Readonly<{
12
+ primaries: 1;
13
+ transfer: 13;
14
+ matrix: 1;
15
+ fullRange: true;
16
+ }>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AUTOMOVIE_MP4_SRGB_COLOUR = void 0;
4
+ /**
5
+ * The ITU-T H.273 code points that spell sRGB in an MP4 `colr` box.
6
+ *
7
+ * Primaries 1 is BT.709, transfer 13 is IEC 61966-2-1 sRGB, matrix 1 is BT.709,
8
+ * and full range means the samples use the complete code range. These are
9
+ * standard identities rather than a project preference, and three readings
10
+ * depend on the same four numbers: the delivery profile requires them, the track
11
+ * probe classifies a container as sRGB by them, and the normalizer writes them.
12
+ * Spelling them three times is how one of those readings drifts from the others.
13
+ */
14
+ exports.AUTOMOVIE_MP4_SRGB_COLOUR = {
15
+ primaries: 1,
16
+ transfer: 13,
17
+ matrix: 1,
18
+ fullRange: true,
19
+ };
20
+ //# sourceMappingURL=AUTOMOVIE_MP4_SRGB_COLOUR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AUTOMOVIE_MP4_SRGB_COLOUR.js","sourceRoot":"","sources":["../../src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACU,QAAA,yBAAyB,GAKjC;IACH,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,IAAI;CACP,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { IAutoMovieProductionVideoProbe } from "@automovie/interface";
2
+ /**
3
+ * The ISO base media unity display matrix, in the file's own 16.16 and 2.30
4
+ * fixed-point terms.
5
+ *
6
+ * A track that carries this matrix is displayed untransformed. The delivery
7
+ * profile requires it and the splice admission checks it, and a transform that
8
+ * differed between those two readings would let a rotated or scaled track pass
9
+ * one gate and fail the other, so both read this.
10
+ */
11
+ export declare const AUTOMOVIE_MP4_UNITY_MATRIX: Readonly<IAutoMovieProductionVideoProbe["trackMatrix"]>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AUTOMOVIE_MP4_UNITY_MATRIX = void 0;
4
+ /**
5
+ * The ISO base media unity display matrix, in the file's own 16.16 and 2.30
6
+ * fixed-point terms.
7
+ *
8
+ * A track that carries this matrix is displayed untransformed. The delivery
9
+ * profile requires it and the splice admission checks it, and a transform that
10
+ * differed between those two readings would let a rotated or scaled track pass
11
+ * one gate and fail the other, so both read this.
12
+ */
13
+ exports.AUTOMOVIE_MP4_UNITY_MATRIX = [65_536, 0, 0, 0, 65_536, 0, 0, 0, 1_073_741_824];
14
+ //# sourceMappingURL=AUTOMOVIE_MP4_UNITY_MATRIX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AUTOMOVIE_MP4_UNITY_MATRIX.js","sourceRoot":"","sources":["../../src/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;GAQG;AACU,QAAA,0BAA0B,GAEnC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /** Current fieldwise Opus-in-MP4 profile written by the deterministic encoder. */
2
+ export declare const AUTOMOVIE_PRODUCTION_OPUS_PROFILE: Readonly<{
3
+ kind: "opus";
4
+ version: 0;
5
+ outputChannelCount: 2;
6
+ inputSampleRate: 48000;
7
+ outputGainQ7_8: 0;
8
+ channelMapping: Readonly<{
9
+ family: 0;
10
+ streamCount: null;
11
+ coupledCount: null;
12
+ mapping: readonly [];
13
+ channelOrder: readonly ["front-left", "front-right"];
14
+ }>;
15
+ }>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AUTOMOVIE_PRODUCTION_OPUS_PROFILE = void 0;
4
+ /** Current fieldwise Opus-in-MP4 profile written by the deterministic encoder. */
5
+ exports.AUTOMOVIE_PRODUCTION_OPUS_PROFILE = {
6
+ kind: "opus",
7
+ version: 0,
8
+ outputChannelCount: 2,
9
+ inputSampleRate: 48_000,
10
+ outputGainQ7_8: 0,
11
+ channelMapping: {
12
+ family: 0,
13
+ streamCount: null,
14
+ coupledCount: null,
15
+ mapping: [],
16
+ channelOrder: ["front-left", "front-right"],
17
+ },
18
+ };
19
+ //# sourceMappingURL=AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js","sourceRoot":"","sources":["../../src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts"],"names":[],"mappings":";;;AAAA,kFAAkF;AACrE,QAAA,iCAAiC,GAazC;IACH,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC;IACV,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,MAAM;IACvB,cAAc,EAAE,CAAC;IACjB,cAAc,EAAE;QACd,MAAM,EAAE,CAAC;QACT,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KAC5C;CACO,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Role of a renderer-owned PNG, which decides its picture profile.
3
+ *
4
+ * `preview` and `guide-frame` pictures take the authored raster, while
5
+ * `waveform` (960 × 240) and `spectrogram` (512 × 192) pictures have the fixed
6
+ * rasters their audio-evidence writers draw; `resolveProductionPngProfile`
7
+ * maps a role to its profile.
8
+ *
9
+ * @evidence contracts/development/design.md#principled-representation A closed string union names each kind of picture the renderer writes, so the profile resolver can switch exhaustively and a delivery check names the role in its refusal.
10
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Four literals cover the PNG writers that exist; the raster and format rules stay in `resolveProductionPngProfile` rather than in the role type.
11
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The fixed rasters belong to the two audio-evidence roles as contract constants of their writers, and the union adds no role for a single consumer.
12
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states which roles take the authored raster, the fixed raster of the others, and where a role becomes a profile.
13
+ */
14
+ export type AutoMovieProductionPngRole = "preview" | "guide-frame" | "waveform" | "spectrogram";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AutoMovieProductionPngRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieProductionPngRole.js","sourceRoot":"","sources":["../../src/delivery/AutoMovieProductionPngRole.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ import type { AutoMovieProductionPngRole } from "./AutoMovieProductionPngRole";
2
+ /**
3
+ * The exact PNG picture facts the deterministic writers emit for one role.
4
+ *
5
+ * `resolveProductionPngProfile` builds it, and `assertProductionPngPicture`
6
+ * refuses a parsed PNG that differs in any compared field. Every field except
7
+ * the raster is a single literal, because the writers support exactly one
8
+ * format.
9
+ *
10
+ * @evidence contracts/development/design.md#principled-representation Literal types encode each fixed format fact, so a profile cannot state a format the writers do not produce, and the checker compares fields one-for-one against the parser's observation.
11
+ * @evidence contracts/development/design.md#minimal-and-owned-surface The profile is a flat record mirroring the parsed picture's field names, so the checker needs no mapping layer; `version` lets the shape change without misreading an older profile.
12
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The literals are the writers' actual output contract, not values chosen to match a fixture, and no role has a field of its own.
13
+ * @evidence contracts/development/common.md#meaningful-documentation The prose names the producer and checker and why fields are literals; each member gives its unit or the convention its literal names.
14
+ */
15
+ export interface IAutoMovieProductionPngProfile {
16
+ /** Profile schema version. */
17
+ version: 1;
18
+ /** Renderer-owned role the PNG is written for, named in a mismatch error. */
19
+ role: AutoMovieProductionPngRole;
20
+ /** Stored image width in pixels. */
21
+ width: number;
22
+ /** Stored image height in pixels. */
23
+ height: number;
24
+ /** Bits per channel; every writer emits 8. */
25
+ bitDepth: 8;
26
+ /** Channel layout; every writer emits RGBA. */
27
+ color: "rgba";
28
+ /** Alpha convention: color channels are not premultiplied by alpha. */
29
+ alpha: "straight";
30
+ /** Interlace method; the writers never interlace. */
31
+ interlace: "none";
32
+ /** Color space the pixel values are display-referred in. */
33
+ colorSpace: "srgb";
34
+ /**
35
+ * Pixel aspect; the writers emit square pixels, and a PNG without a physical
36
+ * pixel ratio is read as square.
37
+ */
38
+ pixelAspect: "square";
39
+ /** Stored orientation; the writers never rotate. */
40
+ orientation: "upright";
41
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoMovieProductionPngProfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoMovieProductionPngProfile.js","sourceRoot":"","sources":["../../src/delivery/IAutoMovieProductionPngProfile.ts"],"names":[],"mappings":""}