@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.
- package/LICENSE +21 -0
- package/README.md +38 -2
- package/lib/AUTOMOVIE_GUIDE_PASSES.d.ts +11 -0
- package/lib/AUTOMOVIE_GUIDE_PASSES.js +21 -0
- package/lib/AUTOMOVIE_GUIDE_PASSES.js.map +1 -0
- package/lib/IAutoMovieCaptionEntry.d.ts +28 -0
- package/lib/IAutoMovieCaptionEntry.js +3 -0
- package/lib/IAutoMovieCaptionEntry.js.map +1 -0
- package/lib/IAutoMovieCaptionSidecar.d.ts +25 -0
- package/lib/IAutoMovieCaptionSidecar.js +3 -0
- package/lib/IAutoMovieCaptionSidecar.js.map +1 -0
- package/lib/IAutoMovieCapturedFrame.d.ts +22 -0
- package/lib/IAutoMovieCapturedFrame.js +3 -0
- package/lib/IAutoMovieCapturedFrame.js.map +1 -0
- package/lib/IAutoMovieGuidePassOutput.d.ts +23 -0
- package/lib/IAutoMovieGuidePassOutput.js +3 -0
- package/lib/IAutoMovieGuidePassOutput.js.map +1 -0
- package/lib/IAutoMoviePoseKeypointActor.d.ts +36 -0
- package/lib/IAutoMoviePoseKeypointActor.js +3 -0
- package/lib/IAutoMoviePoseKeypointActor.js.map +1 -0
- package/lib/IAutoMoviePoseKeypointFrame.d.ts +25 -0
- package/lib/IAutoMoviePoseKeypointFrame.js +3 -0
- package/lib/IAutoMoviePoseKeypointFrame.js.map +1 -0
- package/lib/IAutoMoviePoseKeypointSidecar.d.ts +21 -0
- package/lib/IAutoMoviePoseKeypointSidecar.js +3 -0
- package/lib/IAutoMoviePoseKeypointSidecar.js.map +1 -0
- package/lib/IAutoMovieRenderAdapters.d.ts +34 -0
- package/lib/IAutoMovieRenderAdapters.js +3 -0
- package/lib/IAutoMovieRenderAdapters.js.map +1 -0
- package/lib/IAutoMovieRenderAndSeeRequest.d.ts +32 -0
- package/lib/IAutoMovieRenderAndSeeRequest.js +3 -0
- package/lib/IAutoMovieRenderAndSeeRequest.js.map +1 -0
- package/lib/IAutoMovieRenderAndSeeResult.d.ts +20 -0
- package/lib/IAutoMovieRenderAndSeeResult.js +3 -0
- package/lib/IAutoMovieRenderAndSeeResult.js.map +1 -0
- package/lib/IAutoMovieRenderChunk.d.ts +48 -0
- package/lib/IAutoMovieRenderChunk.js +3 -0
- package/lib/IAutoMovieRenderChunk.js.map +1 -0
- package/lib/IAutoMovieRenderChunkPlan.d.ts +32 -0
- package/lib/IAutoMovieRenderChunkPlan.js +3 -0
- package/lib/IAutoMovieRenderChunkPlan.js.map +1 -0
- package/lib/IAutoMovieRenderPassManifest.d.ts +21 -0
- package/lib/IAutoMovieRenderPassManifest.js +3 -0
- package/lib/IAutoMovieRenderPassManifest.js.map +1 -0
- package/lib/IAutoMovieRenderReassembly.d.ts +24 -0
- package/lib/IAutoMovieRenderReassembly.js +3 -0
- package/lib/IAutoMovieRenderReassembly.js.map +1 -0
- package/lib/IAutoMovieRenderResult.d.ts +39 -0
- package/lib/IAutoMovieRenderResult.js +3 -0
- package/lib/IAutoMovieRenderResult.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderAdapters.d.ts +36 -0
- package/lib/IAutoMovieSequenceRenderAdapters.js +3 -0
- package/lib/IAutoMovieSequenceRenderAdapters.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +36 -0
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.js +3 -0
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +23 -0
- package/lib/IAutoMovieSequenceRenderAndSeeResult.js +3 -0
- package/lib/IAutoMovieSequenceRenderAndSeeResult.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderFrame.d.ts +41 -0
- package/lib/IAutoMovieSequenceRenderFrame.js +3 -0
- package/lib/IAutoMovieSequenceRenderFrame.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderPlan.d.ts +76 -0
- package/lib/IAutoMovieSequenceRenderPlan.js +3 -0
- package/lib/IAutoMovieSequenceRenderPlan.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderResult.d.ts +44 -0
- package/lib/IAutoMovieSequenceRenderResult.js +3 -0
- package/lib/IAutoMovieSequenceRenderResult.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +39 -0
- package/lib/IAutoMovieSequenceRenderShotSpan.js +3 -0
- package/lib/IAutoMovieSequenceRenderShotSpan.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +39 -0
- package/lib/IAutoMovieSequenceRenderTransitionSpan.js +3 -0
- package/lib/IAutoMovieSequenceRenderTransitionSpan.js.map +1 -0
- package/lib/audio/encodeAutoMovieWavPcm16.d.ts +21 -0
- package/lib/audio/encodeAutoMovieWavPcm16.js +59 -0
- package/lib/audio/encodeAutoMovieWavPcm16.js.map +1 -0
- package/lib/audio/index.d.ts +2 -0
- package/lib/audio/index.js +19 -0
- package/lib/audio/index.js.map +1 -0
- package/lib/audio/mixAutoMovieAudioPcm.d.ts +64 -0
- package/lib/audio/mixAutoMovieAudioPcm.js +86 -0
- package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -0
- package/lib/auditAutoMovieRenderObservation.d.ts +31 -0
- package/lib/auditAutoMovieRenderObservation.js +63 -0
- package/lib/auditAutoMovieRenderObservation.js.map +1 -0
- package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +28 -0
- package/lib/cache/createAutoMovieHttpArtifactStore.js +66 -0
- package/lib/cache/createAutoMovieHttpArtifactStore.js.map +1 -0
- package/lib/caption/IAutoMovieBeatCaption.d.ts +22 -0
- package/lib/caption/IAutoMovieBeatCaption.js +3 -0
- package/lib/caption/IAutoMovieBeatCaption.js.map +1 -0
- package/lib/caption/autoMovieCaptionLanguageComparisonKey.d.ts +18 -0
- package/lib/caption/autoMovieCaptionLanguageComparisonKey.js +24 -0
- package/lib/caption/autoMovieCaptionLanguageComparisonKey.js.map +1 -0
- package/lib/caption/beatCaptions.d.ts +22 -0
- package/lib/caption/beatCaptions.js +50 -0
- package/lib/caption/beatCaptions.js.map +1 -0
- package/lib/caption/canonicalProductionWebVtt.d.ts +23 -0
- package/lib/caption/canonicalProductionWebVtt.js +60 -0
- package/lib/caption/canonicalProductionWebVtt.js.map +1 -0
- package/lib/caption/canonicalizeAutoMovieCaptionText.d.ts +18 -0
- package/lib/caption/canonicalizeAutoMovieCaptionText.js +24 -0
- package/lib/caption/canonicalizeAutoMovieCaptionText.js.map +1 -0
- package/lib/caption/escapeWebVttText.d.ts +17 -0
- package/lib/caption/escapeWebVttText.js +25 -0
- package/lib/caption/escapeWebVttText.js.map +1 -0
- package/lib/caption/index.d.ts +11 -0
- package/lib/caption/index.js +28 -0
- package/lib/caption/index.js.map +1 -0
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +37 -0
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js +129 -0
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -0
- package/lib/caption/isAutoMovieWebVttIdentifier.d.ts +21 -0
- package/lib/caption/isAutoMovieWebVttIdentifier.js +28 -0
- package/lib/caption/isAutoMovieWebVttIdentifier.js.map +1 -0
- package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +34 -0
- package/lib/caption/parseAutoMovieCaptionLanguage.js +121 -0
- package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -0
- package/lib/caption/serializeAutoMovieWebVttCueText.d.ts +17 -0
- package/lib/caption/serializeAutoMovieWebVttCueText.js +27 -0
- package/lib/caption/serializeAutoMovieWebVttCueText.js.map +1 -0
- package/lib/caption/serializeAutoMovieWebVttIdentifier.d.ts +17 -0
- package/lib/caption/serializeAutoMovieWebVttIdentifier.js +27 -0
- package/lib/caption/serializeAutoMovieWebVttIdentifier.js.map +1 -0
- package/lib/caption/serializeAutoMovieWebVttSingleLineText.d.ts +19 -0
- package/lib/caption/serializeAutoMovieWebVttSingleLineText.js +26 -0
- package/lib/caption/serializeAutoMovieWebVttSingleLineText.js.map +1 -0
- package/lib/caption/webVttCaptionLanguage.d.ts +18 -0
- package/lib/caption/webVttCaptionLanguage.js +29 -0
- package/lib/caption/webVttCaptionLanguage.js.map +1 -0
- package/lib/caption/webVttTime.d.ts +19 -0
- package/lib/caption/webVttTime.js +30 -0
- package/lib/caption/webVttTime.js.map +1 -0
- package/lib/captionPlan.d.ts +1 -0
- package/lib/captionPlan.js +18 -0
- package/lib/captionPlan.js.map +1 -0
- package/lib/captionSidecar.d.ts +3 -0
- package/lib/captionSidecar.js +20 -0
- package/lib/captionSidecar.js.map +1 -0
- package/lib/captionSlice.d.ts +1 -0
- package/lib/captionSlice.js +18 -0
- package/lib/captionSlice.js.map +1 -0
- package/lib/chunkSequenceRender.d.ts +5 -0
- package/lib/chunkSequenceRender.js +22 -0
- package/lib/chunkSequenceRender.js.map +1 -0
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +16 -0
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js +20 -0
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -0
- package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.d.ts +11 -0
- package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.js +14 -0
- package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.js.map +1 -0
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +15 -0
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js +19 -0
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -0
- package/lib/delivery/AutoMovieProductionPngRole.d.ts +14 -0
- package/lib/delivery/AutoMovieProductionPngRole.js +3 -0
- package/lib/delivery/AutoMovieProductionPngRole.js.map +1 -0
- package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +41 -0
- package/lib/delivery/IAutoMovieProductionPngProfile.js +3 -0
- package/lib/delivery/IAutoMovieProductionPngProfile.js.map +1 -0
- package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +46 -0
- package/lib/delivery/IAutoMovieProductionVideoProfile.js +3 -0
- package/lib/delivery/IAutoMovieProductionVideoProfile.js.map +1 -0
- package/lib/delivery/assertAutoMovieCaptureClock.d.ts +26 -0
- package/lib/delivery/assertAutoMovieCaptureClock.js +29 -0
- package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -0
- package/lib/delivery/assertProductionOpusProfile.d.ts +23 -0
- package/lib/delivery/assertProductionOpusProfile.js +160 -0
- package/lib/delivery/assertProductionOpusProfile.js.map +1 -0
- package/lib/delivery/assertProductionPngPicture.d.ts +24 -0
- package/lib/delivery/assertProductionPngPicture.js +47 -0
- package/lib/delivery/assertProductionPngPicture.js.map +1 -0
- package/lib/delivery/assertProductionVideoProfile.d.ts +30 -0
- package/lib/delivery/assertProductionVideoProfile.js +150 -0
- package/lib/delivery/assertProductionVideoProfile.js.map +1 -0
- package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +56 -0
- package/lib/delivery/auditAutoMovieDecodedFrames.js +92 -0
- package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -0
- package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +27 -0
- package/lib/delivery/auditAutoMovieEncodedPresentation.js +62 -0
- package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -0
- package/lib/delivery/index.d.ts +14 -0
- package/lib/delivery/index.js +31 -0
- package/lib/delivery/index.js.map +1 -0
- package/lib/delivery/planAutoMovieCaptureUrl.d.ts +18 -0
- package/lib/delivery/planAutoMovieCaptureUrl.js +31 -0
- package/lib/delivery/planAutoMovieCaptureUrl.js.map +1 -0
- package/lib/delivery/productionOpusDescription.d.ts +41 -0
- package/lib/delivery/productionOpusDescription.js +125 -0
- package/lib/delivery/productionOpusDescription.js.map +1 -0
- package/lib/delivery/resolveProductionPngProfile.d.ts +27 -0
- package/lib/delivery/resolveProductionPngProfile.js +53 -0
- package/lib/delivery/resolveProductionPngProfile.js.map +1 -0
- package/lib/delivery/resolveProductionVideoProfile.d.ts +27 -0
- package/lib/delivery/resolveProductionVideoProfile.js +36 -0
- package/lib/delivery/resolveProductionVideoProfile.js.map +1 -0
- package/lib/ffmpegArgs.d.ts +33 -0
- package/lib/ffmpegArgs.js +56 -0
- package/lib/ffmpegArgs.js.map +1 -0
- package/lib/film/AutoMovieOrderedScalar.d.ts +15 -0
- package/lib/film/AutoMovieOrderedScalar.js +3 -0
- package/lib/film/AutoMovieOrderedScalar.js.map +1 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +28 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.js +3 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.js.map +1 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +29 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.js +3 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.js.map +1 -0
- package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +36 -0
- package/lib/film/IAutoMovieProductionEncoderIdentity.js +3 -0
- package/lib/film/IAutoMovieProductionEncoderIdentity.js.map +1 -0
- package/lib/film/IAutoMovieProductionRenderChunk.d.ts +39 -0
- package/lib/film/IAutoMovieProductionRenderChunk.js +3 -0
- package/lib/film/IAutoMovieProductionRenderChunk.js.map +1 -0
- package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +53 -0
- package/lib/film/IAutoMovieProductionRenderJobPlan.js +3 -0
- package/lib/film/IAutoMovieProductionRenderJobPlan.js.map +1 -0
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +31 -0
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.js +3 -0
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.js.map +1 -0
- package/lib/film/IAutoMovieProductionRenderTier.d.ts +25 -0
- package/lib/film/IAutoMovieProductionRenderTier.js +3 -0
- package/lib/film/IAutoMovieProductionRenderTier.js.map +1 -0
- package/lib/film/assertSingleGuidePass.d.ts +19 -0
- package/lib/film/assertSingleGuidePass.js +35 -0
- package/lib/film/assertSingleGuidePass.js.map +1 -0
- package/lib/film/equalOrderedScalars.d.ts +27 -0
- package/lib/film/equalOrderedScalars.js +52 -0
- package/lib/film/equalOrderedScalars.js.map +1 -0
- package/lib/film/index.d.ts +9 -0
- package/lib/film/index.js +26 -0
- package/lib/film/index.js.map +1 -0
- package/lib/film/normalizeAudioAssets.d.ts +21 -0
- package/lib/film/normalizeAudioAssets.js +56 -0
- package/lib/film/normalizeAudioAssets.js.map +1 -0
- package/lib/film/normalizeRenderTier.d.ts +19 -0
- package/lib/film/normalizeRenderTier.js +45 -0
- package/lib/film/normalizeRenderTier.js.map +1 -0
- package/lib/film/planProductionRenderJob.d.ts +48 -0
- package/lib/film/planProductionRenderJob.js +196 -0
- package/lib/film/planProductionRenderJob.js.map +1 -0
- package/lib/film/productionVisualDeliveryOccurrence.d.ts +20 -0
- package/lib/film/productionVisualDeliveryOccurrence.js +24 -0
- package/lib/film/productionVisualDeliveryOccurrence.js.map +1 -0
- package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +21 -0
- package/lib/film/resolveProductionRenderTierFrameFormat.js +46 -0
- package/lib/film/resolveProductionRenderTierFrameFormat.js.map +1 -0
- package/lib/film/validDigest.d.ts +18 -0
- package/lib/film/validDigest.js +25 -0
- package/lib/film/validDigest.js.map +1 -0
- package/lib/film/validWaveAudioIdentity.d.ts +25 -0
- package/lib/film/validWaveAudioIdentity.js +76 -0
- package/lib/film/validWaveAudioIdentity.js.map +1 -0
- package/lib/frameName.d.ts +19 -0
- package/lib/frameName.js +24 -0
- package/lib/frameName.js.map +1 -0
- package/lib/framePattern.d.ts +16 -0
- package/lib/framePattern.js +21 -0
- package/lib/framePattern.js.map +1 -0
- package/lib/frameTimes.d.ts +20 -0
- package/lib/frameTimes.js +33 -0
- package/lib/frameTimes.js.map +1 -0
- package/lib/guidePassFrameName.d.ts +15 -0
- package/lib/guidePassFrameName.js +21 -0
- package/lib/guidePassFrameName.js.map +1 -0
- package/lib/guidePassFramePattern.d.ts +15 -0
- package/lib/guidePassFramePattern.js +21 -0
- package/lib/guidePassFramePattern.js.map +1 -0
- package/lib/guidePasses.d.ts +7 -0
- package/lib/guidePasses.js +24 -0
- package/lib/guidePasses.js.map +1 -0
- package/lib/guidePassesInternal/passExtension.d.ts +14 -0
- package/lib/guidePassesInternal/passExtension.js +18 -0
- package/lib/guidePassesInternal/passExtension.js.map +1 -0
- package/lib/index.d.ts +69 -0
- package/lib/index.js +86 -0
- package/lib/index.js.map +1 -0
- package/lib/isGuidePass.d.ts +15 -0
- package/lib/isGuidePass.js +20 -0
- package/lib/isGuidePass.js.map +1 -0
- package/lib/normalizeGuidePasses.d.ts +15 -0
- package/lib/normalizeGuidePasses.js +32 -0
- package/lib/normalizeGuidePasses.js.map +1 -0
- package/lib/planCaptionSidecar.d.ts +23 -0
- package/lib/planCaptionSidecar.js +56 -0
- package/lib/planCaptionSidecar.js.map +1 -0
- package/lib/planChunkedSequenceRender.d.ts +26 -0
- package/lib/planChunkedSequenceRender.js +132 -0
- package/lib/planChunkedSequenceRender.js.map +1 -0
- package/lib/planGuidePassOutputs.d.ts +19 -0
- package/lib/planGuidePassOutputs.js +31 -0
- package/lib/planGuidePassOutputs.js.map +1 -0
- package/lib/planPoseKeypointSidecar.d.ts +27 -0
- package/lib/planPoseKeypointSidecar.js +141 -0
- package/lib/planPoseKeypointSidecar.js.map +1 -0
- package/lib/planSequenceRender.d.ts +20 -0
- package/lib/planSequenceRender.js +99 -0
- package/lib/planSequenceRender.js.map +1 -0
- package/lib/planViewerFrameTimes.d.ts +33 -0
- package/lib/planViewerFrameTimes.js +74 -0
- package/lib/planViewerFrameTimes.js.map +1 -0
- package/lib/renderAndSee.d.ts +14 -0
- package/lib/renderAndSee.js +22 -0
- package/lib/renderAndSee.js.map +1 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +41 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.js +3 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.js.map +1 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +53 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.js +3 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.js.map +1 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +27 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.js +3 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.js.map +1 -0
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +28 -0
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js +77 -0
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +23 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js +55 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +17 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js +51 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +22 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js +32 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +23 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js +35 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -0
- package/lib/renderBudgetPreflight/index.d.ts +9 -0
- package/lib/renderBudgetPreflight/index.js +26 -0
- package/lib/renderBudgetPreflight/index.js.map +1 -0
- package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.d.ts +18 -0
- package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.js +22 -0
- package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.js.map +1 -0
- package/lib/renderCaptionSidecar.d.ts +13 -0
- package/lib/renderCaptionSidecar.js +17 -0
- package/lib/renderCaptionSidecar.js.map +1 -0
- package/lib/renderObservationAudit.d.ts +1 -0
- package/lib/renderObservationAudit.js +18 -0
- package/lib/renderObservationAudit.js.map +1 -0
- package/lib/renderPathStem.d.ts +22 -0
- package/lib/renderPathStem.js +64 -0
- package/lib/renderPathStem.js.map +1 -0
- package/lib/renderPoseKeypointSidecar.d.ts +15 -0
- package/lib/renderPoseKeypointSidecar.js +19 -0
- package/lib/renderPoseKeypointSidecar.js.map +1 -0
- package/lib/renderSequenceAndSee.d.ts +14 -0
- package/lib/renderSequenceAndSee.js +32 -0
- package/lib/renderSequenceAndSee.js.map +1 -0
- package/lib/renderSequenceVideo.d.ts +15 -0
- package/lib/renderSequenceVideo.js +35 -0
- package/lib/renderSequenceVideo.js.map +1 -0
- package/lib/renderVideo.d.ts +17 -0
- package/lib/renderVideo.js +45 -0
- package/lib/renderVideo.js.map +1 -0
- package/lib/screenplay/index.d.ts +1 -0
- package/lib/screenplay/index.js +18 -0
- package/lib/screenplay/index.js.map +1 -0
- package/lib/screenplay/renderScreenplay.d.ts +25 -0
- package/lib/screenplay/renderScreenplay.js +101 -0
- package/lib/screenplay/renderScreenplay.js.map +1 -0
- package/lib/screenplay/screenplaySceneSlug.d.ts +17 -0
- package/lib/screenplay/screenplaySceneSlug.js +21 -0
- package/lib/screenplay/screenplaySceneSlug.js.map +1 -0
- package/lib/sequenceRenderPlan.d.ts +5 -0
- package/lib/sequenceRenderPlan.js +22 -0
- package/lib/sequenceRenderPlan.js.map +1 -0
- package/lib/sequenceRenderVideo.d.ts +6 -0
- package/lib/sequenceRenderVideo.js +23 -0
- package/lib/sequenceRenderVideo.js.map +1 -0
- package/lib/shotBeat.d.ts +18 -0
- package/lib/shotBeat.js +23 -0
- package/lib/shotBeat.js.map +1 -0
- package/lib/sliceCaptionSidecar.d.ts +15 -0
- package/lib/sliceCaptionSidecar.js +57 -0
- package/lib/sliceCaptionSidecar.js.map +1 -0
- package/package.json +46 -3
- package/src/AUTOMOVIE_GUIDE_PASSES.ts +19 -0
- package/src/IAutoMovieCaptionEntry.ts +32 -0
- package/src/IAutoMovieCaptionSidecar.ts +29 -0
- package/src/IAutoMovieCapturedFrame.ts +24 -0
- package/src/IAutoMovieGuidePassOutput.ts +27 -0
- package/src/IAutoMoviePoseKeypointActor.ts +39 -0
- package/src/IAutoMoviePoseKeypointFrame.ts +28 -0
- package/src/IAutoMoviePoseKeypointSidecar.ts +25 -0
- package/src/IAutoMovieRenderAdapters.ts +39 -0
- package/src/IAutoMovieRenderAndSeeRequest.ts +38 -0
- package/src/IAutoMovieRenderAndSeeResult.ts +23 -0
- package/src/IAutoMovieRenderChunk.ts +62 -0
- package/src/IAutoMovieRenderChunkPlan.ts +40 -0
- package/src/IAutoMovieRenderPassManifest.ts +25 -0
- package/src/IAutoMovieRenderReassembly.ts +28 -0
- package/src/IAutoMovieRenderResult.ts +46 -0
- package/src/IAutoMovieSequenceRenderAdapters.ts +41 -0
- package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +47 -0
- package/src/IAutoMovieSequenceRenderAndSeeResult.ts +23 -0
- package/src/IAutoMovieSequenceRenderFrame.ts +48 -0
- package/src/IAutoMovieSequenceRenderPlan.ts +88 -0
- package/src/IAutoMovieSequenceRenderResult.ts +52 -0
- package/src/IAutoMovieSequenceRenderShotSpan.ts +46 -0
- package/src/IAutoMovieSequenceRenderTransitionSpan.ts +46 -0
- package/src/audio/encodeAutoMovieWavPcm16.ts +65 -0
- package/src/audio/index.ts +2 -0
- package/src/audio/mixAutoMovieAudioPcm.ts +137 -0
- package/src/auditAutoMovieRenderObservation.ts +79 -0
- package/src/cache/createAutoMovieHttpArtifactStore.ts +84 -0
- package/src/caption/IAutoMovieBeatCaption.ts +23 -0
- package/src/caption/autoMovieCaptionLanguageComparisonKey.ts +23 -0
- package/src/caption/beatCaptions.ts +59 -0
- package/src/caption/canonicalProductionWebVtt.ts +76 -0
- package/src/caption/canonicalizeAutoMovieCaptionText.ts +24 -0
- package/src/caption/escapeWebVttText.ts +23 -0
- package/src/caption/index.ts +11 -0
- package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +231 -0
- package/src/caption/isAutoMovieWebVttIdentifier.ts +26 -0
- package/src/caption/parseAutoMovieCaptionLanguage.ts +160 -0
- package/src/caption/serializeAutoMovieWebVttCueText.ts +28 -0
- package/src/caption/serializeAutoMovieWebVttIdentifier.ts +27 -0
- package/src/caption/serializeAutoMovieWebVttSingleLineText.ts +26 -0
- package/src/caption/webVttCaptionLanguage.ts +30 -0
- package/src/caption/webVttTime.ts +30 -0
- package/src/captionPlan.ts +1 -0
- package/src/captionSidecar.ts +3 -0
- package/src/captionSlice.ts +1 -0
- package/src/chunkSequenceRender.ts +5 -0
- package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +21 -0
- package/src/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.ts +14 -0
- package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +28 -0
- package/src/delivery/AutoMovieProductionPngRole.ts +18 -0
- package/src/delivery/IAutoMovieProductionPngProfile.ts +52 -0
- package/src/delivery/IAutoMovieProductionVideoProfile.ts +48 -0
- package/src/delivery/assertAutoMovieCaptureClock.ts +37 -0
- package/src/delivery/assertProductionOpusProfile.ts +179 -0
- package/src/delivery/assertProductionPngPicture.ts +62 -0
- package/src/delivery/assertProductionVideoProfile.ts +180 -0
- package/src/delivery/auditAutoMovieDecodedFrames.ts +157 -0
- package/src/delivery/auditAutoMovieEncodedPresentation.ts +86 -0
- package/src/delivery/index.ts +14 -0
- package/src/delivery/planAutoMovieCaptureUrl.ts +32 -0
- package/src/delivery/productionOpusDescription.ts +173 -0
- package/src/delivery/resolveProductionPngProfile.ts +70 -0
- package/src/delivery/resolveProductionVideoProfile.ts +48 -0
- package/src/ffmpegArgs.ts +61 -0
- package/src/film/AutoMovieOrderedScalar.ts +15 -0
- package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +40 -0
- package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +34 -0
- package/src/film/IAutoMovieProductionEncoderIdentity.ts +42 -0
- package/src/film/IAutoMovieProductionRenderChunk.ts +47 -0
- package/src/film/IAutoMovieProductionRenderJobPlan.ts +73 -0
- package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +37 -0
- package/src/film/IAutoMovieProductionRenderTier.ts +27 -0
- package/src/film/assertSingleGuidePass.ts +38 -0
- package/src/film/equalOrderedScalars.ts +56 -0
- package/src/film/index.ts +9 -0
- package/src/film/normalizeAudioAssets.ts +74 -0
- package/src/film/normalizeRenderTier.ts +51 -0
- package/src/film/planProductionRenderJob.ts +353 -0
- package/src/film/productionVisualDeliveryOccurrence.ts +28 -0
- package/src/film/resolveProductionRenderTierFrameFormat.ts +60 -0
- package/src/film/validDigest.ts +23 -0
- package/src/film/validWaveAudioIdentity.ts +88 -0
- package/src/frameName.ts +24 -0
- package/src/framePattern.ts +19 -0
- package/src/frameTimes.ts +36 -0
- package/src/guidePassFrameName.ts +29 -0
- package/src/guidePassFramePattern.ts +27 -0
- package/src/guidePasses.ts +7 -0
- package/src/guidePassesInternal/passExtension.ts +19 -0
- package/src/index.ts +69 -0
- package/src/isGuidePass.ts +21 -0
- package/src/normalizeGuidePasses.ts +33 -0
- package/src/planCaptionSidecar.ts +98 -0
- package/src/planChunkedSequenceRender.ts +200 -0
- package/src/planGuidePassOutputs.ts +47 -0
- package/src/planPoseKeypointSidecar.ts +289 -0
- package/src/planSequenceRender.ts +175 -0
- package/src/planViewerFrameTimes.ts +98 -0
- package/src/renderAndSee.ts +30 -0
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +53 -0
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +61 -0
- package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +29 -0
- package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +137 -0
- package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +100 -0
- package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +82 -0
- package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +40 -0
- package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +59 -0
- package/src/renderBudgetPreflight/index.ts +9 -0
- package/src/renderBudgetPreflight/selectAutoMovieRenderBudget.ts +28 -0
- package/src/renderCaptionSidecar.ts +17 -0
- package/src/renderObservationAudit.ts +1 -0
- package/src/renderPathStem.ts +61 -0
- package/src/renderPoseKeypointSidecar.ts +19 -0
- package/src/renderSequenceAndSee.ts +34 -0
- package/src/renderSequenceVideo.ts +44 -0
- package/src/renderVideo.ts +65 -0
- package/src/screenplay/index.ts +1 -0
- package/src/screenplay/renderScreenplay.ts +128 -0
- package/src/screenplay/screenplaySceneSlug.ts +29 -0
- package/src/sequenceRenderPlan.ts +5 -0
- package/src/sequenceRenderVideo.ts +6 -0
- package/src/shotBeat.ts +19 -0
- package/src/sliceCaptionSidecar.ts +85 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AutoMovieGuidePass } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Append the pass tag to an extension; beauty uses the untagged extension.
|
|
4
|
+
* Both frame-name and encoder-pattern producers use this same spelling.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation A non-beauty pass becomes an extension segment before the media suffix, while beauty preserves the documented single-pass filename convention.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One formatter supplies the common pass-tag rule to guidePassFrameName and guidePassFramePattern without duplicating their numbering logic.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Beauty's untagged path is the supported filename convention; every other admitted pass uses the same interpolation and no consumer is recognized.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the beauty exception and the two naming consumers whose extensions must agree.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Returning beauty's existing extension is constant work, while another pass allocates one string proportional to the pass name and suffix length.
|
|
11
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Formatting one extension does not coordinate requests; the callers share the rule rather than a cache keyed by short strings.
|
|
12
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The returned extension retains only string data; the formatter keeps no pass history and opens no output file.
|
|
13
|
+
*/
|
|
14
|
+
export declare const passExtension: (pass: AutoMovieGuidePass, ext: string) => string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.passExtension = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Append the pass tag to an extension; beauty uses the untagged extension.
|
|
6
|
+
* Both frame-name and encoder-pattern producers use this same spelling.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation A non-beauty pass becomes an extension segment before the media suffix, while beauty preserves the documented single-pass filename convention.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One formatter supplies the common pass-tag rule to guidePassFrameName and guidePassFramePattern without duplicating their numbering logic.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Beauty's untagged path is the supported filename convention; every other admitted pass uses the same interpolation and no consumer is recognized.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the beauty exception and the two naming consumers whose extensions must agree.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Returning beauty's existing extension is constant work, while another pass allocates one string proportional to the pass name and suffix length.
|
|
13
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Formatting one extension does not coordinate requests; the callers share the rule rather than a cache keyed by short strings.
|
|
14
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The returned extension retains only string data; the formatter keeps no pass history and opens no output file.
|
|
15
|
+
*/
|
|
16
|
+
const passExtension = (pass, ext) => pass === "beauty" ? ext : `${pass}.${ext}`;
|
|
17
|
+
exports.passExtension = passExtension;
|
|
18
|
+
//# sourceMappingURL=passExtension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passExtension.js","sourceRoot":"","sources":["../../src/guidePassesInternal/passExtension.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;GAWG;AACI,MAAM,aAAa,GAGZ,CAAC,IAAwB,EAAE,GAAW,EAAU,EAAE,CAC9D,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,GAAG,EAAE,CAAC;AAJhC,QAAA,aAAa,GAAb,aAAa,CAImB"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export * from "./caption";
|
|
2
|
+
export * from "./delivery";
|
|
3
|
+
export * from "./film";
|
|
4
|
+
export * from "./ffmpegArgs";
|
|
5
|
+
export * from "./frameName";
|
|
6
|
+
export * from "./framePattern";
|
|
7
|
+
export * from "./frameTimes";
|
|
8
|
+
export * from "./IAutoMoviePoseKeypointActor";
|
|
9
|
+
export * from "./IAutoMoviePoseKeypointFrame";
|
|
10
|
+
export * from "./IAutoMoviePoseKeypointSidecar";
|
|
11
|
+
export * from "./planPoseKeypointSidecar";
|
|
12
|
+
export * from "./renderAndSee";
|
|
13
|
+
export * from "./renderBudgetPreflight";
|
|
14
|
+
export * from "./renderObservationAudit";
|
|
15
|
+
export * from "./renderPathStem";
|
|
16
|
+
export * from "./renderPoseKeypointSidecar";
|
|
17
|
+
export * from "./renderVideo";
|
|
18
|
+
export * from "./screenplay";
|
|
19
|
+
export * from "./IAutoMovieRenderAdapters";
|
|
20
|
+
export * from "./IAutoMovieCapturedFrame";
|
|
21
|
+
export * from "./IAutoMovieRenderResult";
|
|
22
|
+
export * from "./IAutoMovieRenderAndSeeRequest";
|
|
23
|
+
export * from "./IAutoMovieRenderAndSeeResult";
|
|
24
|
+
export * from "./IAutoMovieSequenceRenderShotSpan";
|
|
25
|
+
export * from "./IAutoMovieSequenceRenderTransitionSpan";
|
|
26
|
+
export * from "./IAutoMovieSequenceRenderFrame";
|
|
27
|
+
export * from "./IAutoMovieSequenceRenderPlan";
|
|
28
|
+
export * from "./planSequenceRender";
|
|
29
|
+
export * from "./planViewerFrameTimes";
|
|
30
|
+
export * from "./IAutoMovieSequenceRenderAdapters";
|
|
31
|
+
export * from "./IAutoMovieSequenceRenderResult";
|
|
32
|
+
export * from "./IAutoMovieSequenceRenderAndSeeRequest";
|
|
33
|
+
export * from "./IAutoMovieSequenceRenderAndSeeResult";
|
|
34
|
+
export * from "./renderSequenceVideo";
|
|
35
|
+
export * from "./renderSequenceAndSee";
|
|
36
|
+
export * from "./planCaptionSidecar";
|
|
37
|
+
export * from "./IAutoMovieCaptionEntry";
|
|
38
|
+
export * from "./IAutoMovieCaptionSidecar";
|
|
39
|
+
export * from "./renderCaptionSidecar";
|
|
40
|
+
export * from "./sliceCaptionSidecar";
|
|
41
|
+
export * from "./IAutoMovieRenderChunk";
|
|
42
|
+
export * from "./IAutoMovieRenderPassManifest";
|
|
43
|
+
export * from "./IAutoMovieRenderReassembly";
|
|
44
|
+
export * from "./IAutoMovieRenderChunkPlan";
|
|
45
|
+
export * from "./planChunkedSequenceRender";
|
|
46
|
+
export * from "./AUTOMOVIE_GUIDE_PASSES";
|
|
47
|
+
export * from "./isGuidePass";
|
|
48
|
+
export * from "./guidePassFrameName";
|
|
49
|
+
export * from "./guidePassFramePattern";
|
|
50
|
+
export * from "./IAutoMovieGuidePassOutput";
|
|
51
|
+
export * from "./normalizeGuidePasses";
|
|
52
|
+
export * from "./planGuidePassOutputs";
|
|
53
|
+
export * from "./audio";
|
|
54
|
+
export * from "./cache/createAutoMovieHttpArtifactStore";
|
|
55
|
+
export * from "./film/equalOrderedScalars";
|
|
56
|
+
export * from "./guidePasses";
|
|
57
|
+
export * from "./delivery/IAutoMovieProductionVideoProfile";
|
|
58
|
+
export * from "./delivery/assertProductionVideoProfile";
|
|
59
|
+
export * from "./delivery/resolveProductionVideoProfile";
|
|
60
|
+
export * from ".";
|
|
61
|
+
export * from "./film/productionVisualDeliveryOccurrence";
|
|
62
|
+
export * from "./delivery/auditAutoMovieDecodedFrames";
|
|
63
|
+
export * from "./delivery/auditAutoMovieEncodedPresentation";
|
|
64
|
+
export * from "./audio/encodeAutoMovieWavPcm16";
|
|
65
|
+
export * from "./audio/mixAutoMovieAudioPcm";
|
|
66
|
+
export * from "./delivery/assertProductionOpusProfile";
|
|
67
|
+
export * from "./delivery/productionOpusDescription";
|
|
68
|
+
export * from "./delivery/AUTOMOVIE_MP4_SRGB_COLOUR";
|
|
69
|
+
export * from "./delivery/AUTOMOVIE_MP4_UNITY_MATRIX";
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
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("./caption"), exports);
|
|
18
|
+
__exportStar(require("./delivery"), exports);
|
|
19
|
+
__exportStar(require("./film"), exports);
|
|
20
|
+
__exportStar(require("./ffmpegArgs"), exports);
|
|
21
|
+
__exportStar(require("./frameName"), exports);
|
|
22
|
+
__exportStar(require("./framePattern"), exports);
|
|
23
|
+
__exportStar(require("./frameTimes"), exports);
|
|
24
|
+
__exportStar(require("./IAutoMoviePoseKeypointActor"), exports);
|
|
25
|
+
__exportStar(require("./IAutoMoviePoseKeypointFrame"), exports);
|
|
26
|
+
__exportStar(require("./IAutoMoviePoseKeypointSidecar"), exports);
|
|
27
|
+
__exportStar(require("./planPoseKeypointSidecar"), exports);
|
|
28
|
+
__exportStar(require("./renderAndSee"), exports);
|
|
29
|
+
__exportStar(require("./renderBudgetPreflight"), exports);
|
|
30
|
+
__exportStar(require("./renderObservationAudit"), exports);
|
|
31
|
+
__exportStar(require("./renderPathStem"), exports);
|
|
32
|
+
__exportStar(require("./renderPoseKeypointSidecar"), exports);
|
|
33
|
+
__exportStar(require("./renderVideo"), exports);
|
|
34
|
+
__exportStar(require("./screenplay"), exports);
|
|
35
|
+
__exportStar(require("./IAutoMovieRenderAdapters"), exports);
|
|
36
|
+
__exportStar(require("./IAutoMovieCapturedFrame"), exports);
|
|
37
|
+
__exportStar(require("./IAutoMovieRenderResult"), exports);
|
|
38
|
+
__exportStar(require("./IAutoMovieRenderAndSeeRequest"), exports);
|
|
39
|
+
__exportStar(require("./IAutoMovieRenderAndSeeResult"), exports);
|
|
40
|
+
__exportStar(require("./IAutoMovieSequenceRenderShotSpan"), exports);
|
|
41
|
+
__exportStar(require("./IAutoMovieSequenceRenderTransitionSpan"), exports);
|
|
42
|
+
__exportStar(require("./IAutoMovieSequenceRenderFrame"), exports);
|
|
43
|
+
__exportStar(require("./IAutoMovieSequenceRenderPlan"), exports);
|
|
44
|
+
__exportStar(require("./planSequenceRender"), exports);
|
|
45
|
+
__exportStar(require("./planViewerFrameTimes"), exports);
|
|
46
|
+
__exportStar(require("./IAutoMovieSequenceRenderAdapters"), exports);
|
|
47
|
+
__exportStar(require("./IAutoMovieSequenceRenderResult"), exports);
|
|
48
|
+
__exportStar(require("./IAutoMovieSequenceRenderAndSeeRequest"), exports);
|
|
49
|
+
__exportStar(require("./IAutoMovieSequenceRenderAndSeeResult"), exports);
|
|
50
|
+
__exportStar(require("./renderSequenceVideo"), exports);
|
|
51
|
+
__exportStar(require("./renderSequenceAndSee"), exports);
|
|
52
|
+
__exportStar(require("./planCaptionSidecar"), exports);
|
|
53
|
+
__exportStar(require("./IAutoMovieCaptionEntry"), exports);
|
|
54
|
+
__exportStar(require("./IAutoMovieCaptionSidecar"), exports);
|
|
55
|
+
__exportStar(require("./renderCaptionSidecar"), exports);
|
|
56
|
+
__exportStar(require("./sliceCaptionSidecar"), exports);
|
|
57
|
+
__exportStar(require("./IAutoMovieRenderChunk"), exports);
|
|
58
|
+
__exportStar(require("./IAutoMovieRenderPassManifest"), exports);
|
|
59
|
+
__exportStar(require("./IAutoMovieRenderReassembly"), exports);
|
|
60
|
+
__exportStar(require("./IAutoMovieRenderChunkPlan"), exports);
|
|
61
|
+
__exportStar(require("./planChunkedSequenceRender"), exports);
|
|
62
|
+
__exportStar(require("./AUTOMOVIE_GUIDE_PASSES"), exports);
|
|
63
|
+
__exportStar(require("./isGuidePass"), exports);
|
|
64
|
+
__exportStar(require("./guidePassFrameName"), exports);
|
|
65
|
+
__exportStar(require("./guidePassFramePattern"), exports);
|
|
66
|
+
__exportStar(require("./IAutoMovieGuidePassOutput"), exports);
|
|
67
|
+
__exportStar(require("./normalizeGuidePasses"), exports);
|
|
68
|
+
__exportStar(require("./planGuidePassOutputs"), exports);
|
|
69
|
+
__exportStar(require("./audio"), exports);
|
|
70
|
+
__exportStar(require("./cache/createAutoMovieHttpArtifactStore"), exports);
|
|
71
|
+
__exportStar(require("./film/equalOrderedScalars"), exports);
|
|
72
|
+
__exportStar(require("./guidePasses"), exports);
|
|
73
|
+
__exportStar(require("./delivery/IAutoMovieProductionVideoProfile"), exports);
|
|
74
|
+
__exportStar(require("./delivery/assertProductionVideoProfile"), exports);
|
|
75
|
+
__exportStar(require("./delivery/resolveProductionVideoProfile"), exports);
|
|
76
|
+
__exportStar(require("."), exports);
|
|
77
|
+
__exportStar(require("./film/productionVisualDeliveryOccurrence"), exports);
|
|
78
|
+
__exportStar(require("./delivery/auditAutoMovieDecodedFrames"), exports);
|
|
79
|
+
__exportStar(require("./delivery/auditAutoMovieEncodedPresentation"), exports);
|
|
80
|
+
__exportStar(require("./audio/encodeAutoMovieWavPcm16"), exports);
|
|
81
|
+
__exportStar(require("./audio/mixAutoMovieAudioPcm"), exports);
|
|
82
|
+
__exportStar(require("./delivery/assertProductionOpusProfile"), exports);
|
|
83
|
+
__exportStar(require("./delivery/productionOpusDescription"), exports);
|
|
84
|
+
__exportStar(require("./delivery/AUTOMOVIE_MP4_SRGB_COLOUR"), exports);
|
|
85
|
+
__exportStar(require("./delivery/AUTOMOVIE_MP4_UNITY_MATRIX"), exports);
|
|
86
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,8CAA4B;AAC5B,iDAA+B;AAC/B,+CAA6B;AAC7B,gEAA8C;AAC9C,gEAA8C;AAC9C,kEAAgD;AAChD,4DAA0C;AAC1C,iDAA+B;AAC/B,0DAAwC;AACxC,2DAAyC;AACzC,mDAAiC;AACjC,8DAA4C;AAC5C,gDAA8B;AAC9B,+CAA6B;AAC7B,6DAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,kEAAgD;AAChD,iEAA+C;AAC/C,qEAAmD;AACnD,2EAAyD;AACzD,kEAAgD;AAChD,iEAA+C;AAC/C,uDAAqC;AACrC,yDAAuC;AACvC,qEAAmD;AACnD,mEAAiD;AACjD,0EAAwD;AACxD,yEAAuD;AACvD,wDAAsC;AACtC,yDAAuC;AACvC,uDAAqC;AACrC,2DAAyC;AACzC,6DAA2C;AAC3C,yDAAuC;AACvC,wDAAsC;AACtC,0DAAwC;AACxC,iEAA+C;AAC/C,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,0CAAwB;AACxB,2EAAyD;AACzD,6DAA2C;AAC3C,gDAA8B;AAC9B,8EAA4D;AAC5D,0EAAwD;AACxD,2EAAyD;AACzD,oCAAkB;AAClB,4EAA0D;AAC1D,yEAAuD;AACvD,+EAA6D;AAC7D,kEAAgD;AAChD,+DAA6C;AAC7C,yEAAuD;AACvD,uEAAqD;AACrD,uEAAqD;AACrD,wEAAsD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AutoMovieGuidePass } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Whether a string names a guide pass, narrowing it to `AutoMovieGuidePass`.
|
|
4
|
+
*
|
|
5
|
+
* The comparison is exact and case-sensitive against `AUTOMOVIE_GUIDE_PASSES`.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Membership in the runtime list that mirrors the closed union is the definition of a valid pass name, and a TypeScript type predicate carries that proof to the caller's type.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate over the one runtime list serves every pass check in render, including `normalizeGuidePasses` and the production planner's `assertSingleGuidePass`.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No name is special-cased or case-folded; the widening cast to `readonly string[]` only lets `includes` accept an unnarrowed string.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the narrowing, the list compared against, and that matching is exact and case-sensitive.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Membership scans at most the registry's six entries and allocates no lookup structure per request; the fixed supported population bounds the comparisons.
|
|
12
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure membership test on one string coordinates no phases, so there is no work to share.
|
|
13
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The six-name list is a module constant shared by all calls, and the membership test allocates nothing per call, so retention is fixed at that list.
|
|
14
|
+
*/
|
|
15
|
+
export declare const isGuidePass: (value: string) => value is AutoMovieGuidePass;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isGuidePass = void 0;
|
|
4
|
+
const AUTOMOVIE_GUIDE_PASSES_1 = require("./AUTOMOVIE_GUIDE_PASSES");
|
|
5
|
+
/**
|
|
6
|
+
* Whether a string names a guide pass, narrowing it to `AutoMovieGuidePass`.
|
|
7
|
+
*
|
|
8
|
+
* The comparison is exact and case-sensitive against `AUTOMOVIE_GUIDE_PASSES`.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Membership in the runtime list that mirrors the closed union is the definition of a valid pass name, and a TypeScript type predicate carries that proof to the caller's type.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate over the one runtime list serves every pass check in render, including `normalizeGuidePasses` and the production planner's `assertSingleGuidePass`.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No name is special-cased or case-folded; the widening cast to `readonly string[]` only lets `includes` accept an unnarrowed string.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the narrowing, the list compared against, and that matching is exact and case-sensitive.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Membership scans at most the registry's six entries and allocates no lookup structure per request; the fixed supported population bounds the comparisons.
|
|
15
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure membership test on one string coordinates no phases, so there is no work to share.
|
|
16
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The six-name list is a module constant shared by all calls, and the membership test allocates nothing per call, so retention is fixed at that list.
|
|
17
|
+
*/
|
|
18
|
+
const isGuidePass = (value) => AUTOMOVIE_GUIDE_PASSES_1.AUTOMOVIE_GUIDE_PASSES.includes(value);
|
|
19
|
+
exports.isGuidePass = isGuidePass;
|
|
20
|
+
//# sourceMappingURL=isGuidePass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isGuidePass.js","sourceRoot":"","sources":["../src/isGuidePass.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAElE;;;;;;;;;;;;GAYG;AACI,MAAM,WAAW,GAAmD,CACzE,KAAa,EACgB,EAAE,CAC9B,+CAA4C,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAHnD,QAAA,WAAW,GAAX,WAAW,CAGwC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AutoMovieGuidePass } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Validate a requested pass list and fold repeats, keeping each pass at its first position.
|
|
4
|
+
*
|
|
5
|
+
* Throws `unknown guide pass "<name>"` for a name outside `AUTOMOVIE_GUIDE_PASSES`. `planGuidePassOutputs` and the chunked sequence planner both normalize through it, so a request means the same pass order everywhere. The production planner's `assertSingleGuidePass` is a narrower rule and does not use it.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation A seen-set with first-occurrence wins is order-preserving deduplication, and membership is `isGuidePass`, so the result is the request's distinct valid passes in request order.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One loop does validation and folding together, and the function is the single normalization the sequence planners share so their pass orders cannot drift.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No pass is special-cased or silently dropped; an unknown name throws instead of being skipped.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the folding rule, the exact refusal message, which callers depend on it, and how it differs from the production planner's rule.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One pass over the P requested names with constant-time set and list membership, O(P) time and at most six retained passes.
|
|
12
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call validates its supplied request independently and returns first-occurrence order; the shared constant registry carries the only invariant data between calls.
|
|
13
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The seen-set is local and released on return; the returned list, owned by the caller, holds at most six passes.
|
|
14
|
+
*/
|
|
15
|
+
export declare const normalizeGuidePasses: (passes: readonly string[]) => AutoMovieGuidePass[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.normalizeGuidePasses = void 0;
|
|
4
|
+
const isGuidePass_1 = require("./isGuidePass");
|
|
5
|
+
/**
|
|
6
|
+
* Validate a requested pass list and fold repeats, keeping each pass at its first position.
|
|
7
|
+
*
|
|
8
|
+
* Throws `unknown guide pass "<name>"` for a name outside `AUTOMOVIE_GUIDE_PASSES`. `planGuidePassOutputs` and the chunked sequence planner both normalize through it, so a request means the same pass order everywhere. The production planner's `assertSingleGuidePass` is a narrower rule and does not use it.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation A seen-set with first-occurrence wins is order-preserving deduplication, and membership is `isGuidePass`, so the result is the request's distinct valid passes in request order.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One loop does validation and folding together, and the function is the single normalization the sequence planners share so their pass orders cannot drift.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No pass is special-cased or silently dropped; an unknown name throws instead of being skipped.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the folding rule, the exact refusal message, which callers depend on it, and how it differs from the production planner's rule.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One pass over the P requested names with constant-time set and list membership, O(P) time and at most six retained passes.
|
|
15
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call validates its supplied request independently and returns first-occurrence order; the shared constant registry carries the only invariant data between calls.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The seen-set is local and released on return; the returned list, owned by the caller, holds at most six passes.
|
|
17
|
+
*/
|
|
18
|
+
const normalizeGuidePasses = (passes) => {
|
|
19
|
+
const seen = new Set();
|
|
20
|
+
const normalized = [];
|
|
21
|
+
for (const pass of passes) {
|
|
22
|
+
if ((0, isGuidePass_1.isGuidePass)(pass) === false)
|
|
23
|
+
throw new Error(`unknown guide pass "${pass}"`);
|
|
24
|
+
if (seen.has(pass))
|
|
25
|
+
continue;
|
|
26
|
+
seen.add(pass);
|
|
27
|
+
normalized.push(pass);
|
|
28
|
+
}
|
|
29
|
+
return normalized;
|
|
30
|
+
};
|
|
31
|
+
exports.normalizeGuidePasses = normalizeGuidePasses;
|
|
32
|
+
//# sourceMappingURL=normalizeGuidePasses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeGuidePasses.js","sourceRoot":"","sources":["../src/normalizeGuidePasses.ts"],"names":[],"mappings":";;;AAEA,+CAA4C;AAE5C;;;;;;;;;;;;GAYG;AACI,MAAM,oBAAoB,GAEL,CAC1B,MAAyB,EACH,EAAE;IACxB,MAAM,IAAI,GAA4B,IAAI,GAAG,EAAE,CAAC;IAChD,MAAM,UAAU,GAAyB,EAAE,CAAC;IAC5C,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;QAC1B,IAAI,IAAA,yBAAW,EAAC,IAAI,CAAC,KAAK,KAAK;YAC7B,MAAM,IAAI,KAAK,CAAC,uBAAuB,IAAI,GAAG,CAAC,CAAC;QAClD,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,SAAS;QAC7B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACf,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAfW,QAAA,oBAAoB,GAApB,oBAAoB,CAe/B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IAutoMovieScript, IAutoMovieSequence, IAutoMovieShot } from "@automovie/interface";
|
|
2
|
+
import { IAutoMovieCaptionSidecar } from "./captionSidecar";
|
|
3
|
+
/**
|
|
4
|
+
* Plan the caption sidecar of one sequence render: which beat's shot is live at every output frame, grouped into spans, each joined to its beat's caption and enclosing scene slug.
|
|
5
|
+
*
|
|
6
|
+
* The cut is laid on the output clock by `sequenceTimeline`, and the output frames are the `frameTimes` schedule `planSequenceRender` captures, so span boundaries land on the same frames as the render. A frame inside a transition belongs to the incoming shot, as in playback. A shot id `shot:<beat>` names that beat; an unprefixed id is taken as the beat id itself. A beat with no caption, or a script without a tree, yields null `caption` and `slug` while the frame-to-beat spans remain.
|
|
7
|
+
*
|
|
8
|
+
* Throws when `fps` is not a finite positive number, when the runtime rounds to zero output frames (the same refusal `planSequenceRender` makes), or when `sequenceTimeline` refuses the cut. Planning only: the host writes the file through `renderCaptionSidecar`.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Frames come from frameTimes, the independently computed binary64 i/fps schedule the render plan uses, and a forward-only playbackCursor resolves each instant to the live shot. Division can round, but the positive clock gives the non-decreasing queries the cursor requires; grouping consecutive equal beats into half-open spans covers every scheduled frame exactly once.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Timeline layout and live-shot resolution stay in the engine, the beat index in `beatCaptions`, and serialization in `renderCaptionSidecar`; this function owns only sampling, grouping and the join, so the sidecar cannot drift from the render's frame schedule.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `shot:` prefix is the interface's documented shot-to-beat naming, not a fixture case, read through `shotBeat`, which the pose-keypoint plan shares, and no sequence or beat is special-cased.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the clock and schedule shared with the render, the transition rule, the shot-to-beat mapping, the null states, every refusal, and that the host writes the file.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For S supplied shots, F output frames, E cut entries and N script-tree nodes, timeline indexing, caption indexing and the cursor sweep take O(S+F+E+N) work. The schedule holds F times, the returned range list can also reach F entries, and each range joins the beat index once without retaining a separate playback-sample array.
|
|
15
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner computes one sidecar per call from caller-supplied values and coordinates no phases; a host that also plans the render recomputes the shared schedule, which is cheap arithmetic.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The frame schedule, cursor and beat index are local and released on return; the returned sidecar, owned by the caller, holds one entry per run of consecutive frames of one beat, at most F.
|
|
17
|
+
*/
|
|
18
|
+
export declare const planCaptionSidecar: (props: {
|
|
19
|
+
script: IAutoMovieScript;
|
|
20
|
+
sequence: IAutoMovieSequence;
|
|
21
|
+
shots: IAutoMovieShot[];
|
|
22
|
+
fps: number;
|
|
23
|
+
}) => IAutoMovieCaptionSidecar;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.planCaptionSidecar = void 0;
|
|
4
|
+
const engine_1 = require("@automovie/engine");
|
|
5
|
+
const beatCaptions_1 = require("./caption/beatCaptions");
|
|
6
|
+
const frameTimes_1 = require("./frameTimes");
|
|
7
|
+
const shotBeat_1 = require("./shotBeat");
|
|
8
|
+
/**
|
|
9
|
+
* Plan the caption sidecar of one sequence render: which beat's shot is live at every output frame, grouped into spans, each joined to its beat's caption and enclosing scene slug.
|
|
10
|
+
*
|
|
11
|
+
* The cut is laid on the output clock by `sequenceTimeline`, and the output frames are the `frameTimes` schedule `planSequenceRender` captures, so span boundaries land on the same frames as the render. A frame inside a transition belongs to the incoming shot, as in playback. A shot id `shot:<beat>` names that beat; an unprefixed id is taken as the beat id itself. A beat with no caption, or a script without a tree, yields null `caption` and `slug` while the frame-to-beat spans remain.
|
|
12
|
+
*
|
|
13
|
+
* Throws when `fps` is not a finite positive number, when the runtime rounds to zero output frames (the same refusal `planSequenceRender` makes), or when `sequenceTimeline` refuses the cut. Planning only: the host writes the file through `renderCaptionSidecar`.
|
|
14
|
+
*
|
|
15
|
+
* @evidence contracts/development/implementation.md#principled-implementation Frames come from frameTimes, the independently computed binary64 i/fps schedule the render plan uses, and a forward-only playbackCursor resolves each instant to the live shot. Division can round, but the positive clock gives the non-decreasing queries the cursor requires; grouping consecutive equal beats into half-open spans covers every scheduled frame exactly once.
|
|
16
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Timeline layout and live-shot resolution stay in the engine, the beat index in `beatCaptions`, and serialization in `renderCaptionSidecar`; this function owns only sampling, grouping and the join, so the sidecar cannot drift from the render's frame schedule.
|
|
17
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `shot:` prefix is the interface's documented shot-to-beat naming, not a fixture case, read through `shotBeat`, which the pose-keypoint plan shares, and no sequence or beat is special-cased.
|
|
18
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the clock and schedule shared with the render, the transition rule, the shot-to-beat mapping, the null states, every refusal, and that the host writes the file.
|
|
19
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For S supplied shots, F output frames, E cut entries and N script-tree nodes, timeline indexing, caption indexing and the cursor sweep take O(S+F+E+N) work. The schedule holds F times, the returned range list can also reach F entries, and each range joins the beat index once without retaining a separate playback-sample array.
|
|
20
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner computes one sidecar per call from caller-supplied values and coordinates no phases; a host that also plans the render recomputes the shared schedule, which is cheap arithmetic.
|
|
21
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The frame schedule, cursor and beat index are local and released on return; the returned sidecar, owned by the caller, holds one entry per run of consecutive frames of one beat, at most F.
|
|
22
|
+
*/
|
|
23
|
+
const planCaptionSidecar = (props) => {
|
|
24
|
+
const script = props.script;
|
|
25
|
+
const sequence = props.sequence;
|
|
26
|
+
const shots = props.shots;
|
|
27
|
+
const fps = props.fps;
|
|
28
|
+
if (!Number.isFinite(fps) || fps <= 0)
|
|
29
|
+
throw new Error(`fps must be a finite number > 0, but was ${fps}`);
|
|
30
|
+
const timeline = (0, engine_1.sequenceTimeline)(sequence, shots);
|
|
31
|
+
const times = (0, frameTimes_1.frameTimes)(fps, timeline.runtime);
|
|
32
|
+
if (times.length === 0)
|
|
33
|
+
throw new Error(`planCaptionSidecar requires at least one frame; fps ${fps} and duration ${timeline.runtime} produced zero frames`);
|
|
34
|
+
const captions = (0, beatCaptions_1.beatCaptions)(script);
|
|
35
|
+
const cursor = (0, engine_1.playbackCursor)(sequence, timeline);
|
|
36
|
+
const entries = [];
|
|
37
|
+
times.forEach((time, frame) => {
|
|
38
|
+
const beat = (0, shotBeat_1.shotBeat)(cursor(time).shot);
|
|
39
|
+
const last = entries[entries.length - 1];
|
|
40
|
+
if (last !== undefined && last.beat === beat) {
|
|
41
|
+
last.frameEnd = frame + 1;
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const authored = captions.get(beat);
|
|
45
|
+
entries.push({
|
|
46
|
+
frameStart: frame,
|
|
47
|
+
frameEnd: frame + 1,
|
|
48
|
+
beat,
|
|
49
|
+
caption: authored?.caption ?? null,
|
|
50
|
+
slug: authored?.slug ?? null,
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
return { target: sequence.id, fps, frameCount: times.length, entries };
|
|
54
|
+
};
|
|
55
|
+
exports.planCaptionSidecar = planCaptionSidecar;
|
|
56
|
+
//# sourceMappingURL=planCaptionSidecar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planCaptionSidecar.js","sourceRoot":"","sources":["../src/planCaptionSidecar.ts"],"names":[],"mappings":";;;AAAA,8CAK2B;AAQ3B,yDAAsD;AAKtD,6CAA0C;AAC1C,yCAAsC;AAEtC;;;;;;;;;;;;;;GAcG;AACI,MAAM,kBAAkB,GAKE,CAAC,KAcjC,EAA4B,EAAE;IAC7B,MAAM,MAAM,GAAqB,KAAK,CAAC,MAAM,CAAC;IAC9C,MAAM,QAAQ,GAAuB,KAAK,CAAC,QAAQ,CAAC;IACpD,MAAM,KAAK,GAAqB,KAAK,CAAC,KAAK,CAAC;IAC5C,MAAM,GAAG,GAAW,KAAK,CAAC,GAAG,CAAC;IAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;QACnC,MAAM,IAAI,KAAK,CAAC,4CAA4C,GAAG,EAAE,CAAC,CAAC;IAErE,MAAM,QAAQ,GAA+B,IAAA,yBAAgB,EAC3D,QAAQ,EACR,KAAK,CACN,CAAC;IACF,MAAM,KAAK,GAAa,IAAA,uBAAU,EAAC,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC1D,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,uDAAuD,GAAG,iBAAiB,QAAQ,CAAC,OAAO,uBAAuB,CACnH,CAAC;IACJ,MAAM,QAAQ,GAAuC,IAAA,2BAAY,EAAC,MAAM,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAkD,IAAA,uBAAc,EAC1E,QAAQ,EACR,QAAQ,CACT,CAAC;IAEF,MAAM,OAAO,GAA6B,EAAE,CAAC;IAC7C,KAAK,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,KAAa,EAAQ,EAAE;QAClD,MAAM,IAAI,GAAW,IAAA,mBAAQ,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QACjD,MAAM,IAAI,GACR,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;YAC7C,IAAI,CAAC,QAAQ,GAAG,KAAK,GAAG,CAAC,CAAC;YAC1B,OAAO;QACT,CAAC;QACD,MAAM,QAAQ,GAAsC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvE,OAAO,CAAC,IAAI,CAAC;YACX,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,KAAK,GAAG,CAAC;YACnB,IAAI;YACJ,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,IAAI;YAClC,IAAI,EAAE,QAAQ,EAAE,IAAI,IAAI,IAAI;SAC7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;AACzE,CAAC,CAAC;AA7DW,QAAA,kBAAkB,GAAlB,kBAAkB,CA6D7B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IAutoMovieRenderSpec } from "@automovie/interface";
|
|
2
|
+
import type { IAutoMovieRenderChunkPlan } from "./IAutoMovieRenderChunkPlan";
|
|
3
|
+
import { IAutoMovieSequenceRenderPlan } from "./sequenceRenderPlan";
|
|
4
|
+
/**
|
|
5
|
+
* Split a `planSequenceRender` manifest into `chunkFrames`-sized, independently renderable chunks and the plan to concatenate them.
|
|
6
|
+
*
|
|
7
|
+
* Chunks are frame-atomic: chunk `i` holds the whole plan's frames `[i * chunkFrames, (i + 1) * chunkFrames)`, the last one clipped to the total. A transition's blend is already baked into each frame's `blend`, so a transition that straddles a boundary is split between frames with each frame keeping its blend, and concatenating the chunks reproduces the whole render frame for frame. Running chunks in parallel or on a farm is a host concern. The plan holds every frame of the render; only capture and encoding are bounded per chunk.
|
|
8
|
+
*
|
|
9
|
+
* When `passes` is given, every chunk also plans its per-pass frame paths through `planGuidePassOutputs`, with chunk-local indices, and the plan gains one {@link IAutoMovieRenderPassManifest} per pass. Omitting `passes` omits every pass field; an empty list plans empty pass sets; an unknown pass name throws before any chunk is built. Throws when `chunkFrames` is not a positive integer.
|
|
10
|
+
*
|
|
11
|
+
* `planProductionRenderJob` partitions frames with the same arithmetic but a different contract, restarting its index per deliverable and admitting only safe integers, so the two do not share a helper.
|
|
12
|
+
*
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation Chunks are contiguous slices of the supplied binary64 frame schedule, so the method only re-labels frames and paths and never resamples time; the concat entries are basenames with each apostrophe written as `'\''`, the quoting `av_get_token` parses, because the demuxer resolves entries against the list file's directory and ends a quoted string at an apostrophe.
|
|
14
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The frameName, framePattern and ffmpegArgs helpers supply the same naming and encoding arguments as whole-render planning; guidePasses supplies pass normalization and naming. The production planner keeps separate partition arithmetic because its index restarts per deliverable and pass and its admission rule differs.
|
|
15
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The label pad width comes from the chunk count so labels sort in play order, the concat arguments are ffmpeg's documented lossless form, and no chunk, pass or path is special-cased.
|
|
16
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the boundary rule and why transitions survive it, that the plan holds all frames, the pass behavior for absent, empty and unknown lists, every refusal, and why production partitioning stays separate.
|
|
17
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For F frames, C chunks and P requested passes the metadata work is O(F + C * (P + 1)): each frame is sliced and re-labelled once, while each chunk builds paths and arguments and repeats bounded distinct-pass planning. Path string lengths additionally drive formatting and concat escaping.
|
|
18
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner builds one chunk plan from one whole plan per call and coordinates no phases or consumers whose results it could share.
|
|
19
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller-owned plan holds F relabelled frame records plus O(C * (P + 1)) pass/chunk path records and strings, whose byte lengths depend on supplied paths. Frame spreads share original non-path fields; per-chunk slice arrays become collectable after mapping, and this planner opens no handle or task.
|
|
20
|
+
*/
|
|
21
|
+
export declare const planChunkedSequenceRender: (props: {
|
|
22
|
+
plan: IAutoMovieSequenceRenderPlan;
|
|
23
|
+
spec: IAutoMovieRenderSpec;
|
|
24
|
+
chunkFrames: number;
|
|
25
|
+
passes?: readonly string[];
|
|
26
|
+
}) => IAutoMovieRenderChunkPlan;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.planChunkedSequenceRender = void 0;
|
|
4
|
+
const ffmpegArgs_1 = require("./ffmpegArgs");
|
|
5
|
+
const frameName_1 = require("./frameName");
|
|
6
|
+
const framePattern_1 = require("./framePattern");
|
|
7
|
+
const guidePasses_1 = require("./guidePasses");
|
|
8
|
+
/**
|
|
9
|
+
* Split a `planSequenceRender` manifest into `chunkFrames`-sized, independently renderable chunks and the plan to concatenate them.
|
|
10
|
+
*
|
|
11
|
+
* Chunks are frame-atomic: chunk `i` holds the whole plan's frames `[i * chunkFrames, (i + 1) * chunkFrames)`, the last one clipped to the total. A transition's blend is already baked into each frame's `blend`, so a transition that straddles a boundary is split between frames with each frame keeping its blend, and concatenating the chunks reproduces the whole render frame for frame. Running chunks in parallel or on a farm is a host concern. The plan holds every frame of the render; only capture and encoding are bounded per chunk.
|
|
12
|
+
*
|
|
13
|
+
* When `passes` is given, every chunk also plans its per-pass frame paths through `planGuidePassOutputs`, with chunk-local indices, and the plan gains one {@link IAutoMovieRenderPassManifest} per pass. Omitting `passes` omits every pass field; an empty list plans empty pass sets; an unknown pass name throws before any chunk is built. Throws when `chunkFrames` is not a positive integer.
|
|
14
|
+
*
|
|
15
|
+
* `planProductionRenderJob` partitions frames with the same arithmetic but a different contract, restarting its index per deliverable and admitting only safe integers, so the two do not share a helper.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/implementation.md#principled-implementation Chunks are contiguous slices of the supplied binary64 frame schedule, so the method only re-labels frames and paths and never resamples time; the concat entries are basenames with each apostrophe written as `'\''`, the quoting `av_get_token` parses, because the demuxer resolves entries against the list file's directory and ends a quoted string at an apostrophe.
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The frameName, framePattern and ffmpegArgs helpers supply the same naming and encoding arguments as whole-render planning; guidePasses supplies pass normalization and naming. The production planner keeps separate partition arithmetic because its index restarts per deliverable and pass and its admission rule differs.
|
|
19
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The label pad width comes from the chunk count so labels sort in play order, the concat arguments are ffmpeg's documented lossless form, and no chunk, pass or path is special-cased.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the boundary rule and why transitions survive it, that the plan holds all frames, the pass behavior for absent, empty and unknown lists, every refusal, and why production partitioning stays separate.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For F frames, C chunks and P requested passes the metadata work is O(F + C * (P + 1)): each frame is sliced and re-labelled once, while each chunk builds paths and arguments and repeats bounded distinct-pass planning. Path string lengths additionally drive formatting and concat escaping.
|
|
22
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner builds one chunk plan from one whole plan per call and coordinates no phases or consumers whose results it could share.
|
|
23
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller-owned plan holds F relabelled frame records plus O(C * (P + 1)) pass/chunk path records and strings, whose byte lengths depend on supplied paths. Frame spreads share original non-path fields; per-chunk slice arrays become collectable after mapping, and this planner opens no handle or task.
|
|
24
|
+
*/
|
|
25
|
+
const planChunkedSequenceRender = (props) => {
|
|
26
|
+
const plan = props.plan;
|
|
27
|
+
const spec = props.spec;
|
|
28
|
+
const chunkFrames = props.chunkFrames;
|
|
29
|
+
if (!Number.isInteger(chunkFrames) || chunkFrames <= 0)
|
|
30
|
+
throw new Error(`chunkFrames must be a positive integer, but was ${chunkFrames}`);
|
|
31
|
+
const passes = props.passes === undefined ? undefined : (0, guidePasses_1.normalizeGuidePasses)(props.passes);
|
|
32
|
+
const chunkCount = Math.ceil(plan.frames.length / chunkFrames);
|
|
33
|
+
const pad = String(Math.max(chunkCount - 1, 0)).length;
|
|
34
|
+
const chunks = Array.from({ length: chunkCount }, (_, index) => {
|
|
35
|
+
const frameStart = index * chunkFrames;
|
|
36
|
+
const frameEnd = Math.min(frameStart + chunkFrames, plan.frames.length);
|
|
37
|
+
const slice = plan.frames.slice(frameStart, frameEnd);
|
|
38
|
+
const label = `chunk_${String(index).padStart(pad, "0")}`;
|
|
39
|
+
const frameDir = `${plan.frameDir}/${label}`;
|
|
40
|
+
const frames = slice.map((frame, local) => ({
|
|
41
|
+
...frame,
|
|
42
|
+
index: local,
|
|
43
|
+
path: `${frameDir}/${(0, frameName_1.frameName)(local)}`,
|
|
44
|
+
}));
|
|
45
|
+
const inputPattern = `${frameDir}/${(0, framePattern_1.framePattern)()}`;
|
|
46
|
+
const outputPath = taggedOutput(plan.outputPath, label);
|
|
47
|
+
return {
|
|
48
|
+
index,
|
|
49
|
+
frameStart,
|
|
50
|
+
frameEnd,
|
|
51
|
+
frameCount: frames.length,
|
|
52
|
+
startSeconds: slice[0].timeSeconds,
|
|
53
|
+
endSeconds: slice[slice.length - 1].timeSeconds,
|
|
54
|
+
frames,
|
|
55
|
+
frameDir,
|
|
56
|
+
firstFrame: `${frameDir}/${(0, frameName_1.frameName)(0)}`,
|
|
57
|
+
lastFrame: `${frameDir}/${(0, frameName_1.frameName)(frames.length - 1)}`,
|
|
58
|
+
inputPattern,
|
|
59
|
+
outputPath,
|
|
60
|
+
ffmpegArgs: (0, ffmpegArgs_1.ffmpegArgs)(spec, inputPattern, outputPath),
|
|
61
|
+
...(passes === undefined
|
|
62
|
+
? {}
|
|
63
|
+
: {
|
|
64
|
+
passOutputs: (0, guidePasses_1.planGuidePassOutputs)({
|
|
65
|
+
frameDir,
|
|
66
|
+
frameCount: frames.length,
|
|
67
|
+
passes,
|
|
68
|
+
}),
|
|
69
|
+
}),
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
const chunkOutputs = chunks.map((chunk) => chunk.outputPath);
|
|
73
|
+
const concatListPath = `${plan.outputPath}.concat.txt`;
|
|
74
|
+
// The concat demuxer resolves a relative entry against the list file's
|
|
75
|
+
// directory, and `taggedOutput` keeps every chunk beside the list, so entries
|
|
76
|
+
// are basenames; a directory-qualified entry would resolve twice.
|
|
77
|
+
const concatListLines = chunkOutputs.map((output) => `file '${escapeConcatEntry(baseName(output))}'`);
|
|
78
|
+
return {
|
|
79
|
+
target: plan.target,
|
|
80
|
+
renderFps: plan.renderFps,
|
|
81
|
+
frameCount: plan.frames.length,
|
|
82
|
+
chunkFrames,
|
|
83
|
+
chunkCount,
|
|
84
|
+
chunks,
|
|
85
|
+
...(passes === undefined
|
|
86
|
+
? {}
|
|
87
|
+
: {
|
|
88
|
+
passManifests: passes.map((pass) => ({
|
|
89
|
+
pass,
|
|
90
|
+
chunkFrameDirs: chunks.map((chunk) => chunk.frameDir),
|
|
91
|
+
inputPatterns: chunks.map((chunk) => `${chunk.frameDir}/${(0, guidePasses_1.guidePassFramePattern)(pass)}`),
|
|
92
|
+
frameCount: plan.frames.length,
|
|
93
|
+
})),
|
|
94
|
+
}),
|
|
95
|
+
reassembly: {
|
|
96
|
+
outputPath: plan.outputPath,
|
|
97
|
+
chunkOutputs,
|
|
98
|
+
concatListPath,
|
|
99
|
+
concatListLines,
|
|
100
|
+
ffmpegArgs: [
|
|
101
|
+
"-y",
|
|
102
|
+
"-f",
|
|
103
|
+
"concat",
|
|
104
|
+
"-safe",
|
|
105
|
+
"0",
|
|
106
|
+
"-i",
|
|
107
|
+
concatListPath,
|
|
108
|
+
"-c",
|
|
109
|
+
"copy",
|
|
110
|
+
plan.outputPath,
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
exports.planChunkedSequenceRender = planChunkedSequenceRender;
|
|
116
|
+
/** The path's last segment, after the final `/` or `\`. */
|
|
117
|
+
const baseName = (path) => path.slice(Math.max(path.lastIndexOf("/"), path.lastIndexOf("\\")) + 1);
|
|
118
|
+
/**
|
|
119
|
+
* Escape one concat-demuxer entry for its single-quoted file line. A quoted string cannot contain `'`, so each apostrophe closes the quote, emits an escaped quote, and reopens it (`'` becomes `'\''`), the grammar ffmpeg's `av_get_token` parses.
|
|
120
|
+
*/
|
|
121
|
+
const escapeConcatEntry = (name) => name.replace(/'/g, "'\\''");
|
|
122
|
+
/**
|
|
123
|
+
* Insert a `.<label>` tag before the output's extension, or append it when the basename has none. The extension dot is searched only within the basename, so a dotted directory such as `out.v2/render` tags the file, not the directory.
|
|
124
|
+
*/
|
|
125
|
+
const taggedOutput = (output, label) => {
|
|
126
|
+
const dot = output.lastIndexOf(".");
|
|
127
|
+
const separator = Math.max(output.lastIndexOf("/"), output.lastIndexOf("\\"));
|
|
128
|
+
return dot <= separator
|
|
129
|
+
? `${output}.${label}`
|
|
130
|
+
: `${output.slice(0, dot)}.${label}${output.slice(dot)}`;
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=planChunkedSequenceRender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planChunkedSequenceRender.js","sourceRoot":"","sources":["../src/planChunkedSequenceRender.ts"],"names":[],"mappings":";;;AAKA,6CAA0C;AAC1C,2CAAwC;AACxC,iDAA8C;AAC9C,+CAIuB;AAMvB;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,yBAAyB,GAKJ,CAAC,KAYlC,EAA6B,EAAE;IAC9B,MAAM,IAAI,GAAiC,KAAK,CAAC,IAAI,CAAC;IACtD,MAAM,IAAI,GAAyB,KAAK,CAAC,IAAI,CAAC;IAC9C,MAAM,WAAW,GAAW,KAAK,CAAC,WAAW,CAAC;IAC9C,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,WAAW,IAAI,CAAC;QACpD,MAAM,IAAI,KAAK,CACb,mDAAmD,WAAW,EAAE,CACjE,CAAC;IACJ,MAAM,MAAM,GACV,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,kCAAoB,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9E,MAAM,UAAU,GAAW,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,WAAW,CAAC,CAAC;IACvE,MAAM,GAAG,GAAW,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAE/D,MAAM,MAAM,GAA4B,KAAK,CAAC,IAAI,CAChD,EAAE,MAAM,EAAE,UAAU,EAAE,EACtB,CAAC,CAAU,EAAE,KAAa,EAAyB,EAAE;QACnD,MAAM,UAAU,GAAW,KAAK,GAAG,WAAW,CAAC;QAC/C,MAAM,QAAQ,GAAW,IAAI,CAAC,GAAG,CAC/B,UAAU,GAAG,WAAW,EACxB,IAAI,CAAC,MAAM,CAAC,MAAM,CACnB,CAAC;QACF,MAAM,KAAK,GAAoC,IAAI,CAAC,MAAM,CAAC,KAAK,CAC9D,UAAU,EACV,QAAQ,CACT,CAAC;QACF,MAAM,KAAK,GAAW,SAAS,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;QAClE,MAAM,QAAQ,GAAW,GAAG,IAAI,CAAC,QAAQ,IAAI,KAAK,EAAE,CAAC;QACrD,MAAM,MAAM,GAAoC,KAAK,CAAC,GAAG,CACvD,CACE,KAAoC,EACpC,KAAa,EACkB,EAAE,CAAC,CAAC;YACnC,GAAG,KAAK;YACR,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,GAAG,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE;SACxC,CAAC,CACH,CAAC;QACF,MAAM,YAAY,GAAW,GAAG,QAAQ,IAAI,IAAA,2BAAY,GAAE,EAAE,CAAC;QAC7D,MAAM,UAAU,GAAW,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAChE,OAAO;YACL,KAAK;YACL,UAAU;YACV,QAAQ;YACR,UAAU,EAAE,MAAM,CAAC,MAAM;YACzB,YAAY,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,WAAW;YACnC,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,WAAW;YAChD,MAAM;YACN,QAAQ;YACR,UAAU,EAAE,GAAG,QAAQ,IAAI,IAAA,qBAAS,EAAC,CAAC,CAAC,EAAE;YACzC,SAAS,EAAE,GAAG,QAAQ,IAAI,IAAA,qBAAS,EAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE;YACxD,YAAY;YACZ,UAAU;YACV,UAAU,EAAE,IAAA,uBAAU,EAAC,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC;YACtD,GAAG,CAAC,MAAM,KAAK,SAAS;gBACtB,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC;oBACE,WAAW,EAAE,IAAA,kCAAoB,EAAC;wBAChC,QAAQ;wBACR,UAAU,EAAE,MAAM,CAAC,MAAM;wBACzB,MAAM;qBACP,CAAC;iBACH,CAAC;SACP,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,MAAM,YAAY,GAAa,MAAM,CAAC,GAAG,CACvC,CAAC,KAA4B,EAAU,EAAE,CAAC,KAAK,CAAC,UAAU,CAC3D,CAAC;IACF,MAAM,cAAc,GAAW,GAAG,IAAI,CAAC,UAAU,aAAa,CAAC;IAC/D,uEAAuE;IACvE,8EAA8E;IAC9E,kEAAkE;IAClE,MAAM,eAAe,GAAa,YAAY,CAAC,GAAG,CAChD,CAAC,MAAc,EAAU,EAAE,CAAC,SAAS,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,CAC5E,CAAC;IACF,OAAO;QACL,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;QAC9B,WAAW;QACX,UAAU;QACV,MAAM;QACN,GAAG,CAAC,MAAM,KAAK,SAAS;YACtB,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC;gBACE,aAAa,EAAE,MAAM,CAAC,GAAG,CACvB,CAAC,IAAwB,EAAgC,EAAE,CAAC,CAAC;oBAC3D,IAAI;oBACJ,cAAc,EAAE,MAAM,CAAC,GAAG,CACxB,CAAC,KAA4B,EAAU,EAAE,CAAC,KAAK,CAAC,QAAQ,CACzD;oBACD,aAAa,EAAE,MAAM,CAAC,GAAG,CACvB,CAAC,KAA4B,EAAU,EAAE,CACvC,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAA,mCAAqB,EAAC,IAAI,CAAC,EAAE,CACrD;oBACD,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;iBAC/B,CAAC,CACH;aACF,CAAC;QACN,UAAU,EAAE;YACV,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY;YACZ,cAAc;YACd,eAAe;YACf,UAAU,EAAE;gBACV,IAAI;gBACJ,IAAI;gBACJ,QAAQ;gBACR,OAAO;gBACP,GAAG;gBACH,IAAI;gBACJ,cAAc;gBACd,IAAI;gBACJ,MAAM;gBACN,IAAI,CAAC,UAAU;aAChB;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAzIW,QAAA,yBAAyB,GAAzB,yBAAyB,CAyIpC;AAEF,2DAA2D;AAC3D,MAAM,QAAQ,GAA6B,CAAC,IAAY,EAAU,EAAE,CAClE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1E;;GAEG;AACH,MAAM,iBAAiB,GAA6B,CAAC,IAAY,EAAU,EAAE,CAC3E,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAE9B;;GAEG;AACH,MAAM,YAAY,GAA8C,CAC9D,MAAc,EACd,KAAa,EACL,EAAE;IACV,MAAM,GAAG,GAAW,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,SAAS,GAAW,IAAI,CAAC,GAAG,CAChC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,EACvB,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CACzB,CAAC;IACF,OAAO,GAAG,IAAI,SAAS;QACrB,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,EAAE;QACtB,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;AAC7D,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IAutoMovieGuidePassOutput } from "./IAutoMovieGuidePassOutput";
|
|
2
|
+
/**
|
|
3
|
+
* Plan where each requested pass writes its frames inside one frame directory: one capture per pass per frame, at pass-tagged paths.
|
|
4
|
+
*
|
|
5
|
+
* Passes are normalized by `normalizeGuidePasses`, so repeats fold and an unknown name throws; an empty request yields an empty plan. Throws when `frameCount` is not a positive integer. Paths use the default `png` extension and five-digit numbering.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each output's first, last and pattern paths come from the same naming functions the capture writer uses, so the plan addresses exactly the files a capture of `frameCount` frames writes.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Validation of passes is delegated to `normalizeGuidePasses` and naming to `guidePassFrameName` and `guidePassFramePattern`; this function only checks the frame count and joins paths.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No pass, directory or frame count is special-cased, and an invalid count throws instead of being clamped.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states the pass normalization and its refusals, the empty-request result, the frame-count refusal, and the fixed extension and padding.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is O(P) for P requested names plus three short strings per distinct pass, at most six.
|
|
12
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call plans one frame directory from its own arguments, and the strings are cheaper to rebuild than to cache.
|
|
13
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function retains nothing after returning the plan its caller owns and opens no handle or task.
|
|
14
|
+
*/
|
|
15
|
+
export declare const planGuidePassOutputs: (props: {
|
|
16
|
+
frameDir: string;
|
|
17
|
+
frameCount: number;
|
|
18
|
+
passes: readonly string[];
|
|
19
|
+
}) => IAutoMovieGuidePassOutput[];
|