@automovie/render 0.2.0 → 0.3.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/lib/IAutoMovieCaptionEntry.d.ts +1 -28
- package/lib/IAutoMovieCaptionSidecar.d.ts +1 -25
- package/lib/IAutoMovieCapturedFrame.d.ts +1 -22
- package/lib/IAutoMovieGuidePassOutput.d.ts +1 -23
- package/lib/IAutoMoviePoseKeypointActor.d.ts +1 -36
- package/lib/IAutoMoviePoseKeypointFrame.d.ts +1 -25
- package/lib/IAutoMoviePoseKeypointSidecar.d.ts +1 -21
- package/lib/IAutoMovieRenderAdapters.d.ts +1 -34
- package/lib/IAutoMovieRenderAndSeeRequest.d.ts +1 -32
- package/lib/IAutoMovieRenderAndSeeResult.d.ts +1 -20
- package/lib/IAutoMovieRenderChunk.d.ts +1 -48
- package/lib/IAutoMovieRenderChunkPlan.d.ts +1 -32
- package/lib/IAutoMovieRenderPassManifest.d.ts +1 -21
- package/lib/IAutoMovieRenderReassembly.d.ts +1 -24
- package/lib/IAutoMovieRenderResult.d.ts +1 -39
- package/lib/IAutoMovieSequenceRenderAdapters.d.ts +1 -36
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +1 -36
- package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +1 -23
- package/lib/IAutoMovieSequenceRenderFrame.d.ts +1 -41
- package/lib/IAutoMovieSequenceRenderPlan.d.ts +1 -76
- package/lib/IAutoMovieSequenceRenderResult.d.ts +1 -44
- package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +1 -39
- package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +1 -39
- package/lib/audio/mixAutoMovieAudioPcm.d.ts +2 -39
- package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -1
- package/lib/audio/mixAutoMovieAudioPcm.mjs.map +1 -1
- package/lib/auditAutoMovieRenderObservation.d.ts +2 -14
- package/lib/auditAutoMovieRenderObservation.js.map +1 -1
- package/lib/auditAutoMovieRenderObservation.mjs.map +1 -1
- package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +1 -1
- package/lib/cache/createAutoMovieHttpArtifactStore.mjs.map +1 -1
- package/lib/caption/IAutoMovieBeatCaption.d.ts +1 -22
- package/lib/caption/beatCaptions.d.ts +1 -2
- package/lib/caption/beatCaptions.js.map +1 -1
- package/lib/caption/beatCaptions.mjs.map +1 -1
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +1 -12
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -1
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.mjs.map +1 -1
- package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +1 -14
- package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -1
- package/lib/caption/parseAutoMovieCaptionLanguage.mjs.map +1 -1
- package/lib/capture/AutoMovieCaptureFolder.d.ts +3 -13
- package/lib/capture/AutoMovieCaptureFolder.js.map +1 -1
- package/lib/capture/AutoMovieCaptureFolder.mjs.map +1 -1
- package/lib/capture/IAutoMovieCaptureBudget.d.ts +1 -24
- package/lib/capture/IAutoMovieCaptureCell.d.ts +1 -33
- package/lib/capture/IAutoMovieCaptureComparison.d.ts +1 -75
- package/lib/capture/IAutoMovieCaptureDrawing.d.ts +1 -56
- package/lib/capture/IAutoMovieCaptureLayout.d.ts +1 -47
- package/lib/capture/IAutoMovieCapturePlan.d.ts +1 -30
- package/lib/capture/IAutoMovieCapturePlanRequest.d.ts +1 -97
- package/lib/capture/IAutoMovieCaptureRecord.d.ts +1 -134
- package/lib/capture/IAutoMovieCaptureRequestSource.d.ts +1 -36
- package/lib/capture/IAutoMovieCaptureResolution.d.ts +1 -20
- package/lib/capture/IAutoMovieCaptureSelection.d.ts +1 -23
- package/lib/capture/IAutoMovieCaptureStorage.d.ts +1 -76
- package/lib/capture/IAutoMovieCaptureSubject.d.ts +1 -81
- package/lib/capture/IAutoMovieCaptureTime.d.ts +1 -16
- package/lib/capture/IAutoMovieCaptureWindow.d.ts +1 -24
- package/lib/capture/compareAutoMovieCaptureRounds.d.ts +2 -23
- package/lib/capture/compareAutoMovieCaptureRounds.js.map +1 -1
- package/lib/capture/compareAutoMovieCaptureRounds.mjs.map +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.d.ts +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.js.map +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.mjs.map +1 -1
- package/lib/capture/markAutoMovieCaptureCell.d.ts +1 -1
- package/lib/capture/markAutoMovieCaptureCell.mjs.map +1 -1
- package/lib/capture/parseAutoMovieCapturePlanRequest.d.ts +1 -2
- package/lib/capture/parseAutoMovieCapturePlanRequest.js.map +1 -1
- package/lib/capture/parseAutoMovieCapturePlanRequest.mjs.map +1 -1
- package/lib/capture/planAutoMovieCapture.d.ts +2 -11
- package/lib/capture/planAutoMovieCapture.js.map +1 -1
- package/lib/capture/planAutoMovieCapture.mjs.map +1 -1
- package/lib/capture/planAutoMovieCaptureFrames.d.ts +2 -22
- package/lib/capture/planAutoMovieCaptureFrames.js.map +1 -1
- package/lib/capture/planAutoMovieCaptureFrames.mjs.map +1 -1
- package/lib/capture/planAutoMovieCaptureLayout.d.ts +2 -16
- package/lib/capture/planAutoMovieCaptureLayout.js.map +1 -1
- package/lib/capture/planAutoMovieCaptureLayout.mjs.map +1 -1
- package/lib/capture/planAutoMovieVideoFrames.d.ts +2 -8
- package/lib/capture/planAutoMovieVideoFrames.js.map +1 -1
- package/lib/capture/planAutoMovieVideoFrames.mjs.map +1 -1
- package/lib/capture/planAutoMovieVideoSceneCuts.d.ts +2 -8
- package/lib/capture/planAutoMovieVideoSceneCuts.js.map +1 -1
- package/lib/capture/planAutoMovieVideoSceneCuts.mjs.map +1 -1
- package/lib/capture/readAutoMovieVideoSceneCuts.d.ts +2 -6
- package/lib/capture/readAutoMovieVideoSceneCuts.js.map +1 -1
- package/lib/capture/readAutoMovieVideoSceneCuts.mjs.map +1 -1
- package/lib/capture/resolveAutoMovieCapturePatterns.d.ts +2 -10
- package/lib/capture/resolveAutoMovieCapturePatterns.js.map +1 -1
- package/lib/capture/resolveAutoMovieCapturePatterns.mjs.map +1 -1
- package/lib/capture/runAutoMovieCapture.d.ts +2 -21
- package/lib/capture/runAutoMovieCapture.js.map +1 -1
- package/lib/capture/runAutoMovieCapture.mjs.map +1 -1
- package/lib/capture/runAutoMovieVideoCapture.d.ts +2 -20
- package/lib/capture/runAutoMovieVideoCapture.js.map +1 -1
- package/lib/capture/runAutoMovieVideoCapture.mjs.map +1 -1
- package/lib/capture/scaleAutoMovieCaptureLabels.d.ts +2 -5
- package/lib/capture/scaleAutoMovieCaptureLabels.js.map +1 -1
- package/lib/capture/scaleAutoMovieCaptureLabels.mjs.map +1 -1
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +2 -6
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -1
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.mjs.map +1 -1
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +2 -14
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -1
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.mjs.map +1 -1
- package/lib/delivery/AutoMovieProductionPngRole.d.ts +1 -14
- package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +1 -41
- package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +1 -46
- package/lib/delivery/assertAutoMovieCaptureClock.d.ts +2 -9
- package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -1
- package/lib/delivery/assertAutoMovieCaptureClock.mjs.map +1 -1
- package/lib/delivery/assertProductionPngPicture.d.ts +2 -6
- package/lib/delivery/assertProductionPngPicture.js.map +1 -1
- package/lib/delivery/assertProductionPngPicture.mjs.map +1 -1
- package/lib/delivery/assertProductionVideoProfile.d.ts +2 -6
- package/lib/delivery/assertProductionVideoProfile.js.map +1 -1
- package/lib/delivery/assertProductionVideoProfile.mjs.map +1 -1
- package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +2 -35
- package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -1
- package/lib/delivery/auditAutoMovieDecodedFrames.mjs.map +1 -1
- package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +2 -8
- package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -1
- package/lib/delivery/auditAutoMovieEncodedPresentation.mjs.map +1 -1
- package/lib/delivery/planAutoMovieVideoEncoding.d.ts +2 -18
- package/lib/delivery/planAutoMovieVideoEncoding.js.map +1 -1
- package/lib/delivery/planAutoMovieVideoEncoding.mjs.map +1 -1
- package/lib/delivery/productionOpusDescription.d.ts +2 -6
- package/lib/delivery/productionOpusDescription.js.map +1 -1
- package/lib/delivery/productionOpusDescription.mjs.map +1 -1
- package/lib/delivery/resolveProductionPngProfile.d.ts +2 -7
- package/lib/delivery/resolveProductionPngProfile.js.map +1 -1
- package/lib/delivery/resolveProductionPngProfile.mjs.map +1 -1
- package/lib/delivery/resolveProductionVideoProfile.d.ts +2 -7
- package/lib/delivery/resolveProductionVideoProfile.js.map +1 -1
- package/lib/delivery/resolveProductionVideoProfile.mjs.map +1 -1
- package/lib/draw/AutoMovieDrawSession.d.ts +3 -16
- package/lib/draw/AutoMovieDrawSession.js.map +1 -1
- package/lib/draw/AutoMovieDrawSession.mjs.map +1 -1
- package/lib/draw/IAutoMovieDrawCall.d.ts +1 -27
- package/lib/draw/IAutoMovieDrawDescription.d.ts +1 -15
- package/lib/draw/IAutoMovieDrawFunction.d.ts +1 -3
- package/lib/draw/IAutoMovieDrawResult.d.ts +1 -36
- package/lib/draw/IAutoMovieDrawScene.d.ts +9 -2
- package/lib/draw/decodeAutoMovieDrawPixels.d.ts +2 -6
- package/lib/draw/decodeAutoMovieDrawPixels.js.map +1 -1
- package/lib/draw/decodeAutoMovieDrawPixels.mjs.map +1 -1
- package/lib/draw/describeAutoMovieDrawScene.d.ts +4 -4
- package/lib/draw/describeAutoMovieDrawScene.js +10 -4
- package/lib/draw/describeAutoMovieDrawScene.js.map +1 -1
- package/lib/draw/describeAutoMovieDrawScene.mjs +8 -4
- package/lib/draw/describeAutoMovieDrawScene.mjs.map +1 -1
- package/lib/draw/index.d.ts +1 -0
- package/lib/draw/index.js +1 -0
- package/lib/draw/index.js.map +1 -1
- package/lib/draw/index.mjs +2 -1
- package/lib/draw/installAutoMovieDraw.d.ts +6 -6
- package/lib/draw/installAutoMovieDraw.js +18 -23
- package/lib/draw/installAutoMovieDraw.js.map +1 -1
- package/lib/draw/installAutoMovieDraw.mjs +16 -23
- package/lib/draw/installAutoMovieDraw.mjs.map +1 -1
- package/lib/draw/planAutoMovieDrawCall.d.ts +1 -3
- package/lib/draw/planAutoMovieDrawCall.js.map +1 -1
- package/lib/draw/planAutoMovieDrawCall.mjs.map +1 -1
- package/lib/draw/renderAutoMovieDrawnVideo.d.ts +2 -12
- package/lib/draw/renderAutoMovieDrawnVideo.js.map +1 -1
- package/lib/draw/renderAutoMovieDrawnVideo.mjs.map +1 -1
- package/lib/draw/replaceAutoMovieDrawInspection.d.ts +24 -0
- package/lib/draw/replaceAutoMovieDrawInspection.js +29 -0
- package/lib/draw/replaceAutoMovieDrawInspection.js.map +1 -0
- package/lib/draw/replaceAutoMovieDrawInspection.mjs +29 -0
- package/lib/draw/replaceAutoMovieDrawInspection.mjs.map +1 -0
- package/lib/draw/stampAutoMovieDrawLegend.d.ts +2 -4
- package/lib/draw/stampAutoMovieDrawLegend.js.map +1 -1
- package/lib/draw/stampAutoMovieDrawLegend.mjs.map +1 -1
- package/lib/film/AutoMovieOrderedScalar.d.ts +1 -15
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +1 -28
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +1 -29
- package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +1 -36
- package/lib/film/IAutoMovieProductionRenderChunk.d.ts +1 -39
- package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +1 -53
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +1 -31
- package/lib/film/IAutoMovieProductionRenderTier.d.ts +1 -25
- package/lib/film/equalOrderedScalars.d.ts +2 -5
- package/lib/film/equalOrderedScalars.js.map +1 -1
- package/lib/film/equalOrderedScalars.mjs.map +1 -1
- package/lib/film/normalizeAudioAssets.d.ts +1 -1
- package/lib/film/normalizeAudioAssets.js.map +1 -1
- package/lib/film/normalizeAudioAssets.mjs.map +1 -1
- package/lib/film/normalizeRenderTier.d.ts +1 -1
- package/lib/film/normalizeRenderTier.mjs.map +1 -1
- package/lib/film/planProductionRenderJob.d.ts +2 -16
- package/lib/film/planProductionRenderJob.js.map +1 -1
- package/lib/film/planProductionRenderJob.mjs.map +1 -1
- package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +1 -2
- package/lib/film/resolveProductionRenderTierFrameFormat.mjs.map +1 -1
- package/lib/film/validWaveAudioIdentity.d.ts +1 -1
- package/lib/film/validWaveAudioIdentity.mjs.map +1 -1
- package/lib/index.mjs +8 -7
- package/lib/picture/AutoMovieRasterSheet.d.ts +2 -2
- package/lib/picture/AutoMovieRasterSheet.js.map +1 -1
- package/lib/picture/AutoMovieRasterSheet.mjs.map +1 -1
- package/lib/picture/IAutoMovieRasterComparison.d.ts +1 -33
- package/lib/picture/IAutoMovieRasterImage.d.ts +1 -17
- package/lib/picture/compareAutoMovieRasters.d.ts +1 -2
- package/lib/picture/compareAutoMovieRasters.js.map +1 -1
- package/lib/picture/compareAutoMovieRasters.mjs.map +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.d.ts +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.js.map +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.mjs.map +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.d.ts +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.js.map +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.mjs.map +1 -1
- package/lib/picture/hashAutoMovieRasterImage.d.ts +1 -1
- package/lib/picture/hashAutoMovieRasterImage.mjs.map +1 -1
- package/lib/picture/stampAutoMovieRasterLabel.d.ts +2 -5
- package/lib/picture/stampAutoMovieRasterLabel.js.map +1 -1
- package/lib/picture/stampAutoMovieRasterLabel.mjs.map +1 -1
- package/lib/planCaptionSidecar.d.ts +2 -8
- package/lib/planCaptionSidecar.js.map +1 -1
- package/lib/planCaptionSidecar.mjs.map +1 -1
- package/lib/planChunkedSequenceRender.d.ts +2 -9
- package/lib/planChunkedSequenceRender.js.map +1 -1
- package/lib/planChunkedSequenceRender.mjs.map +1 -1
- package/lib/planGuidePassOutputs.d.ts +2 -6
- package/lib/planGuidePassOutputs.js.map +1 -1
- package/lib/planGuidePassOutputs.mjs.map +1 -1
- package/lib/planPoseKeypointSidecar.d.ts +2 -12
- package/lib/planPoseKeypointSidecar.js.map +1 -1
- package/lib/planPoseKeypointSidecar.mjs.map +1 -1
- package/lib/planSequenceRender.d.ts +2 -9
- package/lib/planSequenceRender.js.map +1 -1
- package/lib/planSequenceRender.mjs.map +1 -1
- package/lib/planViewerFrameTimes.d.ts +2 -16
- package/lib/planViewerFrameTimes.js.map +1 -1
- package/lib/planViewerFrameTimes.mjs.map +1 -1
- package/lib/renderAndSee.d.ts +1 -2
- package/lib/renderAndSee.js.map +1 -1
- package/lib/renderAndSee.mjs.map +1 -1
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +1 -41
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +1 -53
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +1 -27
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +2 -13
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -1
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +2 -8
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +1 -2
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +2 -8
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.mjs.map +1 -1
- package/lib/renderCaptionSidecar.d.ts +1 -1
- package/lib/renderCaptionSidecar.mjs.map +1 -1
- package/lib/renderPoseKeypointSidecar.d.ts +1 -1
- package/lib/renderPoseKeypointSidecar.mjs.map +1 -1
- package/lib/renderSequenceAndSee.d.ts +1 -2
- package/lib/renderSequenceAndSee.js.map +1 -1
- package/lib/renderSequenceAndSee.mjs.map +1 -1
- package/lib/renderSequenceVideo.d.ts +1 -3
- package/lib/renderSequenceVideo.js.map +1 -1
- package/lib/renderSequenceVideo.mjs.map +1 -1
- package/lib/renderVideo.d.ts +1 -3
- package/lib/renderVideo.js.map +1 -1
- package/lib/renderVideo.mjs.map +1 -1
- package/lib/scene/AutoMovieFilmBeautyComposition.d.ts +1 -25
- package/lib/scene/AutoMoviePlayer.d.ts +1 -2
- package/lib/scene/AutoMoviePlayer.js.map +1 -1
- package/lib/scene/AutoMoviePlayer.mjs.map +1 -1
- package/lib/scene/IApplyAutoMovieSectionPlanesProps.d.ts +1 -1
- package/lib/scene/IAutoMovieFilmBeautyLayer.d.ts +1 -12
- package/lib/scene/IAutoMovieFormationPoseTake.d.ts +1 -22
- package/lib/scene/IAutoMovieFormationViewerObject.d.ts +1 -2
- package/lib/scene/IAutoMovieRigLocalTransform.d.ts +1 -15
- package/lib/scene/IAutoMovieSpringAxisSettlement.d.ts +2 -2
- package/lib/scene/IBakeFormationCycleProps.d.ts +1 -2
- package/lib/scene/applyAutoMovieRigLocals.d.ts +1 -2
- package/lib/scene/applyAutoMovieRigLocals.js.map +1 -1
- package/lib/scene/applyAutoMovieRigLocals.mjs.map +1 -1
- package/lib/scene/applyAutoMovieSectionPlanes.mjs.map +1 -1
- package/lib/scene/applyFormationCycleCadence.d.ts +1 -1
- package/lib/scene/applyFormationCycleCadence.mjs.map +1 -1
- package/lib/scene/applyPose.d.ts +1 -2
- package/lib/scene/applyPose.js.map +1 -1
- package/lib/scene/applyPose.mjs.map +1 -1
- package/lib/scene/applyRenderMode.js.map +1 -1
- package/lib/scene/applyRenderMode.mjs.map +1 -1
- package/lib/scene/applySampledObjectMotion.d.ts +1 -1
- package/lib/scene/applySampledObjectMotion.mjs.map +1 -1
- package/lib/scene/applySemanticMaskMode.d.ts +1 -1
- package/lib/scene/applySemanticMaskMode.js.map +1 -1
- package/lib/scene/applySemanticMaskMode.mjs.map +1 -1
- package/lib/scene/autoMovieAnalysisRampColor.d.ts +2 -5
- package/lib/scene/autoMovieAnalysisRampColor.js.map +1 -1
- package/lib/scene/autoMovieAnalysisRampColor.mjs.map +1 -1
- package/lib/scene/bakeFormationCycle.d.ts +2 -1
- package/lib/scene/bakeFormationCycle.js +3 -2
- package/lib/scene/bakeFormationCycle.js.map +1 -1
- package/lib/scene/bakeFormationCycle.mjs +3 -2
- package/lib/scene/bakeFormationCycle.mjs.map +1 -1
- package/lib/scene/buildAutoMovieConstruction.d.ts +2 -5
- package/lib/scene/buildAutoMovieConstruction.js.map +1 -1
- package/lib/scene/buildAutoMovieConstruction.mjs.map +1 -1
- package/lib/scene/buildGeometry.d.ts +1 -1
- package/lib/scene/buildGeometry.js.map +1 -1
- package/lib/scene/buildGeometry.mjs.map +1 -1
- package/lib/scene/buildInstancedEffect.js.map +1 -1
- package/lib/scene/buildInstancedEffect.mjs.map +1 -1
- package/lib/scene/buildInstancedFormation.js.map +1 -1
- package/lib/scene/buildInstancedFormation.mjs.map +1 -1
- package/lib/scene/buildSpaceObject.js.map +1 -1
- package/lib/scene/buildSpaceObject.mjs.map +1 -1
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.d.ts +2 -2
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.js.map +1 -1
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.mjs.map +1 -1
- package/lib/scene/describeFormationTextureSources.d.ts +1 -2
- package/lib/scene/describeFormationTextureSources.mjs.map +1 -1
- package/lib/scene/formation/index.d.ts +1 -1
- package/lib/scene/formationCycleCadence.d.ts +1 -1
- package/lib/scene/formationCycleCadence.mjs.map +1 -1
- package/lib/scene/human-polygon/AutoMovieHumanPolygon.d.ts +7 -57
- package/lib/scene/human-polygon/applyHumanPolygonPose.d.ts +2 -2
- package/lib/scene/human-polygon/applyHumanPolygonPose.js.map +1 -1
- package/lib/scene/human-polygon/applyHumanPolygonPose.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygon.d.ts +2 -1
- package/lib/scene/human-polygon/buildHumanPolygon.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygon.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonModule.d.ts +2 -2
- package/lib/scene/human-polygon/buildHumanPolygonModule.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonModule.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonParts.d.ts +2 -2
- package/lib/scene/human-polygon/buildHumanPolygonParts.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonParts.mjs.map +1 -1
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +3 -2
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -1
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.mjs.map +1 -1
- package/lib/scene/index.d.ts +1 -1
- package/lib/scene/index.js +0 -1
- package/lib/scene/index.js.map +1 -1
- package/lib/scene/index.mjs +6 -6
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.d.ts +2 -4
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.js.map +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs.map +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.d.ts +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.mjs.map +1 -1
- package/lib/scene/inspection/IApplyAutoMovieInspectionProps.d.ts +2 -3
- package/lib/scene/inspection/IAutoMovieInspectionCamera.d.ts +1 -29
- package/lib/scene/inspection/IAutoMovieInspectionHandle.d.ts +3 -6
- package/lib/scene/inspection/IAutoMovieInspectionKind.d.ts +1 -16
- package/lib/scene/inspection/IAutoMovieInspectionLabel.d.ts +1 -18
- package/lib/scene/inspection/IAutoMovieInspectionLegendEntry.d.ts +1 -22
- package/lib/scene/inspection/IAutoMovieInspectionMarkSet.d.ts +1 -1
- package/lib/scene/inspection/IAutoMovieInspectionMeasured.d.ts +1 -1
- package/lib/scene/inspection/IAutoMovieInspectionRequest.d.ts +1 -99
- package/lib/scene/inspection/IAutoMovieInspectionTrail.d.ts +1 -18
- package/lib/scene/inspection/IAutoMovieInspectionView.d.ts +1 -80
- package/lib/scene/inspection/applyAutoMovieInspection.js.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspection.mjs.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionSection.d.ts +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionSection.mjs.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionShade.d.ts +2 -2
- package/lib/scene/inspection/applyAutoMovieInspectionShade.js.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionShade.mjs.map +1 -1
- package/lib/scene/inspection/buildAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/chooseAutoMovieInspectionMarks.d.ts +1 -1
- package/lib/scene/inspection/chooseAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.d.ts +3 -3
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.js.map +1 -1
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.mjs.map +1 -1
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.d.ts +2 -17
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.js.map +1 -1
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.mjs.map +1 -1
- package/lib/scene/inspection/focusAutoMovieInspection.d.ts +2 -3
- package/lib/scene/inspection/focusAutoMovieInspection.js.map +1 -1
- package/lib/scene/inspection/focusAutoMovieInspection.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.d.ts +2 -6
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.js.map +1 -1
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/listAutoMovieInspectionKinds.d.ts +2 -9
- package/lib/scene/inspection/listAutoMovieInspectionKinds.js.map +1 -1
- package/lib/scene/inspection/listAutoMovieInspectionKinds.mjs.map +1 -1
- package/lib/scene/inspection/markAutoMovieInspectionTrails.d.ts +1 -2
- package/lib/scene/inspection/markAutoMovieInspectionTrails.js.map +1 -1
- package/lib/scene/inspection/markAutoMovieInspectionTrails.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.d.ts +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.js.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionEdges.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionMeshes.d.ts +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionMeshes.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.d.ts +2 -7
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.js.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.mjs.map +1 -1
- package/lib/scene/inspection/mergeAutoMovieInspectionLegends.d.ts +1 -1
- package/lib/scene/inspection/mergeAutoMovieInspectionLegends.mjs.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.d.ts +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.js.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.mjs.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.d.ts +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.d.ts +2 -6
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.js.map +1 -1
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.mjs.map +1 -1
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.d.ts +2 -9
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.js.map +1 -1
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.mjs.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.d.ts +2 -18
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.js.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.mjs.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionView.d.ts +1 -2
- package/lib/scene/inspection/resolveAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.d.ts +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.js.map +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.mjs.map +1 -1
- package/lib/scene/matchesAutoMovieShadowTextureProfile.d.ts +1 -1
- package/lib/scene/matchesAutoMovieShadowTextureProfile.mjs.map +1 -1
- package/lib/scene/observeAutoMovieRendererFrame.d.ts +2 -5
- package/lib/scene/observeAutoMovieRendererFrame.js.map +1 -1
- package/lib/scene/observeAutoMovieRendererFrame.mjs.map +1 -1
- package/lib/scene/planAutoMovieShadowTextureTarget.d.ts +1 -1
- package/lib/scene/planAutoMovieShadowTextureTarget.mjs.map +1 -1
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.d.ts +2 -6
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.js.map +1 -1
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.mjs.map +1 -1
- package/lib/scene/readAutoMovieMaterialTextureSources.d.ts +3 -5
- package/lib/scene/readAutoMovieMaterialTextureSources.js.map +1 -1
- package/lib/scene/readAutoMovieMaterialTextureSources.mjs.map +1 -1
- package/lib/scene/readAutoMovieRenderTextureTarget.d.ts +1 -1
- package/lib/scene/readAutoMovieRenderTextureTarget.mjs.map +1 -1
- package/lib/scene/readAutoMovieShadowTextureTargets.d.ts +1 -2
- package/lib/scene/readAutoMovieShadowTextureTargets.js.map +1 -1
- package/lib/scene/readAutoMovieShadowTextureTargets.mjs.map +1 -1
- package/lib/scene/readAutoMovieTextureSource.d.ts +1 -1
- package/lib/scene/readAutoMovieTextureSource.js.map +1 -1
- package/lib/scene/readAutoMovieTextureSource.mjs.map +1 -1
- package/lib/scene/readAutoMovieTransmissionTextureTarget.d.ts +1 -1
- package/lib/scene/readAutoMovieTransmissionTextureTarget.mjs.map +1 -1
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.d.ts +2 -3
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.js.map +1 -1
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.mjs.map +1 -1
- package/lib/scene/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +1 -19
- package/lib/scene/semanticMask/attachAutoMovieSemanticMask.d.ts +1 -1
- package/lib/scene/semanticMask/attachAutoMovieSemanticMask.mjs.map +1 -1
- package/lib/scene/semanticMask/autoMovieSemanticMaskOf.d.ts +1 -1
- package/lib/scene/semanticMask/autoMovieSemanticMaskOf.mjs.map +1 -1
- package/lib/sliceCaptionSidecar.d.ts +1 -1
- package/lib/sliceCaptionSidecar.mjs.map +1 -1
- package/package.json +7 -7
- package/src/IAutoMovieCaptionEntry.ts +1 -32
- package/src/IAutoMovieCaptionSidecar.ts +1 -29
- package/src/IAutoMovieCapturedFrame.ts +1 -24
- package/src/IAutoMovieGuidePassOutput.ts +1 -27
- package/src/IAutoMoviePoseKeypointActor.ts +1 -39
- package/src/IAutoMoviePoseKeypointFrame.ts +1 -28
- package/src/IAutoMoviePoseKeypointSidecar.ts +1 -25
- package/src/IAutoMovieRenderAdapters.ts +1 -39
- package/src/IAutoMovieRenderAndSeeRequest.ts +1 -38
- package/src/IAutoMovieRenderAndSeeResult.ts +1 -23
- package/src/IAutoMovieRenderChunk.ts +1 -62
- package/src/IAutoMovieRenderChunkPlan.ts +1 -40
- package/src/IAutoMovieRenderPassManifest.ts +1 -25
- package/src/IAutoMovieRenderReassembly.ts +1 -28
- package/src/IAutoMovieRenderResult.ts +1 -46
- package/src/IAutoMovieSequenceRenderAdapters.ts +1 -41
- package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +1 -47
- package/src/IAutoMovieSequenceRenderAndSeeResult.ts +1 -23
- package/src/IAutoMovieSequenceRenderFrame.ts +1 -48
- package/src/IAutoMovieSequenceRenderPlan.ts +1 -88
- package/src/IAutoMovieSequenceRenderResult.ts +1 -52
- package/src/IAutoMovieSequenceRenderShotSpan.ts +1 -46
- package/src/IAutoMovieSequenceRenderTransitionSpan.ts +1 -46
- package/src/audio/mixAutoMovieAudioPcm.ts +10 -44
- package/src/auditAutoMovieRenderObservation.ts +5 -14
- package/src/cache/createAutoMovieHttpArtifactStore.ts +1 -1
- package/src/caption/IAutoMovieBeatCaption.ts +1 -23
- package/src/caption/beatCaptions.ts +1 -1
- package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +1 -12
- package/src/caption/parseAutoMovieCaptionLanguage.ts +1 -13
- package/src/capture/AutoMovieCaptureFolder.ts +10 -16
- package/src/capture/IAutoMovieCaptureBudget.ts +1 -26
- package/src/capture/IAutoMovieCaptureCell.ts +1 -42
- package/src/capture/IAutoMovieCaptureComparison.ts +1 -96
- package/src/capture/IAutoMovieCaptureDrawing.ts +1 -64
- package/src/capture/IAutoMovieCaptureLayout.ts +1 -51
- package/src/capture/IAutoMovieCapturePlan.ts +1 -36
- package/src/capture/IAutoMovieCapturePlanRequest.ts +1 -117
- package/src/capture/IAutoMovieCaptureRecord.ts +1 -174
- package/src/capture/IAutoMovieCaptureRequestSource.ts +1 -37
- package/src/capture/IAutoMovieCaptureResolution.ts +1 -23
- package/src/capture/IAutoMovieCaptureSelection.ts +1 -28
- package/src/capture/IAutoMovieCaptureStorage.ts +1 -76
- package/src/capture/IAutoMovieCaptureSubject.ts +1 -94
- package/src/capture/IAutoMovieCaptureTime.ts +1 -17
- package/src/capture/IAutoMovieCaptureWindow.ts +1 -29
- package/src/capture/compareAutoMovieCaptureRounds.ts +33 -48
- package/src/capture/formatAutoMovieCapturePlanRequest.ts +7 -3
- package/src/capture/markAutoMovieCaptureCell.ts +1 -1
- package/src/capture/parseAutoMovieCapturePlanRequest.ts +13 -10
- package/src/capture/planAutoMovieCapture.ts +20 -21
- package/src/capture/planAutoMovieCaptureFrames.ts +9 -28
- package/src/capture/planAutoMovieCaptureLayout.ts +8 -21
- package/src/capture/planAutoMovieVideoFrames.ts +5 -10
- package/src/capture/planAutoMovieVideoSceneCuts.ts +5 -10
- package/src/capture/readAutoMovieVideoSceneCuts.ts +5 -7
- package/src/capture/resolveAutoMovieCapturePatterns.ts +11 -14
- package/src/capture/runAutoMovieCapture.ts +19 -33
- package/src/capture/runAutoMovieVideoCapture.ts +13 -32
- package/src/capture/scaleAutoMovieCaptureLabels.ts +5 -2
- package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +5 -6
- package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +17 -27
- package/src/delivery/AutoMovieProductionPngRole.ts +1 -18
- package/src/delivery/IAutoMovieProductionPngProfile.ts +1 -52
- package/src/delivery/IAutoMovieProductionVideoProfile.ts +1 -48
- package/src/delivery/assertAutoMovieCaptureClock.ts +7 -7
- package/src/delivery/assertProductionPngPicture.ts +8 -13
- package/src/delivery/assertProductionVideoProfile.ts +5 -12
- package/src/delivery/auditAutoMovieDecodedFrames.ts +17 -56
- package/src/delivery/auditAutoMovieEncodedPresentation.ts +3 -8
- package/src/delivery/planAutoMovieVideoEncoding.ts +8 -23
- package/src/delivery/productionOpusDescription.ts +9 -15
- package/src/delivery/resolveProductionPngProfile.ts +9 -17
- package/src/delivery/resolveProductionVideoProfile.ts +9 -16
- package/src/draw/AutoMovieDrawSession.ts +19 -18
- package/src/draw/IAutoMovieDrawCall.ts +1 -34
- package/src/draw/IAutoMovieDrawDescription.ts +1 -17
- package/src/draw/IAutoMovieDrawFunction.ts +5 -3
- package/src/draw/IAutoMovieDrawResult.ts +1 -45
- package/src/draw/IAutoMovieDrawScene.ts +10 -2
- package/src/draw/decodeAutoMovieDrawPixels.ts +5 -3
- package/src/draw/describeAutoMovieDrawScene.ts +18 -11
- package/src/draw/index.ts +1 -0
- package/src/draw/installAutoMovieDraw.ts +43 -45
- package/src/draw/planAutoMovieDrawCall.ts +8 -5
- package/src/draw/renderAutoMovieDrawnVideo.ts +6 -9
- package/src/draw/replaceAutoMovieDrawInspection.ts +36 -0
- package/src/draw/stampAutoMovieDrawLegend.ts +7 -5
- package/src/film/AutoMovieOrderedScalar.ts +1 -15
- package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +1 -40
- package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +1 -34
- package/src/film/IAutoMovieProductionEncoderIdentity.ts +1 -42
- package/src/film/IAutoMovieProductionRenderChunk.ts +1 -47
- package/src/film/IAutoMovieProductionRenderJobPlan.ts +1 -73
- package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +1 -37
- package/src/film/IAutoMovieProductionRenderTier.ts +1 -27
- package/src/film/equalOrderedScalars.ts +10 -10
- package/src/film/normalizeAudioAssets.ts +4 -2
- package/src/film/normalizeRenderTier.ts +1 -1
- package/src/film/planProductionRenderJob.ts +11 -48
- package/src/film/resolveProductionRenderTierFrameFormat.ts +1 -1
- package/src/film/validWaveAudioIdentity.ts +3 -3
- package/src/picture/AutoMovieRasterSheet.ts +7 -3
- package/src/picture/IAutoMovieRasterComparison.ts +1 -33
- package/src/picture/IAutoMovieRasterImage.ts +1 -19
- package/src/picture/compareAutoMovieRasters.ts +4 -2
- package/src/picture/decodeAutoMovieRasterPng.ts +2 -1
- package/src/picture/encodeAutoMovieRasterPng.ts +2 -1
- package/src/picture/hashAutoMovieRasterImage.ts +1 -1
- package/src/picture/stampAutoMovieRasterLabel.ts +5 -2
- package/src/planCaptionSidecar.ts +11 -30
- package/src/planChunkedSequenceRender.ts +15 -26
- package/src/planGuidePassOutputs.ts +10 -16
- package/src/planPoseKeypointSidecar.ts +11 -40
- package/src/planSequenceRender.ts +11 -32
- package/src/planViewerFrameTimes.ts +5 -22
- package/src/renderAndSee.ts +5 -2
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +1 -53
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +1 -61
- package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +1 -29
- package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +9 -37
- package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +11 -15
- package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +2 -3
- package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +4 -3
- package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +7 -19
- package/src/renderCaptionSidecar.ts +1 -1
- package/src/renderPoseKeypointSidecar.ts +1 -1
- package/src/renderSequenceAndSee.ts +5 -2
- package/src/renderSequenceVideo.ts +6 -4
- package/src/renderVideo.ts +5 -3
- package/src/scene/AutoMovieFilmBeautyComposition.ts +1 -24
- package/src/scene/AutoMoviePlayer.ts +12 -12
- package/src/scene/IApplyAutoMovieSectionPlanesProps.ts +1 -1
- package/src/scene/IAutoMovieFilmBeautyLayer.ts +1 -12
- package/src/scene/IAutoMovieFormationPoseTake.ts +1 -26
- package/src/scene/IAutoMovieFormationViewerObject.ts +4 -2
- package/src/scene/IAutoMovieRigLocalTransform.ts +1 -16
- package/src/scene/IAutoMovieSpringAxisSettlement.ts +2 -2
- package/src/scene/IBakeFormationCycleProps.ts +4 -2
- package/src/scene/applyAutoMovieRigLocals.ts +4 -2
- package/src/scene/applyAutoMovieSectionPlanes.ts +1 -1
- package/src/scene/applyFormationCycleCadence.ts +1 -1
- package/src/scene/applyPose.ts +2 -5
- package/src/scene/applyRenderMode.ts +5 -5
- package/src/scene/applySampledObjectMotion.ts +1 -1
- package/src/scene/applySemanticMaskMode.ts +1 -1
- package/src/scene/autoMovieAnalysisRampColor.ts +7 -5
- package/src/scene/bakeFormationCycle.ts +4 -3
- package/src/scene/buildAutoMovieConstruction.ts +2 -5
- package/src/scene/buildGeometry.ts +6 -9
- package/src/scene/buildInstancedEffect.ts +6 -6
- package/src/scene/buildInstancedFormation.ts +3 -3
- package/src/scene/buildSpaceObject.ts +7 -3
- package/src/scene/createAutoMoviePhysicalPoseAdapter.ts +4 -4
- package/src/scene/describeFormationTextureSources.ts +2 -2
- package/src/scene/formation/index.ts +1 -1
- package/src/scene/formationCycleCadence.ts +1 -1
- package/src/scene/human-polygon/AutoMovieHumanPolygon.ts +7 -67
- package/src/scene/human-polygon/applyHumanPolygonPose.ts +12 -7
- package/src/scene/human-polygon/buildHumanPolygon.ts +23 -12
- package/src/scene/human-polygon/buildHumanPolygonModule.ts +6 -3
- package/src/scene/human-polygon/buildHumanPolygonParts.ts +10 -6
- package/src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts +10 -3
- package/src/scene/index.ts +1 -1
- package/src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts +3 -1
- package/src/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.ts +1 -1
- package/src/scene/inspection/IApplyAutoMovieInspectionProps.ts +5 -3
- package/src/scene/inspection/IAutoMovieInspectionCamera.ts +1 -38
- package/src/scene/inspection/IAutoMovieInspectionHandle.ts +8 -6
- package/src/scene/inspection/IAutoMovieInspectionKind.ts +1 -18
- package/src/scene/inspection/IAutoMovieInspectionLabel.ts +1 -21
- package/src/scene/inspection/IAutoMovieInspectionLegendEntry.ts +1 -24
- package/src/scene/inspection/IAutoMovieInspectionMarkSet.ts +1 -1
- package/src/scene/inspection/IAutoMovieInspectionMeasured.ts +1 -1
- package/src/scene/inspection/IAutoMovieInspectionRequest.ts +1 -115
- package/src/scene/inspection/IAutoMovieInspectionTrail.ts +1 -21
- package/src/scene/inspection/IAutoMovieInspectionView.ts +1 -92
- package/src/scene/inspection/applyAutoMovieInspection.ts +12 -8
- package/src/scene/inspection/applyAutoMovieInspectionSection.ts +1 -1
- package/src/scene/inspection/applyAutoMovieInspectionShade.ts +2 -2
- package/src/scene/inspection/buildAutoMovieInspectionMarks.ts +1 -1
- package/src/scene/inspection/chooseAutoMovieInspectionMarks.ts +1 -1
- package/src/scene/inspection/colorAutoMovieInspectionObjects.ts +6 -3
- package/src/scene/inspection/expandAutoMovieInspectionSweep.ts +8 -15
- package/src/scene/inspection/focusAutoMovieInspection.ts +6 -4
- package/src/scene/inspection/formatAutoMovieInspectionCameraView.ts +2 -1
- package/src/scene/inspection/formatAutoMovieInspectionRequest.ts +6 -3
- package/src/scene/inspection/formatAutoMovieInspectionView.ts +4 -3
- package/src/scene/inspection/legendAutoMovieInspectionMarks.ts +6 -3
- package/src/scene/inspection/listAutoMovieInspectionKinds.ts +7 -10
- package/src/scene/inspection/markAutoMovieInspectionTrails.ts +4 -2
- package/src/scene/inspection/measureAutoMovieInspectionDefects.ts +5 -5
- package/src/scene/inspection/measureAutoMovieInspectionEdges.ts +1 -1
- package/src/scene/inspection/measureAutoMovieInspectionMeshes.ts +1 -1
- package/src/scene/inspection/measureAutoMovieInspectionPaths.ts +6 -3
- package/src/scene/inspection/mergeAutoMovieInspectionLegends.ts +1 -1
- package/src/scene/inspection/parseAutoMovieInspectionRequest.ts +10 -7
- package/src/scene/inspection/parseAutoMovieInspectionView.ts +6 -4
- package/src/scene/inspection/placeAutoMovieInspectionLabels.ts +6 -7
- package/src/scene/inspection/planAutoMovieInspectionTrailTimes.ts +4 -11
- package/src/scene/inspection/resolveAutoMovieInspectionColors.ts +7 -11
- package/src/scene/inspection/resolveAutoMovieInspectionView.ts +5 -3
- package/src/scene/inspection/sampleAutoMovieInspectionTrails.ts +1 -1
- package/src/scene/matchesAutoMovieShadowTextureProfile.ts +1 -1
- package/src/scene/observeAutoMovieRendererFrame.ts +3 -3
- package/src/scene/planAutoMovieShadowTextureTarget.ts +1 -1
- package/src/scene/readAutoMovieFilmDisplayTextureResidency.ts +3 -12
- package/src/scene/readAutoMovieMaterialTextureSources.ts +5 -3
- package/src/scene/readAutoMovieRenderTextureTarget.ts +1 -1
- package/src/scene/readAutoMovieShadowTextureTargets.ts +5 -5
- package/src/scene/readAutoMovieTextureSource.ts +4 -2
- package/src/scene/readAutoMovieTransmissionTextureTarget.ts +1 -1
- package/src/scene/resolveAutoMovieFilmBeautyComposition.ts +6 -4
- package/src/scene/semanticMask/IAutoMovieSemanticMaskBinding.ts +1 -24
- package/src/scene/semanticMask/attachAutoMovieSemanticMask.ts +1 -1
- package/src/scene/semanticMask/autoMovieSemanticMaskOf.ts +1 -1
- package/src/sliceCaptionSidecar.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equalOrderedScalars.mjs","names":[],"sources":["../../src/film/equalOrderedScalars.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"equalOrderedScalars.mjs","names":[],"sources":["../../src/film/equalOrderedScalars.ts"],"sourcesContent":["import type {\n AutoMovieOrderedEntry,\n AutoMovieOrderedScalar,\n} from \"@automovie/interface\";\n\n/**\n * Compare ordered arrays of scalars, or of arrays of scalars, by value.\n *\n * The domain is exactly what `validWaveAudioIdentity` compares: a speaker-label\n * array such as `[\"front-left\", \"front-right\"]` and a one-row downmix matrix\n * such as `[[0.5, 0.5]]`. Arrays are equal when they have the same length and\n * every position holds equal scalars, or rows of the same length with equal\n * scalars; order and the scalar's type both count. `Object.is` decides each\n * scalar, so `NaN` equals `NaN` and `+0` differs from `-0`.\n *\n * A non-array argument returns false instead of being compared, so a record\n * cannot pass by lacking a `length`. Nesting deeper than one row, prototypes,\n * symbol keys, boxed primitives and cycles are outside the domain.\n *\n * @evidence contracts/development/implementation.md#principled-implementation A length check followed by a positional `Object.is` comparison is the definition of ordered-sequence equality over primitive leaves, applied once more for the single nesting level the matrix has; the premise that leaves are strings or numbers holds because the parameter type admits nothing else.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One loop handles both shapes, descending only where a position holds a row, instead of a general deep equality whose answer would also depend on prototypes and key order the callers never compare.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No value or caller is special-cased; the non-array refusal is the stated domain boundary, not a compensation for a particular input.\n * @evidence contracts/development/common.md#meaningful-documentation The doc names the two compared shapes and their caller, the equality rule including order and type, the `Object.is` cases for `NaN` and signed zero, and what lies outside the domain.\n * @evidence contracts/development/implementation.md#efficient-algorithms Time is linear in the total leaf count and stops at the first difference, with no allocation; every leaf must be read to prove equality, so no faster comparison exists.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure comparison of two small arrays coordinates no phases or requests whose work could be shared.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function keeps no reference to its arguments after returning a boolean and opens no handle or task.\n */\nexport const equalOrderedScalars: (\n left: readonly AutoMovieOrderedEntry[],\n right: readonly AutoMovieOrderedEntry[],\n) => boolean = (\n left: readonly AutoMovieOrderedEntry[],\n right: readonly AutoMovieOrderedEntry[],\n): boolean => {\n if (Array.isArray(left) === false || Array.isArray(right) === false)\n return false;\n if (left.length !== right.length) return false;\n for (let at: number = 0; at < left.length; ++at) {\n const one: AutoMovieOrderedEntry = left[at]!;\n const other: AutoMovieOrderedEntry = right[at]!;\n if (Array.isArray(one) || Array.isArray(other)) {\n if (Array.isArray(one) === false || Array.isArray(other) === false)\n return false;\n const row: readonly AutoMovieOrderedScalar[] =\n one as readonly AutoMovieOrderedScalar[];\n const otherRow: readonly AutoMovieOrderedScalar[] =\n other as readonly AutoMovieOrderedScalar[];\n if (row.length !== otherRow.length) return false;\n for (let inner: number = 0; inner < row.length; ++inner)\n if (Object.is(row[inner], otherRow[inner]) === false) return false;\n continue;\n }\n if (Object.is(one, other) === false) return false;\n }\n return true;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAa,uBAIX,MACA,UACY;CACZ,IAAI,MAAM,QAAQ,IAAI,MAAM,SAAS,MAAM,QAAQ,KAAK,MAAM,OAC5D,OAAO;CACT,IAAI,KAAK,WAAW,MAAM,QAAQ,OAAO;CACzC,KAAK,IAAI,KAAa,GAAG,KAAK,KAAK,QAAQ,EAAE,IAAI;EAC/C,MAAM,MAA6B,KAAK;EACxC,MAAM,QAA+B,MAAM;EAC3C,IAAI,MAAM,QAAQ,GAAG,KAAK,MAAM,QAAQ,KAAK,GAAG;GAC9C,IAAI,MAAM,QAAQ,GAAG,MAAM,SAAS,MAAM,QAAQ,KAAK,MAAM,OAC3D,OAAO;GACT,MAAM,MACJ;GACF,MAAM,WACJ;GACF,IAAI,IAAI,WAAW,SAAS,QAAQ,OAAO;GAC3C,KAAK,IAAI,QAAgB,GAAG,QAAQ,IAAI,QAAQ,EAAE,OAChD,IAAI,OAAO,GAAG,IAAI,QAAQ,SAAS,MAAM,MAAM,OAAO,OAAO;GAC/D;EACF;EACA,IAAI,OAAO,GAAG,KAAK,KAAK,MAAM,OAAO,OAAO;CAC9C;CACA,OAAO;AACT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieProductionAudioAssetIdentity } from "
|
|
1
|
+
import type { IAutoMovieProductionAudioAssetIdentity } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* Copy the planned audio asset identities sorted by path, refusing any that
|
|
4
4
|
* is invalid.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeAudioAssets.js","sourceRoot":"","sources":["../../src/film/normalizeAudioAssets.ts"],"names":[],"mappings":";;;AAAA,8CAAqD;
|
|
1
|
+
{"version":3,"file":"normalizeAudioAssets.js","sourceRoot":"","sources":["../../src/film/normalizeAudioAssets.ts"],"names":[],"mappings":";;;AAAA,8CAAqD;AAMrD,qDAA+C;AAC/C,2EAAqE;AAErE,0EAA0E;AAC1E,MAAM,uBAAuB,GAAgD,MAAM,CAAC;AAEpF,8EAA8E;AAC9E,MAAM,oBA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AsB,EAAC,KAAK,CAAC,KAAK,KAAK,CAAC;YAElE,MAAM,IAAI,KAAK,CACb,gBAAgB,KAAK,CAAC,IAAI,kFAAkF,CAC7G,CAAC;QACJ,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC,CACF,CAAC;AACN,CAAC,CAAC;AAzCW,QAAA,oBAAoB,GAApB,oBAAoB,CAyC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeAudioAssets.mjs","names":[],"sources":["../../src/film/normalizeAudioAssets.ts"],"sourcesContent":["import { compareCodeUnits } from \"@automovie/engine\";\nimport type {
|
|
1
|
+
{"version":3,"file":"normalizeAudioAssets.mjs","names":[],"sources":["../../src/film/normalizeAudioAssets.ts"],"sourcesContent":["import { compareCodeUnits } from \"@automovie/engine\";\nimport type {\n IAutoMovieProductionAudioAssetIdentity,\n IAutoMovieProductionSoundPlan,\n} from \"@automovie/interface\";\n\nimport { validDigest } from \"./validDigest.js\";\nimport { validWaveAudioIdentity } from \"./validWaveAudioIdentity.js\";\n\n/** Sample rate of a placeholder stem: the sound plan's fixed mix rate. */\nconst PLACEHOLDER_SAMPLE_RATE: IAutoMovieProductionSoundPlan[\"sampleRate\"] = 48_000;\n\n/** Channel count of a placeholder stem: the sound plan's fixed stereo mix. */\nconst PLACEHOLDER_CHANNELS: IAutoMovieProductionSoundPlan[\"channels\"] = 2;\n\n/**\n * Copy the planned audio asset identities sorted by path, refusing any that\n * is invalid.\n *\n * Paths sort by UTF-16 code unit, so one input yields one plan on every host.\n * Throws when a path is blank or repeated, the digest is not a SHA-256 content\n * digest, the sample rate, channel count or sample-frame count is not a\n * positive safe integer, `durationSeconds` is not exactly `sourceFrames /\n * sampleRate`, the kind is unknown, a placeholder stem is not 48 kHz stereo,\n * or a WAVE identity fails `validWaveAudioIdentity`. The input is not changed.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Code-unit order is locale-independent and total over distinct paths, and the duration check compares the stored seconds with the same IEEE division that produced them, so an exact record passes and any edited count or duration is refused.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One sort and one validating copy produce the plan's asset list; the WAVE-specific relations live in `validWaveAudioIdentity` and the digest grammar in `validDigest`, so this function holds only the provenance-independent rules.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The placeholder format is typed from `IAutoMovieProductionSoundPlan`'s fixed rate and channel count rather than chosen here, no path is special-cased, and an invalid asset throws rather than being dropped.\n * @evidence contracts/development/common.md#meaningful-documentation The doc states the ordering and why, every refusal, the placeholder format, and that the input is left unchanged.\n * @evidence contracts/development/implementation.md#efficient-algorithms For A assets the cost is an O(A log A) sort plus one O(1) set lookup and constant checks per asset and one deep copy of each identity; the sort is needed because the order is part of the plan bytes.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner calls it once per plan on that plan's own inputs, so there is no completed equivalent work to share.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The path set and the sorted array are local and released on return; the returned copies, owned by the caller, hold one record per asset and no handle or task.\n */\nexport const normalizeAudioAssets: (\n assets: readonly IAutoMovieProductionAudioAssetIdentity[],\n) => IAutoMovieProductionAudioAssetIdentity[] = (\n assets: readonly IAutoMovieProductionAudioAssetIdentity[],\n): IAutoMovieProductionAudioAssetIdentity[] => {\n const paths: Set<string> = new Set();\n return [...assets]\n .sort(\n (\n left: IAutoMovieProductionAudioAssetIdentity,\n right: IAutoMovieProductionAudioAssetIdentity,\n ): number => compareCodeUnits(left.path, right.path),\n )\n .map(\n (\n asset: IAutoMovieProductionAudioAssetIdentity,\n ): IAutoMovieProductionAudioAssetIdentity => {\n if (\n asset.path.trim().length === 0 ||\n paths.has(asset.path) ||\n validDigest(asset.digest) === false ||\n Number.isSafeInteger(asset.sampleRate) === false ||\n asset.sampleRate <= 0 ||\n Number.isSafeInteger(asset.channels) === false ||\n asset.channels <= 0 ||\n Number.isSafeInteger(asset.sourceFrames) === false ||\n asset.sourceFrames <= 0 ||\n asset.durationSeconds !== asset.sourceFrames / asset.sampleRate ||\n (asset.kind !== \"placeholder-audio-stem\" && asset.kind !== \"wave\") ||\n (asset.kind === \"placeholder-audio-stem\" &&\n (asset.sampleRate !== PLACEHOLDER_SAMPLE_RATE ||\n asset.channels !== PLACEHOLDER_CHANNELS)) ||\n (asset.kind === \"wave\" && validWaveAudioIdentity(asset) === false)\n )\n throw new Error(\n `Audio asset \"${asset.path}\" has invalid identity, duration, sample rate, channels, or duplicate ownership.`,\n );\n paths.add(asset.path);\n return structuredClone(asset);\n },\n );\n};\n"],"mappings":";;;;;AAUA,MAAM,0BAAuE;;AAG7E,MAAM,uBAAkE;;;;;;;;;;;;;;;;;;;;AAqBxE,MAAa,wBAGX,WAC6C;CAC7C,MAAM,wBAAqB,IAAI,IAAI;CACnC,OAAO,CAAC,GAAG,MAAM,CAAC,CACf,MAEG,MACA,UACW,iBAAiB,KAAK,MAAM,MAAM,IAAI,CACrD,CAAC,CACA,KAEG,UAC2C;EAC3C,IACE,MAAM,KAAK,KAAK,CAAC,CAAC,WAAW,KAC7B,MAAM,IAAI,MAAM,IAAI,KACpB,YAAY,MAAM,MAAM,MAAM,SAC9B,OAAO,cAAc,MAAM,UAAU,MAAM,SAC3C,MAAM,cAAc,KACpB,OAAO,cAAc,MAAM,QAAQ,MAAM,SACzC,MAAM,YAAY,KAClB,OAAO,cAAc,MAAM,YAAY,MAAM,SAC7C,MAAM,gBAAgB,KACtB,MAAM,oBAAoB,MAAM,eAAe,MAAM,cACpD,MAAM,SAAS,4BAA4B,MAAM,SAAS,UAC1D,MAAM,SAAS,6BACb,MAAM,eAAe,2BACpB,MAAM,aAAa,yBACtB,MAAM,SAAS,UAAU,uBAAuB,KAAK,MAAM,OAE5D,MAAM,IAAI,MACR,gBAAgB,MAAM,KAAK,iFAC7B;EACF,MAAM,IAAI,MAAM,IAAI;EACpB,OAAO,gBAAgB,KAAK;CAC9B,CACF;AACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieProductionRenderTier } from "
|
|
1
|
+
import type { IAutoMovieProductionRenderTier } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* Return a copy of the declared render tier, or the final tier when none is
|
|
4
4
|
* declared, refusing any other shape.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeRenderTier.mjs","names":[],"sources":["../../src/film/normalizeRenderTier.ts"],"sourcesContent":["import type { IAutoMovieProductionRenderTier } from \"
|
|
1
|
+
{"version":3,"file":"normalizeRenderTier.mjs","names":[],"sources":["../../src/film/normalizeRenderTier.ts"],"sourcesContent":["import type { IAutoMovieProductionRenderTier } from \"@automovie/interface\";\n\n/** The tier an omitted declaration means: exact final output. */\nconst FINAL_TIER: Readonly<IAutoMovieProductionRenderTier> = {\n kind: \"final\",\n resolutionScale: 1,\n frameStep: 1,\n};\n\n/**\n * Return a copy of the declared render tier, or the final tier when none is\n * declared, refusing any other shape.\n *\n * Final must be scale 1 and step 1. A proxy must have a finite scale in\n * `(0, 1]` and an integer step from 1 through 16, and reduce at least one of\n * them, so a proxy cannot claim final's output and final cannot be spelled as\n * a proxy. Throws one error naming both admitted shapes.\n *\n * @evidence contracts/development/implementation.md#principled-implementation The check is the closed admission rule of the production design's `renderTiers` contract, evaluated field by field on finite and safe-integer predicates so NaN, infinity and fractional steps are refused rather than compared.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate admits the two shapes and one structured clone returns a value the caller owns, so the planner and the frame-format projection share one rule instead of each restating it.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The limits are the design contract's 1-for-final and 1-through-16 step bounds; the default for an omitted tier is the documented final tier, not a guess, and an invalid tier throws instead of being clamped.\n * @evidence contracts/development/common.md#meaningful-documentation The doc states the omitted-tier default, both admitted shapes with their bounds, why a proxy must reduce something, that the result is a copy, and the refusal.\n * @evidence contracts/development/implementation.md#efficient-algorithms The call does constant work: a fixed set of comparisons and one clone of a three-field record.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call validates one small record, and the planner and the projection each call it once per plan, so caching would cost more than the check.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function retains nothing after returning the copy its caller owns and opens no handle or task.\n */\nexport const normalizeRenderTier: (\n tier: IAutoMovieProductionRenderTier | undefined,\n) => IAutoMovieProductionRenderTier = (\n tier: IAutoMovieProductionRenderTier | undefined,\n): IAutoMovieProductionRenderTier => {\n const value: Readonly<IAutoMovieProductionRenderTier> = tier ?? FINAL_TIER;\n if (\n (value.kind !== \"proxy\" && value.kind !== \"final\") ||\n Number.isFinite(value.resolutionScale) === false ||\n value.resolutionScale <= 0 ||\n value.resolutionScale > 1 ||\n Number.isSafeInteger(value.frameStep) === false ||\n value.frameStep <= 0 ||\n value.frameStep > 16 ||\n (value.kind === \"final\" &&\n (value.resolutionScale !== 1 || value.frameStep !== 1)) ||\n (value.kind === \"proxy\" &&\n value.resolutionScale === 1 &&\n value.frameStep === 1)\n )\n throw new Error(\n \"Render tier must be exact final (scale 1, step 1) or a bounded cheaper proxy (scale in (0, 1], integer step 1..16, with at least one reduction).\",\n );\n return structuredClone(value);\n};\n"],"mappings":";;AAGA,MAAM,aAAuD;CAC3D,MAAM;CACN,iBAAiB;CACjB,WAAW;AACb;;;;;;;;;;;;;;;;;;AAmBA,MAAa,uBAGX,SACmC;CACnC,MAAM,QAAkD,QAAQ;CAChE,IACG,MAAM,SAAS,WAAW,MAAM,SAAS,WAC1C,OAAO,SAAS,MAAM,eAAe,MAAM,SAC3C,MAAM,mBAAmB,KACzB,MAAM,kBAAkB,KACxB,OAAO,cAAc,MAAM,SAAS,MAAM,SAC1C,MAAM,aAAa,KACnB,MAAM,YAAY,MACjB,MAAM,SAAS,YACb,MAAM,oBAAoB,KAAK,MAAM,cAAc,MACrD,MAAM,SAAS,WACd,MAAM,oBAAoB,KAC1B,MAAM,cAAc,GAEtB,MAAM,IAAI,MACR,kJACF;CACF,OAAO,gBAAgB,KAAK;AAC9B"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IAutoMovieProductionAudioAssetIdentity } from "./IAutoMovieProductionAudioAssetIdentity.js";
|
|
3
|
-
import type { IAutoMovieProductionRenderJobPlan } from "./IAutoMovieProductionRenderJobPlan.js";
|
|
4
|
-
import type { IAutoMovieProductionRenderRuntimeIdentity } from "./IAutoMovieProductionRenderRuntimeIdentity.js";
|
|
5
|
-
import type { IAutoMovieProductionRenderTier } from "./IAutoMovieProductionRenderTier.js";
|
|
1
|
+
import type { IAutoMoviePlanProductionRenderJobProps, IAutoMovieProductionRenderJobPlan } from "@automovie/interface";
|
|
6
2
|
/**
|
|
7
3
|
* Plan the content-addressed render chunks and publication tracks of one
|
|
8
4
|
* production edit at one tier.
|
|
@@ -35,14 +31,4 @@ import type { IAutoMovieProductionRenderTier } from "./IAutoMovieProductionRende
|
|
|
35
31
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each range's frame array and sorted source identities are built once and shared across the moving deliverables of this call. There is no cross-call cache or maintained scheduler consuming these ids to reuse completed encodes; any such effect reuse would require a host's currentness and byte checks.
|
|
36
32
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources All F samples are allocated even with no moving deliverable, then become collectable if no range retains them. With moving deliverables the result shares F frame records through D times ceil(F/chunkFrames) chunk records and retains copied audio/effect tracks, asset identities and caption text. Input arrays and output populations have no quota here; local indexes and digest strings become collectable after completion or refusal, with no acquired host handle or task.
|
|
37
33
|
*/
|
|
38
|
-
export declare const planProductionRenderJob: (props:
|
|
39
|
-
timeline: IAutoMovieFilmTimeline;
|
|
40
|
-
effects: readonly IAutoMovieCompiledFilmEffect[];
|
|
41
|
-
production: IAutoMovieProductionDesign;
|
|
42
|
-
runtimeIdentity: IAutoMovieProductionRenderRuntimeIdentity;
|
|
43
|
-
sourceFingerprints: Readonly<Record<string, string>>;
|
|
44
|
-
audioAssets: readonly IAutoMovieProductionAudioAssetIdentity[];
|
|
45
|
-
chunkFrames: number;
|
|
46
|
-
guidePasses?: readonly Exclude<AutoMovieGuidePass, "beauty">[];
|
|
47
|
-
tier?: IAutoMovieProductionRenderTier;
|
|
48
|
-
}) => IAutoMovieProductionRenderJobPlan;
|
|
34
|
+
export declare const planProductionRenderJob: (props: IAutoMoviePlanProductionRenderJobProps) => IAutoMovieProductionRenderJobPlan;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planProductionRenderJob.js","sourceRoot":"","sources":["../../src/film/planProductionRenderJob.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"planProductionRenderJob.js","sourceRoot":"","sources":["../../src/film/planProductionRenderJob.ts"],"names":[],"mappings":";;;AAAA,8CAW2B;AAe3B,0FAAoF;AACpF,yEAAmE;AACnE,uEAAiE;AACjE,qEAA+D;AAC/D,2GAAqG;AACrG,qDAA+C;AAe/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACI,MAAM,uBAAuB,GAEK,CACvC,KAA6C,EACV,EAAE;IACrC,IACE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,KAAK;QACjD,KAAK,CAAC,WAAW,IAAI,CAAC;QAEtB,MAAM,IAAI,KAAK,CACb,wDAAwD,KAAK,CAAC,WAAW,GAAG,CAC7E,CAAC;IACJ,IAAI,IAAA,4BAAW,EAAC,KAAK,CAAC,eAAe,CAAC,YAAY,CAAC,KAAK,KAAK;QAC3D,MAAM,IAAI,KAAK,CACb,2EAA2E,CAC5E,CAAC;IACJ,IACE,KAAK,CAAC,eAAe,CAAC,uBAAuB,KAAK,IAAI;QACtD,IAAA,4BAAW,EAAC,KAAK,CAAC,eAAe,CAAC,uBAAuB,CAAC,KAAK,KAAK;QAEpE,MAAM,IAAI,KAAK,CACb,8FAA8F,CAC/F,CAAC;IACJ,MAAM,IAAI,GAAmC,IAAA,4CAAmB,EAAC,KAA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BAAiB;YACjB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC;iBAChB,IAAI,CAAC,yBAAgB,CAAC;iBACtB,GAAG,CAAC,CAAC,IAAY,EAAoC,EAAE;gBACtD,MAAM,MAAM,GAAuB,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;gBAClE,IAAI,MAAM,KAAK,SAAS,IAAI,IAAA,4BAAW,EAAC,MAAM,CAAC,KAAK,KAAK;oBACvD,MAAM,IAAI,KAAK,CACb,iCAAiC,IAAI,yDAAyD,CAC/F,CAAC;gBACJ,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;YAC1B,CAAC,CAAC;SACL,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planProductionRenderJob.mjs","names":[],"sources":["../../src/film/planProductionRenderJob.ts"],"sourcesContent":["import {\n AutoMovieFilmEffectRuntimeError,\n type IAutoMovieProductionRenderFrame,\n autoMovieRenderDigest,\n canonicalizeAutoMovieJson,\n compareCodeUnits,\n equalProductionFrameRates,\n productionFilmEffectEditFingerprint,\n productionFrameBoundaryToGridTick,\n resolveProductionFrameRate,\n sampleProductionRenderFrame,\n verifyProductionFilmEffectPopulation,\n} from \"@automovie/engine\";\nimport type {\n AutoMovieGuidePass,\n IAutoMovieCompiledFilmEffect,\n IAutoMovieFilmTimeline,\n IAutoMovieProductionDeliverable,\n IAutoMovieProductionDesign,\n IAutoMovieProductionFrameRate,\n} from \"@automovie/interface\";\n\nimport { canonicalProductionWebVtt } from \"../caption/canonicalProductionWebVtt.js\";\nimport type { IAutoMovieProductionAudioAssetIdentity } from \"./IAutoMovieProductionAudioAssetIdentity.js\";\nimport type { IAutoMovieProductionRenderChunk } from \"./IAutoMovieProductionRenderChunk.js\";\nimport type { IAutoMovieProductionRenderJobPlan } from \"./IAutoMovieProductionRenderJobPlan.js\";\nimport type { IAutoMovieProductionRenderRuntimeIdentity } from \"./IAutoMovieProductionRenderRuntimeIdentity.js\";\nimport type { IAutoMovieProductionRenderTier } from \"./IAutoMovieProductionRenderTier.js\";\nimport { assertSingleGuidePass } from \"./assertSingleGuidePass.js\";\nimport { normalizeAudioAssets } from \"./normalizeAudioAssets.js\";\nimport { normalizeRenderTier } from \"./normalizeRenderTier.js\";\nimport { resolveProductionRenderTierFrameFormat } from \"./resolveProductionRenderTierFrameFormat.js\";\nimport { validDigest } from \"./validDigest.js\";\n\n/** A deliverable that renders moving images, the only kind with chunks. */\ntype IMovingDeliverable = IAutoMovieProductionDeliverable & {\n kind: \"feature\" | \"guide-pass\";\n};\n\n/** One output-frame range shared by every moving deliverable's chunk. */\ninterface IRange {\n frameStart: number;\n frameEndExclusive: number;\n frames: IAutoMovieProductionRenderFrame[];\n sources: Array<{ shot: string; digest: string }>;\n}\n\n/**\n * Plan the content-addressed render chunks and publication tracks of one\n * production edit at one tier.\n *\n * The tier, which defaults to final, decimates the timeline by `frameStep` and\n * projects the raster; output frames are partitioned into ranges of at most\n * `chunkFrames`, and every feature and guide-pass deliverable gets one chunk\n * per range, in declaration order. A feature renders `beauty`; a guide-pass\n * deliverable renders its declared `pass`, or, for a legacy record without\n * one, the single pass in `guidePasses`, which defaults to `pose`. Each chunk\n * id digests the edit, effect digests, tier, frame formats, range, pass,\n * runtime identity and the source digest of every shot the range shows.\n *\n * Throws when `chunkFrames` is not a positive safe integer; a runtime,\n * compile or source digest is malformed or missing; the tier is inadmissible\n * or its raster is odd; the timeline's id, frame rate or runtime differs from\n * the production's, or its length is not a multiple of `frameStep`; the effect\n * runtimes are not exactly the timeline's current population for this\n * production, as an `AutoMovieFilmEffectRuntimeError`; an audio asset is\n * invalid or a cue's asset is missing or holds another sample count; or a\n * guide pass is unknown or not single. The inputs are not changed.\n *\n * Current maintained callers are planner tests. This function does not execute a render, authenticate supplied runtime or source digests, or establish stored-plan currentness for an application scheduler.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Chunk ids hash canonical JSON of the declared edit, effects, tier, formats, range, pass, runtime identity and range source digests. Engine population and production-owner checks admit effect runtimes, and exact rational frame-to-tick rounding checks cue source lengths against asset samples. Supplied identity records remain caller claims; hashing them does not authenticate renderer bytes or prove equal pixels.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Admission rules live in their helpers (`normalizeRenderTier`, `normalizeAudioAssets`, `assertSingleGuidePass`, `validDigest`) and the engine (`verifyProductionFilmEffectPopulation`, `sampleProductionRenderFrame`); this function orders them, builds each range once, and joins ranges with deliverables. The range walk repeats `planChunkedSequenceRender`'s arithmetic on purpose, because there the range index orders reassembly and here it is one field of a content-addressed slot.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `pose` default is the interface's documented legacy rule for a guide deliverable without a pass, the protocol and version literals are schema identities, and every refusal throws rather than skipping a deliverable, cue or shot.\n * @evidence contracts/development/common.md#meaningful-documentation The doc states the tier default and decimation, the range partition and chunk order, which pass each deliverable renders including the legacy default, what a chunk id digests, every refusal with the effect error type, and that inputs are left unchanged.\n * @evidence contracts/development/implementation.md#efficient-algorithms For F tier output frames and S ordered segments, engine sampling costs O(F log(S+1)) plus rate reduction per frame. Range construction visits their at-most-two layers, sorts each range's distinct shot ids and shares ranges across D moving deliverables. Audio asset sorting/copying, effect verification/cloning, caption sorting/serialization and each chunk's canonical JSON/hash work depend on their complete populations and byte lengths; large runtime identities are serialized again per chunk.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Each range's frame array and sorted source identities are built once and shared across the moving deliverables of this call. There is no cross-call cache or maintained scheduler consuming these ids to reuse completed encodes; any such effect reuse would require a host's currentness and byte checks.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources All F samples are allocated even with no moving deliverable, then become collectable if no range retains them. With moving deliverables the result shares F frame records through D times ceil(F/chunkFrames) chunk records and retains copied audio/effect tracks, asset identities and caption text. Input arrays and output populations have no quota here; local indexes and digest strings become collectable after completion or refusal, with no acquired host handle or task.\n */\nexport const planProductionRenderJob: (props: {\n timeline: IAutoMovieFilmTimeline;\n effects: readonly IAutoMovieCompiledFilmEffect[];\n production: IAutoMovieProductionDesign;\n runtimeIdentity: IAutoMovieProductionRenderRuntimeIdentity;\n sourceFingerprints: Readonly<Record<string, string>>;\n audioAssets: readonly IAutoMovieProductionAudioAssetIdentity[];\n chunkFrames: number;\n guidePasses?: readonly Exclude<AutoMovieGuidePass, \"beauty\">[];\n tier?: IAutoMovieProductionRenderTier;\n}) => IAutoMovieProductionRenderJobPlan = (props: {\n /** The builder-owned film edit. */\n timeline: IAutoMovieFilmTimeline;\n\n /** The compiled film-global effect runtimes for that edit. */\n effects: readonly IAutoMovieCompiledFilmEffect[];\n\n /** The production design the edit was compiled for. */\n production: IAutoMovieProductionDesign;\n\n /** Capture and encoder identity every chunk renders under. */\n runtimeIdentity: IAutoMovieProductionRenderRuntimeIdentity;\n\n /** SHA-256 source digest of every shot the edit shows, by shot id. */\n sourceFingerprints: Readonly<Record<string, string>>;\n\n /** Identity of every audio asset the edit's cues reference. */\n audioAssets: readonly IAutoMovieProductionAudioAssetIdentity[];\n\n /** Maximum output frames per chunk; a positive safe integer. */\n chunkFrames: number;\n\n /**\n * The one pass of a legacy guide deliverable that declares none; omitted is\n * `pose`.\n */\n guidePasses?: readonly Exclude<AutoMovieGuidePass, \"beauty\">[];\n\n /** Proxy or final tier; omitted is the exact final tier. */\n tier?: IAutoMovieProductionRenderTier;\n}): IAutoMovieProductionRenderJobPlan => {\n if (\n Number.isSafeInteger(props.chunkFrames) === false ||\n props.chunkFrames <= 0\n )\n throw new Error(\n `chunkFrames must be a positive safe integer, but was ${props.chunkFrames}.`,\n );\n if (validDigest(props.runtimeIdentity.sourceDigest) === false)\n throw new Error(\n \"Render runtime sourceDigest must be one current SHA-256 content identity.\",\n );\n if (\n props.runtimeIdentity.dialogueRuntimeIdentity !== null &&\n validDigest(props.runtimeIdentity.dialogueRuntimeIdentity) === false\n )\n throw new Error(\n \"Render runtime dialogueRuntimeIdentity must be null or one current SHA-256 content identity.\",\n );\n const tier: IAutoMovieProductionRenderTier = normalizeRenderTier(props.tier);\n const frameFormat: IAutoMovieProductionDesign[\"frameFormat\"] =\n resolveProductionRenderTierFrameFormat(props.production.frameFormat, tier);\n const outputRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(frameFormat);\n if (frameFormat.width % 2 !== 0 || frameFormat.height % 2 !== 0)\n throw new Error(\n \"The production H.264 render adapter requires even width and height.\",\n );\n const timelineRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(props.timeline);\n const productionRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(props.production.frameFormat);\n if (\n props.production.id.trim().length === 0 ||\n props.timeline.id !== props.production.id ||\n validDigest(props.timeline.inputFingerprint) === false ||\n equalProductionFrameRates(timelineRate, productionRate) === false ||\n props.production.targetRuntimeSeconds !==\n (props.timeline.totalFrames * productionRate.denominator) /\n productionRate.numerator\n )\n throw new Error(\n \"The film edit differs from the production identity, frame clock, or runtime. Recompile before planning.\",\n );\n if (props.timeline.totalFrames % tier.frameStep !== 0)\n throw new Error(\n `Render tier \"${tier.kind}\" frameStep ${tier.frameStep} does not divide the ${props.timeline.totalFrames}-frame edit. Choose a divisor so proxy and final have the same exact runtime.`,\n );\n const audioAssets: IAutoMovieProductionAudioAssetIdentity[] =\n normalizeAudioAssets(props.audioAssets);\n const assetsByPath: Map<string, IAutoMovieProductionAudioAssetIdentity> =\n new Map(\n audioAssets.map(\n (\n asset: IAutoMovieProductionAudioAssetIdentity,\n ): [string, IAutoMovieProductionAudioAssetIdentity] => [\n asset.path,\n asset,\n ],\n ),\n );\n for (const cue of props.timeline.tracks.audio) {\n // `sourceDurationFrames` is the cue's claim about the complete asset, so\n // it must land on exactly the asset's sample count at the asset's own rate;\n // the trim inside that duration is the mix's own refusal.\n const asset: IAutoMovieProductionAudioAssetIdentity | undefined =\n assetsByPath.get(cue.asset);\n if (\n asset === undefined ||\n asset.sourceFrames !==\n productionFrameBoundaryToGridTick({\n frame: cue.sourceDurationFrames,\n frameRate: timelineRate,\n ticksPerSecond: asset.sampleRate,\n rounding: \"nearest\",\n })\n )\n throw new Error(\n `Audio cue \"${cue.id}\" lacks one digest-, format-, and duration-verified source asset.`,\n );\n }\n const legacyGuidePass: Exclude<AutoMovieGuidePass, \"beauty\"> =\n assertSingleGuidePass(props.guidePasses ?? [\"pose\"]);\n const editFingerprint: string = productionFilmEffectEditFingerprint(\n props.timeline,\n );\n verifyProductionFilmEffectPopulation({\n timeline: props.timeline,\n effects: props.effects,\n });\n for (const effect of props.effects)\n if (effect.production !== props.production.id)\n throw new AutoMovieFilmEffectRuntimeError(\n \"film-effect-runtime-stale\",\n `Film effect runtime \"${effect.effect.id}\" belongs to production \"${effect.production}\", not \"${props.production.id}\".`,\n );\n const effectDigests: string[] = props.effects.map(\n (effect: IAutoMovieCompiledFilmEffect): string => effect.digest,\n );\n const frames: IAutoMovieProductionRenderFrame[] = Array.from(\n { length: props.timeline.totalFrames / tier.frameStep },\n (_: unknown, outputFrame: number): IAutoMovieProductionRenderFrame => {\n const timelineFrame: number = outputFrame * tier.frameStep;\n return {\n ...sampleProductionRenderFrame(props.timeline, timelineFrame),\n globalFrame: outputFrame,\n timelineFrame,\n timeSeconds:\n (outputFrame * outputRate.denominator) / outputRate.numerator,\n };\n },\n );\n const moving: IMovingDeliverable[] = props.production.deliverables.filter(\n (\n deliverable: IAutoMovieProductionDeliverable,\n ): deliverable is IMovingDeliverable =>\n deliverable.kind === \"feature\" || deliverable.kind === \"guide-pass\",\n );\n const ranges: IRange[] = moving.length === 0 ? [] : partition(frames, props);\n const chunks: IAutoMovieProductionRenderChunk[] = [];\n for (const deliverable of moving) {\n const pass: AutoMovieGuidePass =\n deliverable.kind === \"feature\"\n ? \"beauty\"\n : deliverable.pass === undefined\n ? legacyGuidePass\n : assertSingleGuidePass([deliverable.pass]);\n ranges.forEach((range: IRange, index: number): void => {\n chunks.push({\n slot: `${props.production.id}:${tier.kind}:${deliverable.id}:${pass}:${index}`,\n id: autoMovieRenderDigest(\n canonicalizeAutoMovieJson({\n protocol: \"automovie.production-render-chunk.v4\",\n production: props.production.id,\n tier,\n deliverable: deliverable.id,\n kind: deliverable.kind,\n editFingerprint,\n effects: effectDigests,\n sourceFrameFormat: props.production.frameFormat,\n frameFormat,\n frameStart: range.frameStart,\n frameEndExclusive: range.frameEndExclusive,\n pass,\n runtimeIdentity: props.runtimeIdentity,\n sources: range.sources,\n }),\n ),\n deliverable: deliverable.id,\n kind: deliverable.kind,\n pass,\n frameStart: range.frameStart,\n frameEndExclusive: range.frameEndExclusive,\n frames: range.frames,\n });\n });\n }\n return {\n version: 4,\n productionId: props.production.id,\n compileFingerprint: props.timeline.inputFingerprint,\n editFingerprint,\n runtimeIdentity: props.runtimeIdentity,\n tier,\n sourceFrameFormat: structuredClone(props.production.frameFormat),\n frameFormat,\n totalFrames: frames.length,\n chunkFrames: props.chunkFrames,\n chunks,\n tracks: {\n captions: canonicalProductionWebVtt(props.timeline),\n audio: structuredClone(props.timeline.tracks.audio),\n audioAssets,\n effects: props.effects.map(\n (effect: IAutoMovieCompiledFilmEffect): IAutoMovieCompiledFilmEffect =>\n structuredClone(effect),\n ),\n },\n };\n};\n\n/**\n * Split the output frames into consecutive ranges of at most `chunkFrames` and\n * attach the code-unit-sorted source digest of every shot each range shows,\n * throwing for a shot without a valid digest.\n */\nconst partition: (\n frames: IAutoMovieProductionRenderFrame[],\n props: {\n chunkFrames: number;\n sourceFingerprints: Readonly<Record<string, string>>;\n },\n) => IRange[] = (\n frames: IAutoMovieProductionRenderFrame[],\n props: {\n chunkFrames: number;\n sourceFingerprints: Readonly<Record<string, string>>;\n },\n): IRange[] => {\n const ranges: IRange[] = [];\n for (\n let frameStart: number = 0;\n frameStart < frames.length;\n frameStart += props.chunkFrames\n ) {\n const frameEndExclusive: number = Math.min(\n frameStart + props.chunkFrames,\n frames.length,\n );\n const range: IAutoMovieProductionRenderFrame[] = frames.slice(\n frameStart,\n frameEndExclusive,\n );\n const shots: Set<string> = new Set();\n for (const frame of range)\n for (const layer of frame.layers) shots.add(layer.shot);\n ranges.push({\n frameStart,\n frameEndExclusive,\n frames: range,\n sources: [...shots]\n .sort(compareCodeUnits)\n .map((shot: string): { shot: string; digest: string } => {\n const digest: string | undefined = props.sourceFingerprints[shot];\n if (digest === undefined || validDigest(digest) === false)\n throw new Error(\n `Render range references shot \"${shot}\" without one current builder-owned source fingerprint.`,\n );\n return { shot, digest };\n }),\n });\n }\n return ranges;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,MAAa,2BAU8B,UA8BF;CACvC,IACE,OAAO,cAAc,MAAM,WAAW,MAAM,SAC5C,MAAM,eAAe,GAErB,MAAM,IAAI,MACR,wDAAwD,MAAM,YAAY,EAC5E;CACF,IAAI,YAAY,MAAM,gBAAgB,YAAY,MAAM,OACtD,MAAM,IAAI,MACR,2EACF;CACF,IACE,MAAM,gBAAgB,4BAA4B,QAClD,YAAY,MAAM,gBAAgB,uBAAuB,MAAM,OAE/D,MAAM,IAAI,MACR,8FACF;CACF,MAAM,OAAuC,oBAAoB,MAAM,IAAI;CAC3E,MAAM,cACJ,uCAAuC,MAAM,WAAW,aAAa,IAAI;CAC3E,MAAM,aACJ,2BAA2B,WAAW;CACxC,IAAI,YAAY,QAAQ,MAAM,KAAK,YAAY,SAAS,MAAM,GAC5D,MAAM,IAAI,MACR,qEACF;CACF,MAAM,eACJ,2BAA2B,MAAM,QAAQ;CAC3C,MAAM,iBACJ,2BAA2B,MAAM,WAAW,WAAW;CACzD,IACE,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,WAAW,KACtC,MAAM,SAAS,OAAO,MAAM,WAAW,MACvC,YAAY,MAAM,SAAS,gBAAgB,MAAM,SACjD,0BAA0B,cAAc,cAAc,MAAM,SAC5D,MAAM,WAAW,yBACd,MAAM,SAAS,cAAc,eAAe,cAC3C,eA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aAAa,OAAO,QACpB,cAAc,MAAM,aACpB;EACA,MAAM,oBAA4B,KAAK,IACrC,aAAa,MAAM,aACnB,OAAO,MACT;EACA,MAAM,QAA2C,OAAO,MACtD,YACA,iBACF;EACA,MAAM,wBAAqB,IAAI,IAAI;EACnC,KAAK,MAAM,SAAS,OAClB,KAAK,MAAM,SAAS,MAAM,QAAQ,MAAM,IAAI,MAAM,IAAI;EACxD,OAAO,KAAK;GACV;GACA;GACA,QAAQ;GACR,SAAS,CAAC,GAAG,KAAK,CAAC,CAChB,KAAK,gBAAgB,CAAC,CACtB,KAAK,SAAmD;IACvD,MAAM,SAA6B,MAAM,mBAAmB;IAC5D,IAAI,WAAW,KAAA,KAAa,YAAY,MAAM,MAAM,OAClD,MAAM,IAAI,MACR,iCAAiC,KAAK,wDACxC;IACF,OAAO;KAAE;KAAM;IAAO;GACxB,CAAC;EACL,CAAC;CACH;CACA,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"planProductionRenderJob.mjs","names":[],"sources":["../../src/film/planProductionRenderJob.ts"],"sourcesContent":["import {\n AutoMovieFilmEffectRuntimeError,\n autoMovieRenderDigest,\n canonicalizeAutoMovieJson,\n compareCodeUnits,\n equalProductionFrameRates,\n productionFilmEffectEditFingerprint,\n productionFrameBoundaryToGridTick,\n resolveProductionFrameRate,\n sampleProductionRenderFrame,\n verifyProductionFilmEffectPopulation,\n} from \"@automovie/engine\";\nimport type {\n AutoMovieGuidePass,\n IAutoMovieCompiledFilmEffect,\n IAutoMoviePlanProductionRenderJobProps,\n IAutoMovieProductionAudioAssetIdentity,\n IAutoMovieProductionDeliverable,\n IAutoMovieProductionDesign,\n IAutoMovieProductionFrameRate,\n IAutoMovieProductionRenderChunk,\n IAutoMovieProductionRenderFrame,\n IAutoMovieProductionRenderJobPlan,\n IAutoMovieProductionRenderTier,\n} from \"@automovie/interface\";\n\nimport { canonicalProductionWebVtt } from \"../caption/canonicalProductionWebVtt.js\";\nimport { assertSingleGuidePass } from \"./assertSingleGuidePass.js\";\nimport { normalizeAudioAssets } from \"./normalizeAudioAssets.js\";\nimport { normalizeRenderTier } from \"./normalizeRenderTier.js\";\nimport { resolveProductionRenderTierFrameFormat } from \"./resolveProductionRenderTierFrameFormat.js\";\nimport { validDigest } from \"./validDigest.js\";\n\n/** A deliverable that renders moving images, the only kind with chunks. */\ntype IMovingDeliverable = IAutoMovieProductionDeliverable & {\n kind: \"feature\" | \"guide-pass\";\n};\n\n/** One output-frame range shared by every moving deliverable's chunk. */\ninterface IRange {\n frameStart: number;\n frameEndExclusive: number;\n frames: IAutoMovieProductionRenderFrame[];\n sources: Array<{ shot: string; digest: string }>;\n}\n\n/**\n * Plan the content-addressed render chunks and publication tracks of one\n * production edit at one tier.\n *\n * The tier, which defaults to final, decimates the timeline by `frameStep` and\n * projects the raster; output frames are partitioned into ranges of at most\n * `chunkFrames`, and every feature and guide-pass deliverable gets one chunk\n * per range, in declaration order. A feature renders `beauty`; a guide-pass\n * deliverable renders its declared `pass`, or, for a legacy record without\n * one, the single pass in `guidePasses`, which defaults to `pose`. Each chunk\n * id digests the edit, effect digests, tier, frame formats, range, pass,\n * runtime identity and the source digest of every shot the range shows.\n *\n * Throws when `chunkFrames` is not a positive safe integer; a runtime,\n * compile or source digest is malformed or missing; the tier is inadmissible\n * or its raster is odd; the timeline's id, frame rate or runtime differs from\n * the production's, or its length is not a multiple of `frameStep`; the effect\n * runtimes are not exactly the timeline's current population for this\n * production, as an `AutoMovieFilmEffectRuntimeError`; an audio asset is\n * invalid or a cue's asset is missing or holds another sample count; or a\n * guide pass is unknown or not single. The inputs are not changed.\n *\n * Current maintained callers are planner tests. This function does not execute a render, authenticate supplied runtime or source digests, or establish stored-plan currentness for an application scheduler.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Chunk ids hash canonical JSON of the declared edit, effects, tier, formats, range, pass, runtime identity and range source digests. Engine population and production-owner checks admit effect runtimes, and exact rational frame-to-tick rounding checks cue source lengths against asset samples. Supplied identity records remain caller claims; hashing them does not authenticate renderer bytes or prove equal pixels.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Admission rules live in their helpers (`normalizeRenderTier`, `normalizeAudioAssets`, `assertSingleGuidePass`, `validDigest`) and the engine (`verifyProductionFilmEffectPopulation`, `sampleProductionRenderFrame`); this function orders them, builds each range once, and joins ranges with deliverables. The range walk repeats `planChunkedSequenceRender`'s arithmetic on purpose, because there the range index orders reassembly and here it is one field of a content-addressed slot.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `pose` default is the interface's documented legacy rule for a guide deliverable without a pass, the protocol and version literals are schema identities, and every refusal throws rather than skipping a deliverable, cue or shot.\n * @evidence contracts/development/common.md#meaningful-documentation The doc states the tier default and decimation, the range partition and chunk order, which pass each deliverable renders including the legacy default, what a chunk id digests, every refusal with the effect error type, and that inputs are left unchanged.\n * @evidence contracts/development/implementation.md#efficient-algorithms For F tier output frames and S ordered segments, engine sampling costs O(F log(S+1)) plus rate reduction per frame. Range construction visits their at-most-two layers, sorts each range's distinct shot ids and shares ranges across D moving deliverables. Audio asset sorting/copying, effect verification/cloning, caption sorting/serialization and each chunk's canonical JSON/hash work depend on their complete populations and byte lengths; large runtime identities are serialized again per chunk.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Each range's frame array and sorted source identities are built once and shared across the moving deliverables of this call. There is no cross-call cache or maintained scheduler consuming these ids to reuse completed encodes; any such effect reuse would require a host's currentness and byte checks.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources All F samples are allocated even with no moving deliverable, then become collectable if no range retains them. With moving deliverables the result shares F frame records through D times ceil(F/chunkFrames) chunk records and retains copied audio/effect tracks, asset identities and caption text. Input arrays and output populations have no quota here; local indexes and digest strings become collectable after completion or refusal, with no acquired host handle or task.\n */\nexport const planProductionRenderJob: (\n props: IAutoMoviePlanProductionRenderJobProps,\n) => IAutoMovieProductionRenderJobPlan = (\n props: IAutoMoviePlanProductionRenderJobProps,\n): IAutoMovieProductionRenderJobPlan => {\n if (\n Number.isSafeInteger(props.chunkFrames) === false ||\n props.chunkFrames <= 0\n )\n throw new Error(\n `chunkFrames must be a positive safe integer, but was ${props.chunkFrames}.`,\n );\n if (validDigest(props.runtimeIdentity.sourceDigest) === false)\n throw new Error(\n \"Render runtime sourceDigest must be one current SHA-256 content identity.\",\n );\n if (\n props.runtimeIdentity.dialogueRuntimeIdentity !== null &&\n validDigest(props.runtimeIdentity.dialogueRuntimeIdentity) === false\n )\n throw new Error(\n \"Render runtime dialogueRuntimeIdentity must be null or one current SHA-256 content identity.\",\n );\n const tier: IAutoMovieProductionRenderTier = normalizeRenderTier(props.tier);\n const frameFormat: IAutoMovieProductionDesign[\"frameFormat\"] =\n resolveProductionRenderTierFrameFormat(props.production.frameFormat, tier);\n const outputRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(frameFormat);\n if (frameFormat.width % 2 !== 0 || frameFormat.height % 2 !== 0)\n throw new Error(\n \"The production H.264 render adapter requires even width and height.\",\n );\n const timelineRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(props.timeline);\n const productionRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(props.production.frameFormat);\n if (\n props.production.id.trim().length === 0 ||\n props.timeline.id !== props.production.id ||\n validDigest(props.timeline.inputFingerprint) === false ||\n equalProductionFrameRates(timelineRate, productionRate) === false ||\n props.production.targetRuntimeSeconds !==\n (props.timeline.totalFrames * productionRate.denominator) /\n productionRate.numerator\n )\n throw new Error(\n \"The film edit differs from the production identity, frame clock, or runtime. Recompile before planning.\",\n );\n if (props.timeline.totalFrames % tier.frameStep !== 0)\n throw new Error(\n `Render tier \"${tier.kind}\" frameStep ${tier.frameStep} does not divide the ${props.timeline.totalFrames}-frame edit. Choose a divisor so proxy and final have the same exact runtime.`,\n );\n const audioAssets: IAutoMovieProductionAudioAssetIdentity[] =\n normalizeAudioAssets(props.audioAssets);\n const assetsByPath: Map<string, IAutoMovieProductionAudioAssetIdentity> =\n new Map(\n audioAssets.map(\n (\n asset: IAutoMovieProductionAudioAssetIdentity,\n ): [string, IAutoMovieProductionAudioAssetIdentity] => [\n asset.path,\n asset,\n ],\n ),\n );\n for (const cue of props.timeline.tracks.audio) {\n // `sourceDurationFrames` is the cue's claim about the complete asset, so\n // it must land on exactly the asset's sample count at the asset's own rate;\n // the trim inside that duration is the mix's own refusal.\n const asset: IAutoMovieProductionAudioAssetIdentity | undefined =\n assetsByPath.get(cue.asset);\n if (\n asset === undefined ||\n asset.sourceFrames !==\n productionFrameBoundaryToGridTick({\n frame: cue.sourceDurationFrames,\n frameRate: timelineRate,\n ticksPerSecond: asset.sampleRate,\n rounding: \"nearest\",\n })\n )\n throw new Error(\n `Audio cue \"${cue.id}\" lacks one digest-, format-, and duration-verified source asset.`,\n );\n }\n const legacyGuidePass: Exclude<AutoMovieGuidePass, \"beauty\"> =\n assertSingleGuidePass(props.guidePasses ?? [\"pose\"]);\n const editFingerprint: string = productionFilmEffectEditFingerprint(\n props.timeline,\n );\n verifyProductionFilmEffectPopulation({\n timeline: props.timeline,\n effects: props.effects,\n });\n for (const effect of props.effects)\n if (effect.production !== props.production.id)\n throw new AutoMovieFilmEffectRuntimeError(\n \"film-effect-runtime-stale\",\n `Film effect runtime \"${effect.effect.id}\" belongs to production \"${effect.production}\", not \"${props.production.id}\".`,\n );\n const effectDigests: string[] = props.effects.map(\n (effect: IAutoMovieCompiledFilmEffect): string => effect.digest,\n );\n const frames: IAutoMovieProductionRenderFrame[] = Array.from(\n { length: props.timeline.totalFrames / tier.frameStep },\n (_: unknown, outputFrame: number): IAutoMovieProductionRenderFrame => {\n const timelineFrame: number = outputFrame * tier.frameStep;\n return {\n ...sampleProductionRenderFrame(props.timeline, timelineFrame),\n globalFrame: outputFrame,\n timelineFrame,\n timeSeconds:\n (outputFrame * outputRate.denominator) / outputRate.numerator,\n };\n },\n );\n const moving: IMovingDeliverable[] = props.production.deliverables.filter(\n (\n deliverable: IAutoMovieProductionDeliverable,\n ): deliverable is IMovingDeliverable =>\n deliverable.kind === \"feature\" || deliverable.kind === \"guide-pass\",\n );\n const ranges: IRange[] = moving.length === 0 ? [] : partition(frames, props);\n const chunks: IAutoMovieProductionRenderChunk[] = [];\n for (const deliverable of moving) {\n const pass: AutoMovieGuidePass =\n deliverable.kind === \"feature\"\n ? \"beauty\"\n : deliverable.pass === undefined\n ? legacyGuidePass\n : assertSingleGuidePass([deliverable.pass]);\n ranges.forEach((range: IRange, index: number): void => {\n chunks.push({\n slot: `${props.production.id}:${tier.kind}:${deliverable.id}:${pass}:${index}`,\n id: autoMovieRenderDigest(\n canonicalizeAutoMovieJson({\n protocol: \"automovie.production-render-chunk.v4\",\n production: props.production.id,\n tier,\n deliverable: deliverable.id,\n kind: deliverable.kind,\n editFingerprint,\n effects: effectDigests,\n sourceFrameFormat: props.production.frameFormat,\n frameFormat,\n frameStart: range.frameStart,\n frameEndExclusive: range.frameEndExclusive,\n pass,\n runtimeIdentity: props.runtimeIdentity,\n sources: range.sources,\n }),\n ),\n deliverable: deliverable.id,\n kind: deliverable.kind,\n pass,\n frameStart: range.frameStart,\n frameEndExclusive: range.frameEndExclusive,\n frames: range.frames,\n });\n });\n }\n return {\n version: 4,\n productionId: props.production.id,\n compileFingerprint: props.timeline.inputFingerprint,\n editFingerprint,\n runtimeIdentity: props.runtimeIdentity,\n tier,\n sourceFrameFormat: structuredClone(props.production.frameFormat),\n frameFormat,\n totalFrames: frames.length,\n chunkFrames: props.chunkFrames,\n chunks,\n tracks: {\n captions: canonicalProductionWebVtt(props.timeline),\n audio: structuredClone(props.timeline.tracks.audio),\n audioAssets,\n effects: props.effects.map(\n (effect: IAutoMovieCompiledFilmEffect): IAutoMovieCompiledFilmEffect =>\n structuredClone(effect),\n ),\n },\n };\n};\n\n/**\n * Split the output frames into consecutive ranges of at most `chunkFrames` and\n * attach the code-unit-sorted source digest of every shot each range shows,\n * throwing for a shot without a valid digest.\n */\nconst partition: (\n frames: IAutoMovieProductionRenderFrame[],\n props: {\n chunkFrames: number;\n sourceFingerprints: Readonly<Record<string, string>>;\n },\n) => IRange[] = (\n frames: IAutoMovieProductionRenderFrame[],\n props: {\n chunkFrames: number;\n sourceFingerprints: Readonly<Record<string, string>>;\n },\n): IRange[] => {\n const ranges: IRange[] = [];\n for (\n let frameStart: number = 0;\n frameStart < frames.length;\n frameStart += props.chunkFrames\n ) {\n const frameEndExclusive: number = Math.min(\n frameStart + props.chunkFrames,\n frames.length,\n );\n const range: IAutoMovieProductionRenderFrame[] = frames.slice(\n frameStart,\n frameEndExclusive,\n );\n const shots: Set<string> = new Set();\n for (const frame of range)\n for (const layer of frame.layers) shots.add(layer.shot);\n ranges.push({\n frameStart,\n frameEndExclusive,\n frames: range,\n sources: [...shots]\n .sort(compareCodeUnits)\n .map((shot: string): { shot: string; digest: string } => {\n const digest: string | undefined = props.sourceFingerprints[shot];\n if (digest === undefined || validDigest(digest) === false)\n throw new Error(\n `Render range references shot \"${shot}\" without one current builder-owned source fingerprint.`,\n );\n return { shot, digest };\n }),\n });\n }\n return ranges;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,MAAa,2BAGX,UACsC;CACtC,IACE,OAAO,cAAc,MAAM,WAAW,MAAM,SAC5C,MAAM,eAAe,GAErB,MAAM,IAAI,MACR,wDAAwD,MAAM,YAAY,EAC5E;CACF,IAAI,YAAY,MAAM,gBAAgB,YAAY,MAAM,OACtD,MAAM,IAAI,MACR,2EACF;CACF,IACE,MAAM,gBAAgB,4BAA4B,QAClD,YAAY,MAAM,gBAAgB,uBAAuB,MAAM,OAE/D,MAAM,IAAI,MACR,8FACF;CACF,MAAM,OAAuC,oBAAoB,MAAM,IAAI;CAC3E,MAAM,cACJ,uCAAuC,MAAM,WAAW,aAAa,IAAI;CAC3E,MAAM,aACJ,2BAA2B,WAAW;CACxC,IAAI,YAAY,QAAQ,MAAM,KAAK,YAAY,SAAS,MAAM,GAC5D,MAAM,IAAI,MACR,qEACF;CACF,MAAM,eACJ,2B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AO;EACpB,aAAa,MAAM;EACnB;EACA,QAAQ;GACN,UAAU,0BAA0B,MAAM,QAAQ;GAClD,OAAO,gBAAgB,MAAM,SAAS,OAAO,KAAK;GAClD;GACA,SAAS,MAAM,QAAQ,KACpB,WACC,gBAAgB,MAAM,CAC1B;EACF;CACF;AACF;;;;;;AAOA,MAAM,aAOJ,QACA,UAIa;CACb,MAAM,SAAmB,CAAC;CAC1B,KACE,IAAI,aAAqB,GACzB,aAAa,OAAO,QACpB,cAAc,MAAM,aACpB;EACA,MAAM,oBAA4B,KAAK,IACrC,aAAa,MAAM,aACnB,OAAO,MACT;EACA,MAAM,QAA2C,OAAO,MACtD,YACA,iBACF;EACA,MAAM,wBAAqB,IAAI,IAAI;EACnC,KAAK,MAAM,SAAS,OAClB,KAAK,MAAM,SAAS,MAAM,QAAQ,MAAM,IAAI,MAAM,IAAI;EACxD,OAAO,KAAK;GACV;GACA;GACA,QAAQ;GACR,SAAS,CAAC,GAAG,KAAK,CAAC,CAChB,KAAK,gBAAgB,CAAC,CACtB,KAAK,SAAmD;IACvD,MAAM,SAA6B,MAAM,mBAAmB;IAC5D,IAAI,WAAW,KAAA,KAAa,YAAY,MAAM,MAAM,OAClD,MAAM,IAAI,MACR,iCAAiC,KAAK,wDACxC;IACF,OAAO;KAAE;KAAM;IAAO;GACxB,CAAC;EACL,CAAC;CACH;CACA,OAAO;AACT"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieProductionDesign } from "@automovie/interface";
|
|
2
|
-
import type { IAutoMovieProductionRenderTier } from "./IAutoMovieProductionRenderTier.js";
|
|
1
|
+
import type { IAutoMovieProductionDesign, IAutoMovieProductionRenderTier } from "@automovie/interface";
|
|
3
2
|
/**
|
|
4
3
|
* Project a production's frame format through a render tier.
|
|
5
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveProductionRenderTierFrameFormat.mjs","names":[],"sources":["../../src/film/resolveProductionRenderTierFrameFormat.ts"],"sourcesContent":["import {\n canonicalProductionFrameRate,\n resolveProductionFrameRate,\n} from \"@automovie/engine\";\nimport type {\n IAutoMovieProductionDesign,\n IAutoMovieProductionFrameRate,\n} from \"@automovie/interface\";\n\nimport
|
|
1
|
+
{"version":3,"file":"resolveProductionRenderTierFrameFormat.mjs","names":[],"sources":["../../src/film/resolveProductionRenderTierFrameFormat.ts"],"sourcesContent":["import {\n canonicalProductionFrameRate,\n resolveProductionFrameRate,\n} from \"@automovie/engine\";\nimport type {\n IAutoMovieProductionDesign,\n IAutoMovieProductionFrameRate,\n IAutoMovieProductionRenderTier,\n} from \"@automovie/interface\";\n\nimport { normalizeRenderTier } from \"./normalizeRenderTier.js\";\n\n/**\n * Project a production's frame format through a render tier.\n *\n * The final tier returns a copy of the source unchanged. A proxy scales width\n * and height by `resolutionScale`, rounding each down to an even pixel count\n * of at least 2, divides the exact frame rate by `frameStep` and reduces it,\n * sets `fps` to that rate's decimal value, and keeps the color space and crop.\n * Throws when the tier is not admissible under `normalizeRenderTier` or the\n * source frame rate is invalid on the proxy branch. Final returns the source copy before rate resolution and performs no raster or rate admission.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Keeping every Nth frame of a rational clock n/d gives n/(d*N), reduced by canonicalProductionFrameRate after the denominator product is formed in binary64; an overflowed or unsafe term is refused by that helper. Proxy raster flooring yields even dimensions with a two-pixel minimum, which can exceed a tiny scaled source. Valid source raster and crop are caller premises, and final returns an unchecked copy.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns only the projection; tier admission is `normalizeRenderTier`'s and frame-rate resolution the engine's, so the planner and publication's identity check derive the same output format from one place.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No raster, rate or production is special-cased; the minimum of 2 pixels is the smallest even raster and applies only when a tiny source and scale would round to zero.\n * @evidence contracts/development/common.md#meaningful-documentation The doc states the final-tier behavior, the raster rounding and its floor, how the rate is divided and reduced, which fields are kept, and when the call throws.\n * @evidence contracts/development/implementation.md#efficient-algorithms The call does constant work: one tier check, one rate resolution and reduction by greatest common divisor, and one small record copy.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner and publication's identity check each call it once per plan or identity on a few-field record, so there is no costly equivalent work to share.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function retains nothing after returning a new format its caller owns and opens no handle or task.\n */\nexport const resolveProductionRenderTierFrameFormat: (\n source: IAutoMovieProductionDesign[\"frameFormat\"],\n tier: IAutoMovieProductionRenderTier,\n) => IAutoMovieProductionDesign[\"frameFormat\"] = (\n source: IAutoMovieProductionDesign[\"frameFormat\"],\n tier: IAutoMovieProductionRenderTier,\n): IAutoMovieProductionDesign[\"frameFormat\"] => {\n const normalized: IAutoMovieProductionRenderTier = normalizeRenderTier(tier);\n if (normalized.kind === \"final\") return structuredClone(source);\n const even: (value: number) => number = (value: number): number =>\n Math.max(2, Math.floor((value * normalized.resolutionScale) / 2) * 2);\n const sourceRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(source);\n const frameRate: IAutoMovieProductionFrameRate = canonicalProductionFrameRate(\n {\n numerator: sourceRate.numerator,\n denominator: sourceRate.denominator * normalized.frameStep,\n },\n );\n return {\n width: even(source.width),\n height: even(source.height),\n fps: frameRate.numerator / frameRate.denominator,\n frameRate,\n colorSpace: source.colorSpace,\n ...(source.crop === undefined\n ? {}\n : { crop: structuredClone(source.crop) }),\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8BA,MAAa,0CAIX,QACA,SAC8C;CAC9C,MAAM,aAA6C,oBAAoB,IAAI;CAC3E,IAAI,WAAW,SAAS,SAAS,OAAO,gBAAgB,MAAM;CAC9D,MAAM,QAAmC,UACvC,KAAK,IAAI,GAAG,KAAK,MAAO,QAAQ,WAAW,kBAAmB,CAAC,IAAI,CAAC;CACtE,MAAM,aACJ,2BAA2B,MAAM;CACnC,MAAM,YAA2C,6BAC/C;EACE,WAAW,WAAW;EACtB,aAAa,WAAW,cAAc,WAAW;CACnD,CACF;CACA,OAAO;EACL,OAAO,KAAK,OAAO,KAAK;EACxB,QAAQ,KAAK,OAAO,MAAM;EAC1B,KAAK,UAAU,YAAY,UAAU;EACrC;EACA,YAAY,OAAO;EACnB,GAAI,OAAO,SAAS,KAAA,IAChB,CAAC,IACD,EAAE,MAAM,gBAAgB,OAAO,IAAI,EAAE;CAC3C;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieProductionAudioAssetIdentity } from "
|
|
1
|
+
import type { IAutoMovieProductionAudioAssetIdentity } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* Whether a WAVE asset's source format and processing record are exactly what
|
|
4
4
|
* `decodeProductionAudioAsset` reports for a file of the asset's own rate and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validWaveAudioIdentity.mjs","names":[],"sources":["../../src/film/validWaveAudioIdentity.ts"],"sourcesContent":["import type {\n IAutoMovieProductionAudioProcessing,\n IAutoMovieProductionWaveSourceFormat,\n} from \"@automovie/
|
|
1
|
+
{"version":3,"file":"validWaveAudioIdentity.mjs","names":[],"sources":["../../src/film/validWaveAudioIdentity.ts"],"sourcesContent":["import type {\n IAutoMovieProductionAudioAssetIdentity,\n IAutoMovieProductionAudioProcessing,\n IAutoMovieProductionSoundPlan,\n IAutoMovieProductionWaveSourceFormat,\n} from \"@automovie/interface\";\n\nimport { equalOrderedScalars } from \"./equalOrderedScalars.js\";\n\n/** Rate the decoder resamples to: the sound plan's fixed mix rate. */\nconst MIX_SAMPLE_RATE: IAutoMovieProductionSoundPlan[\"sampleRate\"] = 48_000;\n\n/** KSDATAFORMAT_SUBTYPE_PCM, the SubFormat GUID of integer PCM. */\nconst PCM_SUBFORMAT: string = \"00000001-0000-0010-8000-00aa00389b71\";\n\n/** KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, the SubFormat GUID of IEEE float. */\nconst FLOAT_SUBFORMAT: string = \"00000003-0000-0010-8000-00aa00389b71\";\n\n/**\n * Whether a WAVE asset's source format and processing record are exactly what\n * `decodeProductionAudioAsset` reports for a file of the asset's own rate and\n * channel count, decoded for the 48 kHz mix.\n *\n * The asset must be mono or stereo with source rate and channels equal to its\n * own. The encoding must be 16-bit PCM or 32-bit float in a container of the\n * same width; the speakers must be front-center for mono and front-left,\n * front-right for stereo; a legacy header must carry no mask or SubFormat, and\n * an extensible one mask `0x4` or `0x3` and the PCM or float SubFormat GUID.\n * The processing must fold to one channel at 48 kHz with `[[1]]` or\n * `[[0.5, 0.5]]` and name the stage that the rates and channels imply.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Each relation restates a rule of the decoder's supported subset, the WAVEFORMATEXTENSIBLE speaker masks and the KSDATAFORMAT SubFormat GUIDs, so a record the decoder emitted for this rate and channel count passes and any edited field fails; ordered fields compare through `equalOrderedScalars` because channel order is meaningful.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One boolean expression mirrors the decoder record field by field, with the expected stage, speakers and matrix derived first from the channel count and the rate, so the provenance-independent rules stay in `normalizeAudioAssets`.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The constants are the Microsoft speaker masks and GUIDs and the mix rate typed from `IAutoMovieProductionSoundPlan`; no file or rate is special-cased, and the predicate returns false rather than repairing a field.\n * @evidence contracts/development/common.md#meaningful-documentation The doc names the decoder whose record this mirrors and lists every required relation for format, speakers, header and processing.\n * @evidence contracts/development/implementation.md#efficient-algorithms The check does constant work: a fixed set of field comparisons and two ordered comparisons of at most two entries.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work `normalizeAudioAssets` calls it once per WAVE asset on that asset's own record, so there is no equivalent work to share.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The predicate retains nothing after returning a boolean and opens no handle or task.\n */\nexport const validWaveAudioIdentity: (\n asset: Extract<IAutoMovieProductionAudioAssetIdentity, { kind: \"wave\" }>,\n) => boolean = (\n asset: Extract<IAutoMovieProductionAudioAssetIdentity, { kind: \"wave\" }>,\n): boolean => {\n const source: IAutoMovieProductionWaveSourceFormat = asset.sourceFormat;\n const processing: IAutoMovieProductionAudioProcessing = asset.processing;\n const mono: boolean = asset.channels === 1;\n const expectedSpeakers: string[] = mono\n ? [\"front-center\"]\n : [\"front-left\", \"front-right\"];\n const expectedMatrix: number[][] = mono ? [[1]] : [[0.5, 0.5]];\n const resampled: boolean = asset.sampleRate !== MIX_SAMPLE_RATE;\n const expectedKind: IAutoMovieProductionAudioProcessing[\"kind\"] = mono\n ? resampled\n ? \"resample\"\n : \"copy\"\n : resampled\n ? \"downmix-resample\"\n : \"downmix\";\n return (\n (asset.channels === 1 || asset.channels === 2) &&\n source.kind === \"wave\" &&\n source.sampleRate === asset.sampleRate &&\n source.channels === asset.channels &&\n (source.encoding === \"pcm-s16le\"\n ? source.containerBits === 16 && source.validBits === 16\n : source.encoding === \"float-f32le\" &&\n source.containerBits === 32 &&\n source.validBits === 32) &&\n source.layout.kind === (mono ? \"mono\" : \"stereo\") &&\n equalOrderedScalars(source.layout.speakers, expectedSpeakers) &&\n (source.layout.source === \"legacy-default\"\n ? source.header === \"wave-format-ex\" &&\n source.layout.mask === null &&\n source.subFormatGuid === null\n : source.layout.source === \"channel-mask\" &&\n source.header === \"wave-format-extensible\" &&\n source.layout.mask === (mono ? 0x4 : 0x3) &&\n source.subFormatGuid ===\n (source.encoding === \"pcm-s16le\"\n ? PCM_SUBFORMAT\n : FLOAT_SUBFORMAT)) &&\n processing.kind === expectedKind &&\n processing.outputChannels === 1 &&\n processing.outputSampleRate === MIX_SAMPLE_RATE &&\n equalOrderedScalars(processing.matrix, expectedMatrix)\n );\n};\n"],"mappings":";;;AAUA,MAAM,kBAA+D;;AAGrE,MAAM,gBAAwB;;AAG9B,MAAM,kBAA0B;;;;;;;;;;;;;;;;;;;;;;AAuBhC,MAAa,0BAGX,UACY;CACZ,MAAM,SAA+C,MAAM;CAC3D,MAAM,aAAkD,MAAM;CAC9D,MAAM,OAAgB,MAAM,aAAa;CACzC,MAAM,mBAA6B,OAC/B,CAAC,cAAc,IACf,CAAC,cAAc,aAAa;CAChC,MAAM,iBAA6B,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAK,EAAG,CAAC;CAC7D,MAAM,YAAqB,MAAM,eAAe;CAChD,MAAM,eAA4D,OAC9D,YACE,aACA,SACF,YACE,qBACA;CACN,QACG,MAAM,aAAa,KAAK,MAAM,aAAa,MAC5C,OAAO,SAAS,UAChB,OAAO,eAAe,MAAM,cAC5B,OAAO,aAAa,MAAM,aACzB,OAAO,aAAa,cACjB,OAAO,kBAAkB,MAAM,OAAO,cAAc,KACpD,OAAO,aAAa,iBACpB,OAAO,kBAAkB,MACzB,OAAO,cAAc,OACzB,OAAO,OAAO,UAAU,OAAO,SAAS,aACxC,oBAAoB,OAAO,OAAO,UAAU,gBAAgB,MAC3D,OAAO,OAAO,WAAW,mBACtB,OAAO,WAAW,oBAClB,OAAO,OAAO,SAAS,QACvB,OAAO,kBAAkB,OACzB,OAAO,OAAO,WAAW,kBACzB,OAAO,WAAW,4BAClB,OAAO,OAAO,UAAU,OAAO,IAAM,MACrC,OAAO,mBACJ,OAAO,aAAa,cACjB,gBACA,qBACV,WAAW,SAAS,gBACpB,WAAW,mBAAmB,KAC9B,WAAW,qBAAqB,mBAChC,oBAAoB,WAAW,QAAQ,cAAc;AAEzD"}
|
package/lib/index.mjs
CHANGED
|
@@ -84,6 +84,12 @@ import { listAutoMovieInspectionPaths } from "./scene/inspection/listAutoMovieIn
|
|
|
84
84
|
import { autoMovieViewerNamedViewpoints } from "./scene/subjectViewpoint/autoMovieViewerNamedViewpoints.mjs";
|
|
85
85
|
import { describeAutoMovieDrawScene } from "./draw/describeAutoMovieDrawScene.mjs";
|
|
86
86
|
import { encodeAutoMovieDrawPixels } from "./draw/encodeAutoMovieDrawPixels.mjs";
|
|
87
|
+
import { AUTO_MOVIE_INSPECTION_KINDS } from "./scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs";
|
|
88
|
+
import { markAutoMovieInspectionTrails } from "./scene/inspection/markAutoMovieInspectionTrails.mjs";
|
|
89
|
+
import { planAutoMovieInspectionTrailTimes } from "./scene/inspection/planAutoMovieInspectionTrailTimes.mjs";
|
|
90
|
+
import { frameAutoMovieViewerSubject } from "./scene/subjectViewpoint/frameAutoMovieViewerSubject.mjs";
|
|
91
|
+
import { resolveAutoMovieInspectionView } from "./scene/inspection/resolveAutoMovieInspectionView.mjs";
|
|
92
|
+
import { sampleAutoMovieInspectionTrails } from "./scene/inspection/sampleAutoMovieInspectionTrails.mjs";
|
|
87
93
|
import { applyAutoMovieSectionPlanes } from "./scene/applyAutoMovieSectionPlanes.mjs";
|
|
88
94
|
import { restoreAutoMovieRenderModeOnce } from "./scene/restoreAutoMovieRenderModeOnce.mjs";
|
|
89
95
|
import { restoreAutoMovieRenderModeState } from "./scene/restoreAutoMovieRenderModeState.mjs";
|
|
@@ -132,7 +138,6 @@ import { measureAutoMovieInspectionBounds } from "./scene/inspection/measureAuto
|
|
|
132
138
|
import { measureAutoMovieInspectionPaths } from "./scene/inspection/measureAutoMovieInspectionPaths.mjs";
|
|
133
139
|
import { focusAutoMovieInspection } from "./scene/inspection/focusAutoMovieInspection.mjs";
|
|
134
140
|
import { legendAutoMovieInspectionMarks } from "./scene/inspection/legendAutoMovieInspectionMarks.mjs";
|
|
135
|
-
import { AUTO_MOVIE_INSPECTION_KINDS } from "./scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs";
|
|
136
141
|
import { listAutoMovieInspectionKinds } from "./scene/inspection/listAutoMovieInspectionKinds.mjs";
|
|
137
142
|
import { measureAutoMovieInspectionDefects } from "./scene/inspection/measureAutoMovieInspectionDefects.mjs";
|
|
138
143
|
import { measureAutoMovieInspectionEdges } from "./scene/inspection/measureAutoMovieInspectionEdges.mjs";
|
|
@@ -141,11 +146,7 @@ import { mergeAutoMovieInspectionLegends } from "./scene/inspection/mergeAutoMov
|
|
|
141
146
|
import { placeAutoMovieInspectionLabels } from "./scene/inspection/placeAutoMovieInspectionLabels.mjs";
|
|
142
147
|
import { resolveAutoMovieInspectionColors } from "./scene/inspection/resolveAutoMovieInspectionColors.mjs";
|
|
143
148
|
import { applyAutoMovieInspection } from "./scene/inspection/applyAutoMovieInspection.mjs";
|
|
144
|
-
import {
|
|
145
|
-
import { planAutoMovieInspectionTrailTimes } from "./scene/inspection/planAutoMovieInspectionTrailTimes.mjs";
|
|
146
|
-
import { frameAutoMovieViewerSubject } from "./scene/subjectViewpoint/frameAutoMovieViewerSubject.mjs";
|
|
147
|
-
import { resolveAutoMovieInspectionView } from "./scene/inspection/resolveAutoMovieInspectionView.mjs";
|
|
148
|
-
import { sampleAutoMovieInspectionTrails } from "./scene/inspection/sampleAutoMovieInspectionTrails.mjs";
|
|
149
|
+
import { replaceAutoMovieDrawInspection } from "./draw/replaceAutoMovieDrawInspection.mjs";
|
|
149
150
|
import { selectAutoMovieDrawSubject } from "./draw/selectAutoMovieDrawSubject.mjs";
|
|
150
151
|
import { installAutoMovieDraw } from "./draw/installAutoMovieDraw.mjs";
|
|
151
152
|
import { renderAutoMovieDrawnVideo } from "./draw/renderAutoMovieDrawnVideo.mjs";
|
|
@@ -285,4 +286,4 @@ import { assertProductionOpusProfile } from "./delivery/assertProductionOpusProf
|
|
|
285
286
|
import { productionOpusDescription } from "./delivery/productionOpusDescription.mjs";
|
|
286
287
|
import { AUTOMOVIE_MP4_SRGB_COLOUR } from "./delivery/AUTOMOVIE_MP4_SRGB_COLOUR.mjs";
|
|
287
288
|
import { AUTOMOVIE_MP4_UNITY_MATRIX } from "./delivery/AUTOMOVIE_MP4_UNITY_MATRIX.mjs";
|
|
288
|
-
export { AUTOMOVIE_FORMATION_CYCLE_SAMPLES, AUTOMOVIE_GUIDE_PASSES, AUTOMOVIE_MP4_SRGB_COLOUR, AUTOMOVIE_MP4_UNITY_MATRIX, AUTOMOVIE_PRODUCTION_OPUS_PROFILE, AUTO_MOVIE_CAPTURE_PLAN_KEYS, AUTO_MOVIE_DRAW_GLOBALS, AUTO_MOVIE_INSPECTION_DEPTH_LEAD, AUTO_MOVIE_INSPECTION_KEYS, AUTO_MOVIE_INSPECTION_KINDS, AUTO_MOVIE_INSPECTION_PALETTE, AutoMovieCaptureFolder, AutoMovieDrawSession, AutoMovieGeometryPhysicalVertices, AutoMoviePlayer, AutoMovieRasterSheet, AutoMovieResourceRetirementScope, AutoMovieSkinnedMesh, AutoMovieTextureCache, DEPTH_NORMALIZATION_RANGE, DETAIL_NORMAL_TARGET, EDGE_SHELL_NAME, EDGE_WIDTH, POSE_OVERLAY_NAME, RELIEF_WEIGHT_TARGET, SPACE_GROUP_NAME, SUBSURFACE_TARGET, addMaterialShaderPatch, applyAutoMovieDeliveryCrop, applyAutoMovieInspection, applyAutoMovieInspectionSection, applyAutoMovieInspectionShade, applyAutoMovieRigLocals, applyAutoMovieSectionPlanes, applyAutoMovieSemanticMask, applyAutoMovieShadowParticipation, applyAutoMovieViewerSubjectPose, applyDetailNormal, applyDualQuaternionSkinning, applyExpression, applyFormationCycleCadence, applyFormationCycleMaterial, applyLightMotion, applyLightState, applyMaterialOverlays, applyMaterialShaderPatches, applyObjectMotion, applyObjectMotions, applyPose, applyReliefWeights, applyRenderMode, applyRendererEnvironment, applySceneEnvironment, applySceneFog, applySubsurfaceShading, applyTransform, assertAutoMovieCaptureClock, assertAutoMovieSceneShadowProfile, assertAutoMovieViewerCameraDepthPrecision, assertProductionOpusProfile, assertProductionPngPicture, assertProductionVideoProfile, assessAutoMovieRenderBudget, attachAutoMovieSemanticMask, auditAutoMovieDecodedFrames, auditAutoMovieEncodedPresentation, auditAutoMovieRenderObservation, auditAutoMovieSemanticMaskScene, autoMovieAnalysisRampColor, autoMovieCaptionLanguageComparisonKey, autoMovieInspectionPathOf, autoMovieRenderBudgetEvidence, autoMovieRenderBudgetRefusal, autoMovieRenderTargetRendererOfGraphics, autoMovieRenderTargetSettingsOfShot, autoMovieSemanticMaskOf, autoMovieViewerNamedViewpoints, autoMovieViewerPoseFromHeading, autoMovieViewerSubjectKey, autoMovieViewerTurntableViewpoints, bakeFormationCycle, beatCaptions, buildAnalysisOverlayObject, buildAutoMovieConstruction, buildAutoMovieInspectionMarks, buildAutoMovieMaterialLibrary, buildFluidSprayObject, buildFluidSurfaceObject, buildGeometry, buildHumanCartoonFace, buildHumanPolygon, buildInstancedEffect, buildInstancedFormation, buildInstancedInstanceSet, buildLight, buildMaterial, buildModel, buildPlantingObject, buildPropArticulation, buildScene, buildSoftBodyObject, buildSpaceObject, canonicalProductionWebVtt, canonicalizeAutoMovieCaptionText, captureAutoMovieFramebufferRestore, captureAutoMovieMetricFrame, captureAutoMovieViewerSubjectView, captureViewerSnapshot, chooseAutoMovieInspectionMarks, collectAutoMovieOwnedResources, colorAutoMovieInspectionObjects, compareAutoMovieCaptureRounds, compareAutoMovieRasters, constructAutoMovieOwnedResources, createAutoMovieClosedSphereGeometry, createAutoMovieHttpArtifactStore, createAutoMovieHumanPolygonFigure, createAutoMovieInspectionDots, createAutoMovieInspectionStrokes, createAutoMovieMetricOrthographicCamera, createAutoMoviePhysicalPoseAdapter, createAutoMovieResourceRetirement, createAutoMovieSurfaceAppearance, createDetailNormalShaderPatch, createDualQuaternionSkinningShaderPatch, createImportedModelObject, createReliefWeightShaderPatch, decodeAutoMovieDrawPixels, decodeAutoMovieRasterPng, defaultMaterial, describeAutoMovieDrawScene, detailNormalFragment, detailNormalVertex, disposeCrossDissolve, disposeFadeToBlack, dualQuaternionSkinningOf, dualQuaternionSkinningVertex, encodeAutoMovieDrawPixels, encodeAutoMovieRasterPng, encodeAutoMovieWavPcm16, equalOrderedScalars, evaluateAutoMovieViewerCameraDepthPrecision, expandAutoMovieInspectionSweep, ffmpegArgs, flattenInstancedModel, flattenInstancedObject, focusAutoMovieInspection, formatAutoMovieCapturePlanRequest, formatAutoMovieInspectionCameraView, formatAutoMovieInspectionRequest, formatAutoMovieInspectionView, formationCycleCadence, formationCycleGait, formationCycleOf, formationCyclePosition, formationCycleStride, frameAutoMovieViewerSubject, frameName, framePattern, frameTimes, guardAutoMovieRenderModeRetirement, guardAutoMovieSceneShadowRetirement, guidePassFrameName, guidePassFramePattern, hashAutoMovieRasterImage, inspectAutoMovieCaptionReadabilityWithRuntime, installAutoMovieDraw, instancedModelParts, invalidateAutoMovieSceneShadowPrograms, invalidateAutoMovieSkinnedPose, isAutoMovieWebVttIdentifier, isGuidePass, legendAutoMovieInspectionMarks, listAutoMovieInspectionKinds, listAutoMovieInspectionPaths, mapImportedHumanoidBones, markAutoMovieInspectionTrails, maskColor, matchAutoMovieInspectionPath, materialOverlayFragment, materialOverlayVertex, materialTextureBindings, measureAutoMovieInspectionBounds, measureAutoMovieInspectionDefects, measureAutoMovieInspectionEdges, measureAutoMovieInspectionMeshes, measureAutoMovieInspectionPaths, mergeAutoMovieInspectionLegends, mixAutoMovieAudioPcm, normalizeGuidePasses, observeAutoMovieRendererFrame, parseAutoMovieCaptionLanguage, parseAutoMovieCapturePlanRequest, parseAutoMovieInspectionRequest, parseAutoMovieInspectionView, parseAutoMovieViewerSubjectKey, placeAutoMovieInspectionLabels, planAutoMovieCapture, planAutoMovieCaptureFrames, planAutoMovieCaptureLayout, planAutoMovieCaptureUrl, planAutoMovieDrawCall, planAutoMovieInspectionTrailTimes, planAutoMovieVideoEncoding, planAutoMovieVideoFrames, planAutoMovieVideoSceneCuts, planCaptionSidecar, planChunkedSequenceRender, planGuidePassOutputs, planPoseKeypointSidecar, planProductionRenderJob, planSequenceRender, planViewerFrameTimes, productionOpusDescription, productionVisualDeliveryOccurrence, readAutoMovieCaptureArguments, readAutoMovieCubeShadowDepth, readAutoMovieDeliveryCrop, readAutoMovieDisplayDestinationEncoding, readAutoMovieFilmDisplayTextureResidency, readAutoMovieMaterialTextureSources, readAutoMovieRenderTextureTarget, readAutoMovieShadowLightSource, readAutoMovieShadowTextureTargets, readAutoMovieTextureSource, readAutoMovieTransmissionTextureTarget, readAutoMovieVideoSceneCuts, regenerateFormationSlot, regenerateInstanceSlot, releaseViewerRenderer, reliefWeightFragment, reliefWeightVertex, renderAndSee, renderAutoMovieDrawnVideo, renderAutoMovieFilmFrame, renderAutoMovieScenePass, renderCaptionSidecar, renderCrossDissolve, renderCrossDissolveFrames, renderFadeToBlackFrame, renderPathStem, renderPoseKeypointSidecar, renderScreenplay, renderSequenceAndSee, renderSequenceVideo, renderVideo, reportAutoMovieResourceRetirement, resetAutoMovieSceneShadowTargets, resolveAutoMovieCapturePatterns, resolveAutoMovieFilmBeautyComposition, resolveAutoMovieInspectionColors, resolveAutoMovieInspectionView, resolveProductionPngProfile, resolveProductionRenderTierFrameFormat, resolveProductionVideoProfile, restoreAutoMovieRenderModeOnce, restoreAutoMovieRenderModeState, retireAutoMovieCubeShadowDepth, runAutoMovieCapture, runAutoMovieVideoCapture, sampleAutoMovieInspectionTrails, sampleCompiledEffect, sampleFormationCycleMatrix, sampleFormationMotion, sampleFormationSlotMotion, scaleAutoMovieCaptureLabels, selectAutoMovieDrawSubject, selectAutoMovieRenderBudget, selectFormationLod, serializeAutoMovieWebVttCueText, serializeAutoMovieWebVttIdentifier, serializeAutoMovieWebVttSingleLineText, sliceCaptionSidecar, spliceTangentNormal, stampAutoMovieDrawLegend, stampAutoMovieRasterLabel, subsurfaceFragment, subsurfacePhysicalChunk, subsurfaceTable, textureBindingAsset, updateAutoMovieComparisonCamera };
|
|
289
|
+
export { AUTOMOVIE_FORMATION_CYCLE_SAMPLES, AUTOMOVIE_GUIDE_PASSES, AUTOMOVIE_MP4_SRGB_COLOUR, AUTOMOVIE_MP4_UNITY_MATRIX, AUTOMOVIE_PRODUCTION_OPUS_PROFILE, AUTO_MOVIE_CAPTURE_PLAN_KEYS, AUTO_MOVIE_DRAW_GLOBALS, AUTO_MOVIE_INSPECTION_DEPTH_LEAD, AUTO_MOVIE_INSPECTION_KEYS, AUTO_MOVIE_INSPECTION_KINDS, AUTO_MOVIE_INSPECTION_PALETTE, AutoMovieCaptureFolder, AutoMovieDrawSession, AutoMovieGeometryPhysicalVertices, AutoMoviePlayer, AutoMovieRasterSheet, AutoMovieResourceRetirementScope, AutoMovieSkinnedMesh, AutoMovieTextureCache, DEPTH_NORMALIZATION_RANGE, DETAIL_NORMAL_TARGET, EDGE_SHELL_NAME, EDGE_WIDTH, POSE_OVERLAY_NAME, RELIEF_WEIGHT_TARGET, SPACE_GROUP_NAME, SUBSURFACE_TARGET, addMaterialShaderPatch, applyAutoMovieDeliveryCrop, applyAutoMovieInspection, applyAutoMovieInspectionSection, applyAutoMovieInspectionShade, applyAutoMovieRigLocals, applyAutoMovieSectionPlanes, applyAutoMovieSemanticMask, applyAutoMovieShadowParticipation, applyAutoMovieViewerSubjectPose, applyDetailNormal, applyDualQuaternionSkinning, applyExpression, applyFormationCycleCadence, applyFormationCycleMaterial, applyLightMotion, applyLightState, applyMaterialOverlays, applyMaterialShaderPatches, applyObjectMotion, applyObjectMotions, applyPose, applyReliefWeights, applyRenderMode, applyRendererEnvironment, applySceneEnvironment, applySceneFog, applySubsurfaceShading, applyTransform, assertAutoMovieCaptureClock, assertAutoMovieSceneShadowProfile, assertAutoMovieViewerCameraDepthPrecision, assertProductionOpusProfile, assertProductionPngPicture, assertProductionVideoProfile, assessAutoMovieRenderBudget, attachAutoMovieSemanticMask, auditAutoMovieDecodedFrames, auditAutoMovieEncodedPresentation, auditAutoMovieRenderObservation, auditAutoMovieSemanticMaskScene, autoMovieAnalysisRampColor, autoMovieCaptionLanguageComparisonKey, autoMovieInspectionPathOf, autoMovieRenderBudgetEvidence, autoMovieRenderBudgetRefusal, autoMovieRenderTargetRendererOfGraphics, autoMovieRenderTargetSettingsOfShot, autoMovieSemanticMaskOf, autoMovieViewerNamedViewpoints, autoMovieViewerPoseFromHeading, autoMovieViewerSubjectKey, autoMovieViewerTurntableViewpoints, bakeFormationCycle, beatCaptions, buildAnalysisOverlayObject, buildAutoMovieConstruction, buildAutoMovieInspectionMarks, buildAutoMovieMaterialLibrary, buildFluidSprayObject, buildFluidSurfaceObject, buildGeometry, buildHumanCartoonFace, buildHumanPolygon, buildInstancedEffect, buildInstancedFormation, buildInstancedInstanceSet, buildLight, buildMaterial, buildModel, buildPlantingObject, buildPropArticulation, buildScene, buildSoftBodyObject, buildSpaceObject, canonicalProductionWebVtt, canonicalizeAutoMovieCaptionText, captureAutoMovieFramebufferRestore, captureAutoMovieMetricFrame, captureAutoMovieViewerSubjectView, captureViewerSnapshot, chooseAutoMovieInspectionMarks, collectAutoMovieOwnedResources, colorAutoMovieInspectionObjects, compareAutoMovieCaptureRounds, compareAutoMovieRasters, constructAutoMovieOwnedResources, createAutoMovieClosedSphereGeometry, createAutoMovieHttpArtifactStore, createAutoMovieHumanPolygonFigure, createAutoMovieInspectionDots, createAutoMovieInspectionStrokes, createAutoMovieMetricOrthographicCamera, createAutoMoviePhysicalPoseAdapter, createAutoMovieResourceRetirement, createAutoMovieSurfaceAppearance, createDetailNormalShaderPatch, createDualQuaternionSkinningShaderPatch, createImportedModelObject, createReliefWeightShaderPatch, decodeAutoMovieDrawPixels, decodeAutoMovieRasterPng, defaultMaterial, describeAutoMovieDrawScene, detailNormalFragment, detailNormalVertex, disposeCrossDissolve, disposeFadeToBlack, dualQuaternionSkinningOf, dualQuaternionSkinningVertex, encodeAutoMovieDrawPixels, encodeAutoMovieRasterPng, encodeAutoMovieWavPcm16, equalOrderedScalars, evaluateAutoMovieViewerCameraDepthPrecision, expandAutoMovieInspectionSweep, ffmpegArgs, flattenInstancedModel, flattenInstancedObject, focusAutoMovieInspection, formatAutoMovieCapturePlanRequest, formatAutoMovieInspectionCameraView, formatAutoMovieInspectionRequest, formatAutoMovieInspectionView, formationCycleCadence, formationCycleGait, formationCycleOf, formationCyclePosition, formationCycleStride, frameAutoMovieViewerSubject, frameName, framePattern, frameTimes, guardAutoMovieRenderModeRetirement, guardAutoMovieSceneShadowRetirement, guidePassFrameName, guidePassFramePattern, hashAutoMovieRasterImage, inspectAutoMovieCaptionReadabilityWithRuntime, installAutoMovieDraw, instancedModelParts, invalidateAutoMovieSceneShadowPrograms, invalidateAutoMovieSkinnedPose, isAutoMovieWebVttIdentifier, isGuidePass, legendAutoMovieInspectionMarks, listAutoMovieInspectionKinds, listAutoMovieInspectionPaths, mapImportedHumanoidBones, markAutoMovieInspectionTrails, maskColor, matchAutoMovieInspectionPath, materialOverlayFragment, materialOverlayVertex, materialTextureBindings, measureAutoMovieInspectionBounds, measureAutoMovieInspectionDefects, measureAutoMovieInspectionEdges, measureAutoMovieInspectionMeshes, measureAutoMovieInspectionPaths, mergeAutoMovieInspectionLegends, mixAutoMovieAudioPcm, normalizeGuidePasses, observeAutoMovieRendererFrame, parseAutoMovieCaptionLanguage, parseAutoMovieCapturePlanRequest, parseAutoMovieInspectionRequest, parseAutoMovieInspectionView, parseAutoMovieViewerSubjectKey, placeAutoMovieInspectionLabels, planAutoMovieCapture, planAutoMovieCaptureFrames, planAutoMovieCaptureLayout, planAutoMovieCaptureUrl, planAutoMovieDrawCall, planAutoMovieInspectionTrailTimes, planAutoMovieVideoEncoding, planAutoMovieVideoFrames, planAutoMovieVideoSceneCuts, planCaptionSidecar, planChunkedSequenceRender, planGuidePassOutputs, planPoseKeypointSidecar, planProductionRenderJob, planSequenceRender, planViewerFrameTimes, productionOpusDescription, productionVisualDeliveryOccurrence, readAutoMovieCaptureArguments, readAutoMovieCubeShadowDepth, readAutoMovieDeliveryCrop, readAutoMovieDisplayDestinationEncoding, readAutoMovieFilmDisplayTextureResidency, readAutoMovieMaterialTextureSources, readAutoMovieRenderTextureTarget, readAutoMovieShadowLightSource, readAutoMovieShadowTextureTargets, readAutoMovieTextureSource, readAutoMovieTransmissionTextureTarget, readAutoMovieVideoSceneCuts, regenerateFormationSlot, regenerateInstanceSlot, releaseViewerRenderer, reliefWeightFragment, reliefWeightVertex, renderAndSee, renderAutoMovieDrawnVideo, renderAutoMovieFilmFrame, renderAutoMovieScenePass, renderCaptionSidecar, renderCrossDissolve, renderCrossDissolveFrames, renderFadeToBlackFrame, renderPathStem, renderPoseKeypointSidecar, renderScreenplay, renderSequenceAndSee, renderSequenceVideo, renderVideo, replaceAutoMovieDrawInspection, reportAutoMovieResourceRetirement, resetAutoMovieSceneShadowTargets, resolveAutoMovieCapturePatterns, resolveAutoMovieFilmBeautyComposition, resolveAutoMovieInspectionColors, resolveAutoMovieInspectionView, resolveProductionPngProfile, resolveProductionRenderTierFrameFormat, resolveProductionVideoProfile, restoreAutoMovieRenderModeOnce, restoreAutoMovieRenderModeState, retireAutoMovieCubeShadowDepth, runAutoMovieCapture, runAutoMovieVideoCapture, sampleAutoMovieInspectionTrails, sampleCompiledEffect, sampleFormationCycleMatrix, sampleFormationMotion, sampleFormationSlotMotion, scaleAutoMovieCaptureLabels, selectAutoMovieDrawSubject, selectAutoMovieRenderBudget, selectFormationLod, serializeAutoMovieWebVttCueText, serializeAutoMovieWebVttIdentifier, serializeAutoMovieWebVttSingleLineText, sliceCaptionSidecar, spliceTangentNormal, stampAutoMovieDrawLegend, stampAutoMovieRasterLabel, subsurfaceFragment, subsurfacePhysicalChunk, subsurfaceTable, textureBindingAsset, updateAutoMovieComparisonCamera };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieRasterImage } from "
|
|
1
|
+
import type { IAutoMovieCaptureBudget, IAutoMovieRasterImage } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* A contact sheet of pictures, filled one picture at a time: each picture is
|
|
4
4
|
* reduced into its cell in row-major order, and its caption is written in a
|
|
@@ -96,7 +96,7 @@ export declare class AutoMovieRasterSheet {
|
|
|
96
96
|
* @param reduction `area` to average the pixels a cell pixel covers, `nearest` to copy the one at its centre.
|
|
97
97
|
* @param lines Lines of caption the strip under each cell holds, a positive integer; a caption that wraps onto more lines keeps its first ones.
|
|
98
98
|
*/
|
|
99
|
-
constructor(capacity: number, columns: number, cellWidth: number, cellHeight: number, reduction?: "
|
|
99
|
+
constructor(capacity: number, columns: number, cellWidth: number, cellHeight: number, reduction?: IAutoMovieCaptureBudget["reduction"], lines?: number);
|
|
100
100
|
/**
|
|
101
101
|
* Reduce one frame into the next cell and write its caption in the strip under it.
|
|
102
102
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoMovieRasterSheet.js","sourceRoot":"","sources":["../../src/picture/AutoMovieRasterSheet.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AutoMovieRasterSheet.js","sourceRoot":"","sources":["../../src/picture/AutoMovieRasterSheet.ts"],"names":[],"mappings":";;;AAKA,iFAA2E;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;IACE,qCAAqC;IACpB,KAAK,CAAwB;IAE9C,2BAA2B;IACnB,KAAK,CAAS;IAEtB,uBAAuB;IACN,QAAQ,CAAS;IAElC,qBAAqB;IACJ,OAAO,CAAS;IAEjC,4BAA4B;IACX,SAAS,CAAS;IAEnC,gDAAgD;IAC/B,UAAU,CAAS;IAEpC,6DAA6D;IAC5C,KAAK,CAAS;IAE/B,wCAAwC;IACvB,KAAK,CAAS;IAE/B,8CAA8C;IAC7B,SAAS,CAAuC;IAEjE;;;;;;;;;;OAUG;IACI,MAAM,CAAC,OAAO,CAAC,UAAkB,EAAE,KAAK,GAAW,CAAC;QACzD,OAAO,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,GAAG,oBAAoB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;OAUG;IACI,MAAM,CAAC,IAAI,CAChB,OAAe,EACf,SAAiB,EACjB,UAAkB;QAElB,MAAM,KAAK,GAAW,oBAAoB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC7D,MAAM,IAAI,GAAW,IAAI,CAAC,GAAG,CAC3B,CAAC,EACD,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAClD,CAAC;QAC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