@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":"readAutoMovieMaterialTextureSources.mjs","names":[],"sources":["../../src/scene/readAutoMovieMaterialTextureSources.ts"],"sourcesContent":["import type {\n AutoMovieBuiltinTexturePurpose,\n IAutoMovieRenderTextureResidency,\n} from \"@automovie/engine\";\nimport * as THREE from \"three\";\n\nimport { readAutoMovieTextureSource } from \"./readAutoMovieTextureSource.js\";\n\ntype RuntimeSource = NonNullable<\n IAutoMovieRenderTextureResidency[\"runtimeTextures\"]\n>[number];\n/** Returned rows always carry the current live-scope list, including an empty list. */\ntype ObservedRuntimeSource = RuntimeSource & { residents: string[] };\n\n/**\n * Read actual implicit material and area-light lookup objects for one scope. Shader factories publish the same Texture reference they bind. The area pair follows WebGLLights' real extension choice without initializing tables. Caller-retained rows belong to this same renderer, survive material removal, and are dropped only after actual texture/context release. Current scope use labels are replaced on each observation; obsolete rows remain retained-only. Each row follows an actual Texture wrapper, not mutable UUIDs. Distinct wrappers retain their own current upload keys; the engine shares equivalent Source/key pairs. Reobserving one wrapper replaces its old state, matching native cache-key reference retirement after upload. This is a reachable current-state bound; a host requiring upload-transition peak storage supplies the previous phase separately until that phase's native release is observed. These are reachable-storage bounds, never a claim of current GLuint count. No shader, texture state or GPU lifetime is changed by the observation.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Observes actual material-published lookup textures and native area-light extension selection, updates current scope use and replaces each actual wrapper current upload metadata while retaining prior context-owned rows.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Call-local first-row identity and owner/count indexes separate efficient row matching from actual shader producers and Engine allocation-equivalence grouping.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Wrapper identity rather than mutable UUID names governs updates; first duplicate row and generated owner order are preserved, removed use retains potential context facts and reobservation does not independently prove native upload transition retirement.\n * @evidence contracts/development/common.md#meaningful-documentation Documents reachable storage versus GLuint/history proof, current live labels, retained-only rows and no texture/program mutation by this observer.\n * @evidence contracts/development/implementation.md#efficient-algorithms R retained rows are indexed once and N scene nodes/material roles scanned; expected indexed row matching avoids repeated whole-row scans, with scope-list copies/deduplication and metadata string generation costing their actual lengths.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Equal actual purpose/wrapper tokens replace the same first retained row while separate wrappers stay distinct; Engine decides Source/upload-equivalent allocation sharing, and no lookup table is initialized merely to observe it.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Indexes are call-local and returned rows borrow live Texture identity facts through scalar tokens; caller explicitly prunes after actual texture/context release, and there is no independent row-count cap in this observer.\n */\nexport function readAutoMovieMaterialTextureSources(props: {\n scope: string;\n renderer: { extensions: Pick<THREE.WebGLRenderer[\"extensions\"], \"has\"> };\n scene: THREE.Scene;\n retained?: readonly RuntimeSource[];\n}): RuntimeSource[] {\n const rows: ObservedRuntimeSource[] = (props.retained ?? []).map(\n (row: RuntimeSource): ObservedRuntimeSource => ({\n ...row,\n residents: (row.residents ?? []).filter(\n (scope: string): boolean => scope !== props.scope,\n ),\n }),\n );\n const byTexture: Map<string, ObservedRuntimeSource> = new Map();\n const owners: Set<string> = new Set();\n const counts: Map<AutoMovieBuiltinTexturePurpose | undefined, number> =\n new Map();\n const key: (\n purpose: AutoMovieBuiltinTexturePurpose | undefined,\n identity: string | undefined,\n ) => string = (\n purpose: AutoMovieBuiltinTexturePurpose | undefined,\n identity: string | undefined,\n ): string => JSON.stringify([purpose, identity]);\n for (const row of rows) {\n const identity: string = key(row.purpose, row.texture.textureIdentity);\n if (!byTexture.has(identity)) byTexture.set(identity, row);\n owners.add(row.owner);\n counts.set(row.purpose, (counts.get(row.purpose) ?? 0) + 1);\n }\n const observe: (\n purpose: AutoMovieBuiltinTexturePurpose,\n value: unknown,\n ) => void = (\n purpose: AutoMovieBuiltinTexturePurpose,\n value: unknown,\n ): void => {\n if (!isTexture(value)) return;\n const {\n asset: _asset,\n ...texture\n }: ReturnType<typeof readAutoMovieTextureSource> =\n readAutoMovieTextureSource(purpose, value);\n const identity: string = key(purpose, texture.textureIdentity);\n const previous: ObservedRuntimeSource | undefined = byTexture.get(identity);\n if (previous !== undefined) {\n previous.residents = [...new Set([...previous.residents, props.scope])];\n previous.texture = texture;\n } else {\n let ordinal: number = counts.get(purpose) ?? 0;\n while (owners.has(`builtin:${purpose}:${ordinal}`)) ordinal++;\n const row: ObservedRuntimeSource = {\n owner: `builtin:${purpose}:${ordinal}`,\n purpose,\n texture,\n residents: [props.scope],\n };\n rows.push(row);\n byTexture.set(identity, row);\n owners.add(row.owner);\n counts.set(purpose, (counts.get(purpose) ?? 0) + 1);\n }\n };\n let area: boolean = false;\n let pbr: boolean = false;\n props.scene.traverse((object: THREE.Object3D): void => {\n if (\"isRectAreaLight\" in object && object.isRectAreaLight === true)\n area = true;\n if (!(\"material\" in object)) return;\n for (const material of Array.isArray(object.material)\n ? object.material\n : [object.material]) {\n if (!isMaterial(material)) continue;\n if (\n \"isMeshStandardMaterial\" in material &&\n material.isMeshStandardMaterial === true\n )\n pbr = true;\n observe(\"subsurface-lut\", material.userData.autoMovieSubsurfaceTexture);\n if (\n \"normalMap\" in material &&\n material.normalMap === material.userData.autoMovieOverlayFlatNormal\n )\n observe(\n \"overlay-flat-normal\",\n material.userData.autoMovieOverlayFlatNormal,\n );\n }\n });\n if (area && pbr) {\n const float: boolean = props.renderer.extensions.has(\n \"OES_texture_float_linear\",\n );\n observe(\n \"area-ltc-1\",\n Reflect.get(\n THREE.UniformsLib,\n float ? \"LTC_FLOAT_1\" : \"LTC_HALF_1\",\n ) as unknown,\n );\n observe(\n \"area-ltc-2\",\n Reflect.get(\n THREE.UniformsLib,\n float ? \"LTC_FLOAT_2\" : \"LTC_HALF_2\",\n ) as unknown,\n );\n }\n return rows;\n}\n\n/** Native markers keep the actual SDK objects usable across ESM/CJS realms. */\nconst isTexture: (value: unknown) => value is THREE.Texture = (\n value: unknown,\n): value is THREE.Texture =>\n typeof value === \"object\" &&\n value !== null &&\n \"isTexture\" in value &&\n value.isTexture === true;\n\n/** Material user data and native features belong to the actual material object. */\nconst isMaterial: (value: unknown) => value is THREE.Material = (\n value: unknown,\n): value is THREE.Material =>\n typeof value === \"object\" &&\n value !== null &&\n \"isMaterial\" in value &&\n value.isMaterial === true;\n"],"mappings":";;;;;;;;;;;;;;AAyBA,SAAgB,oCAAoC,OAKhC;CAClB,MAAM,QAAiC,MAAM,YAAY,CAAC,EAAA,CAAG,KAC1D,SAA+C;EAC9C,GAAG;EACH,YAAY,IAAI,aAAa,CAAC,EAAA,CAAG,QAC9B,UAA2B,UAAU,MAAM,KAC9C;CACF,EACF;CACA,MAAM,4BAAgD,IAAI,IAAI;CAC9D,MAAM,yBAAsB,IAAI,IAAI;CACpC,MAAM,yBACJ,IAAI,IAAI;CACV,MAAM,OAIJ,SACA,aACW,KAAK,UAAU,CAAC,SAAS,QAAQ,CAAC;CAC/C,KAAK,MAAM,OAAO,MAAM;EACtB,MAAM,WAAmB,IAAI,IAAI,SAAS,IAAI,QAAQ,eAAe;EACrE,IAAI,CAAC,UAAU,IAAI,QAAQ,GAAG,UAAU,IAAI,UAAU,GAAG;EACzD,OAAO,IAAI,IAAI,KAAK;EACpB,OAAO,IAAI,IAAI,UAAU,OAAO,IAAI,IAAI,OAAO,KAAK,KAAK,CA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MAAM,QAAiB,MAAM,SAAS,WAAW,IAC/C,0BACF;EACA,QACE,cACA,QAAQ,IACN,MAAM,aACN,QAAQ,gBAAgB,YAC1B,CACF;EACA,QACE,cACA,QAAQ,IACN,MAAM,aACN,QAAQ,gBAAgB,YAC1B,CACF;CACF;CACA,OAAO;AACT;;AAGA,MAAM,aACJ,UAEA,OAAO,UAAU,YACjB,UAAU,QACV,eAAe,SACf,MAAM,cAAc;;AAGtB,MAAM,cACJ,UAEA,OAAO,UAAU,YACjB,UAAU,QACV,gBAAgB,SAChB,MAAM,eAAe"}
|
|
1
|
+
{"version":3,"file":"readAutoMovieMaterialTextureSources.mjs","names":[],"sources":["../../src/scene/readAutoMovieMaterialTextureSources.ts"],"sourcesContent":["import type {\n AutoMovieBuiltinTexturePurpose,\n IAutoMovieRenderTextureResidency,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { readAutoMovieTextureSource } from \"./readAutoMovieTextureSource.js\";\n\ntype RuntimeSource = NonNullable<\n IAutoMovieRenderTextureResidency[\"runtimeTextures\"]\n>[number];\n/** Returned rows always carry the current live-scope list, including an empty list. */\ntype ObservedRuntimeSource = RuntimeSource & { residents: string[] };\n\n/**\n * Read actual implicit material and area-light lookup objects for one scope. Shader factories publish the same Texture reference they bind. The area pair follows WebGLLights' real extension choice without initializing tables. Caller-retained rows belong to this same renderer, survive material removal, and are dropped only after actual texture/context release. Current scope use labels are replaced on each observation; obsolete rows remain retained-only. Each row follows an actual Texture wrapper, not mutable UUIDs. Distinct wrappers retain their own current upload keys; the engine shares equivalent Source/key pairs. Reobserving one wrapper replaces its old state, matching native cache-key reference retirement after upload. This is a reachable current-state bound; a host requiring upload-transition peak storage supplies the previous phase separately until that phase's native release is observed. These are reachable-storage bounds, never a claim of current GLuint count. No shader, texture state or GPU lifetime is changed by the observation.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Observes actual material-published lookup textures and native area-light extension selection, updates current scope use and replaces each actual wrapper current upload metadata while retaining prior context-owned rows.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Call-local first-row identity and owner/count indexes separate efficient row matching from actual shader producers and Engine allocation-equivalence grouping.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Wrapper identity rather than mutable UUID names governs updates; first duplicate row and generated owner order are preserved, removed use retains potential context facts and reobservation does not independently prove native upload transition retirement.\n * @evidence contracts/development/common.md#meaningful-documentation Documents reachable storage versus GLuint/history proof, current live labels, retained-only rows and no texture/program mutation by this observer.\n * @evidence contracts/development/implementation.md#efficient-algorithms R retained rows are indexed once and N scene nodes/material roles scanned; expected indexed row matching avoids repeated whole-row scans, with scope-list copies/deduplication and metadata string generation costing their actual lengths.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Equal actual purpose/wrapper tokens replace the same first retained row while separate wrappers stay distinct; Engine decides Source/upload-equivalent allocation sharing, and no lookup table is initialized merely to observe it.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Indexes are call-local and returned rows borrow live Texture identity facts through scalar tokens; caller explicitly prunes after actual texture/context release, and there is no independent row-count cap in this observer.\n */\nexport function readAutoMovieMaterialTextureSources(props: {\n scope: string;\n renderer: { extensions: Pick<THREE.WebGLRenderer[\"extensions\"], \"has\"> };\n scene: THREE.Scene;\n retained?: readonly NonNullable<\n IAutoMovieRenderTextureResidency[\"runtimeTextures\"]\n >[number][];\n}): NonNullable<IAutoMovieRenderTextureResidency[\"runtimeTextures\"]>[number][] {\n const rows: ObservedRuntimeSource[] = (props.retained ?? []).map(\n (row: RuntimeSource): ObservedRuntimeSource => ({\n ...row,\n residents: (row.residents ?? []).filter(\n (scope: string): boolean => scope !== props.scope,\n ),\n }),\n );\n const byTexture: Map<string, ObservedRuntimeSource> = new Map();\n const owners: Set<string> = new Set();\n const counts: Map<AutoMovieBuiltinTexturePurpose | undefined, number> =\n new Map();\n const key: (\n purpose: AutoMovieBuiltinTexturePurpose | undefined,\n identity: string | undefined,\n ) => string = (\n purpose: AutoMovieBuiltinTexturePurpose | undefined,\n identity: string | undefined,\n ): string => JSON.stringify([purpose, identity]);\n for (const row of rows) {\n const identity: string = key(row.purpose, row.texture.textureIdentity);\n if (!byTexture.has(identity)) byTexture.set(identity, row);\n owners.add(row.owner);\n counts.set(row.purpose, (counts.get(row.purpose) ?? 0) + 1);\n }\n const observe: (\n purpose: AutoMovieBuiltinTexturePurpose,\n value: unknown,\n ) => void = (\n purpose: AutoMovieBuiltinTexturePurpose,\n value: unknown,\n ): void => {\n if (!isTexture(value)) return;\n const {\n asset: _asset,\n ...texture\n }: ReturnType<typeof readAutoMovieTextureSource> =\n readAutoMovieTextureSource(purpose, value);\n const identity: string = key(purpose, texture.textureIdentity);\n const previous: ObservedRuntimeSource | undefined = byTexture.get(identity);\n if (previous !== undefined) {\n previous.residents = [...new Set([...previous.residents, props.scope])];\n previous.texture = texture;\n } else {\n let ordinal: number = counts.get(purpose) ?? 0;\n while (owners.has(`builtin:${purpose}:${ordinal}`)) ordinal++;\n const row: ObservedRuntimeSource = {\n owner: `builtin:${purpose}:${ordinal}`,\n purpose,\n texture,\n residents: [props.scope],\n };\n rows.push(row);\n byTexture.set(identity, row);\n owners.add(row.owner);\n counts.set(purpose, (counts.get(purpose) ?? 0) + 1);\n }\n };\n let area: boolean = false;\n let pbr: boolean = false;\n props.scene.traverse((object: THREE.Object3D): void => {\n if (\"isRectAreaLight\" in object && object.isRectAreaLight === true)\n area = true;\n if (!(\"material\" in object)) return;\n for (const material of Array.isArray(object.material)\n ? object.material\n : [object.material]) {\n if (!isMaterial(material)) continue;\n if (\n \"isMeshStandardMaterial\" in material &&\n material.isMeshStandardMaterial === true\n )\n pbr = true;\n observe(\"subsurface-lut\", material.userData.autoMovieSubsurfaceTexture);\n if (\n \"normalMap\" in material &&\n material.normalMap === material.userData.autoMovieOverlayFlatNormal\n )\n observe(\n \"overlay-flat-normal\",\n material.userData.autoMovieOverlayFlatNormal,\n );\n }\n });\n if (area && pbr) {\n const float: boolean = props.renderer.extensions.has(\n \"OES_texture_float_linear\",\n );\n observe(\n \"area-ltc-1\",\n Reflect.get(\n THREE.UniformsLib,\n float ? \"LTC_FLOAT_1\" : \"LTC_HALF_1\",\n ) as unknown,\n );\n observe(\n \"area-ltc-2\",\n Reflect.get(\n THREE.UniformsLib,\n float ? \"LTC_FLOAT_2\" : \"LTC_HALF_2\",\n ) as unknown,\n );\n }\n return rows;\n}\n\n/** Native markers keep the actual SDK objects usable across ESM/CJS realms. */\nconst isTexture: (value: unknown) => value is THREE.Texture = (\n value: unknown,\n): value is THREE.Texture =>\n typeof value === \"object\" &&\n value !== null &&\n \"isTexture\" in value &&\n value.isTexture === true;\n\n/** Material user data and native features belong to the actual material object. */\nconst isMaterial: (value: unknown) => value is THREE.Material = (\n value: unknown,\n): value is THREE.Material =>\n typeof value === \"object\" &&\n value !== null &&\n \"isMaterial\" in value &&\n value.isMaterial === true;\n"],"mappings":";;;;;;;;;;;;;;AAyBA,SAAgB,oCAAoC,OAO2B;CAC7E,MAAM,QAAiC,MAAM,YAAY,CAAC,EAAA,CAAG,KAC1D,SAA+C;EAC9C,GAAG;EACH,YAAY,IAAI,aAAa,CAAC,EAAA,CAAG,QAC9B,UAA2B,UAAU,MAAM,KAC9C;CACF,EACF;CACA,MAAM,4BAAgD,IAAI,IAAI;CAC9D,MAAM,yBAAsB,IAAI,IAAI;CACpC,MAAM,yBACJ,IAAI,IAAI;CACV,MAAM,OAIJ,SACA,aACW,KAAK,UAAU,CAAC,SAAS,QAAQ,CAAC;CAC/C,KAAK,MAAM,OAAO,MAAM;EACtB,MAAM,WAAmB,IAAI,IAAI,SAAS,IAAI,QAAQ,eAAe;EACrE,IAAI,CAAC,UAAU,IAAI,QAAQ,GAAG,UAAU,IAAI,UAAU,GAAG;EACzD,OAAO,IAAI,IAAI,KAAK;EACpB,OAAO,IAAI,IAAI,UAAU,OAAO,IAAI,IAAI,OAAO,KAAK,KAAK,CAAC;CAC5D;CACA,MAAM,WAIJ,SACA,UACS;EACT,IAAI,CAAC,UAA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QAAQ,IACN,MAAM,aACN,QAAQ,gBAAgB,YAC1B,CACF;EACA,QACE,cACA,QAAQ,IACN,MAAM,aACN,QAAQ,gBAAgB,YAC1B,CACF;CACF;CACA,OAAO;AACT;;AAGA,MAAM,aACJ,UAEA,OAAO,UAAU,YACjB,UAAU,QACV,eAAe,SACf,MAAM,cAAc;;AAGtB,MAAM,cACJ,UAEA,OAAO,UAAU,YACjB,UAAU,QACV,gBAAgB,SAChB,MAAM,eAAe"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieRenderTextureTarget } from "@automovie/
|
|
1
|
+
import type { IAutoMovieRenderTextureTarget } from "@automovie/interface";
|
|
2
2
|
import * as THREE from "three";
|
|
3
3
|
/**
|
|
4
4
|
* Read a host-owned 2D target's complete attachment profile before drawing. Cube targets retain six color/depth faces; array and volume targets stay unknown. Depth without a custom texture uses the r186 D24/D24S8 four-byte bound; custom float-depth plus stencil uses the eight-byte D32FS8 profile. Native GL dimensions truncate positive fractional target declarations; the reported extents follow that physical pixel population rather than preserving a fractional JavaScript width as an unmeasurable texture. The target owns allocation identity independently of its texture's Source. No target state, pixels or caller lifetime is changed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAutoMovieRenderTextureTarget.mjs","names":[],"sources":["../../src/scene/readAutoMovieRenderTextureTarget.ts"],"sourcesContent":["import type { IAutoMovieRenderTextureTarget } from \"@automovie/
|
|
1
|
+
{"version":3,"file":"readAutoMovieRenderTextureTarget.mjs","names":[],"sources":["../../src/scene/readAutoMovieRenderTextureTarget.ts"],"sourcesContent":["import type { IAutoMovieRenderTextureTarget } from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { readAutoMovieTextureUploadFormat } from \"./readAutoMovieTextureUploadFormat.js\";\n\n/**\n * Read a host-owned 2D target's complete attachment profile before drawing. Cube targets retain six color/depth faces; array and volume targets stay unknown. Depth without a custom texture uses the r186 D24/D24S8 four-byte bound; custom float-depth plus stencil uses the eight-byte D32FS8 profile. Native GL dimensions truncate positive fractional target declarations; the reported extents follow that physical pixel population rather than preserving a fractional JavaScript width as an unmeasurable texture. The target owns allocation identity independently of its texture's Source. No target state, pixels or caller lifetime is changed.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Projects actual target attachments, integer physical extents, sample/mip requests, cube faces and supported depth/component profiles into Engine target metadata without drawing.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Texture representation decoding remains shared with readAutoMovieTextureUploadFormat while target allocation identity is separately supplied by its owner.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Array/volume representations remain unknown, unsupported custom depth stays null and declared fields do not certify native allocation history; depth byte profiles are conservative installed-r186 bounds.\n * @evidence contracts/development/common.md#meaningful-documentation Documents target-owned allocation identity, fractional extent truncation, cube faces, custom/default depth and no pixel/lifetime mutation.\n * @evidence contracts/development/implementation.md#efficient-algorithms A bounded set of scalar checks plus three attachment scans is O(A) for A color attachments, producing one format list without allocating attachment texels.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Current target representation is read afresh and no earlier profile is reused after resize/attachment change; sharing must follow target identity rather than its Texture Source.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The target and textures stay borrowed and the returned row holds only scalar metadata; caller owns native allocation, observed retirement and retained phase facts.\n */\nexport function readAutoMovieRenderTextureTarget(\n owner: string,\n target: THREE.RenderTarget,\n transmissionScope?: string,\n): IAutoMovieRenderTextureTarget {\n const cube: boolean = \"isWebGLCubeRenderTarget\" in target;\n const unsupported: boolean =\n target.depth !== 1 ||\n target.textures.some(\n (texture: THREE.Texture): boolean =>\n \"isDataArrayTexture\" in texture || \"isData3DTexture\" in texture,\n );\n const depth: THREE.DepthTexture | null = target.depthTexture;\n const depthBytesPerTexel: number | null = !target.depthBuffer\n ? 0\n : depth === null\n ? 4\n : depth.format !== THREE.DepthFormat &&\n depth.format !== THREE.DepthStencilFormat\n ? null\n : depth.type === THREE.FloatType\n ? target.stencilBuffer || depth.format === THREE.DepthStencilFormat\n ? 8\n : 4\n : depth.type === THREE.UnsignedIntType ||\n depth.type === THREE.UnsignedInt248Type\n ? 4\n : depth.type === THREE.UnsignedShortType\n ? target.stencilBuffer ||\n depth.format === THREE.DepthStencilFormat\n ? 4\n : 2\n : null;\n return {\n owner,\n transmissionScope,\n width: Math.floor(target.width),\n height: Math.floor(target.height),\n formats: target.textures.map(\n (\n texture: THREE.Texture,\n ): ReturnType<typeof readAutoMovieTextureUploadFormat> =>\n unsupported ? undefined : readAutoMovieTextureUploadFormat(texture),\n ),\n mipmapped: target.textures.some(\n (texture: THREE.Texture): boolean =>\n texture.generateMipmaps || texture.mipmaps.length > 1,\n ),\n samples: target.samples,\n depthBytesPerTexel,\n depthTexture: target.depthBuffer && depth !== null,\n ...(cube ? { faces: 6 as const } : {}),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAgBA,SAAgB,iCACd,OACA,QACA,mBAC+B;CAC/B,MAAM,OAAgB,6BAA6B;CACnD,MAAM,cACJ,OAAO,UAAU,KACjB,OAAO,SAAS,MACb,YACC,wBAAwB,WAAW,qBAAqB,OAC5D;CACF,MAAM,QAAmC,OAAO;CAChD,MAAM,qBAAoC,CAAC,OAAO,cAC9C,IACA,UAAU,OACR,IACA,MAAM,WAAW,MAAM,eACrB,MAAM,WAAW,MAAM,qBACvB,OACA,MAAM,SAAS,MAAM,YACnB,OAAO,iBAAiB,MAAM,WAAW,MAAM,qBAC7C,IACA,IACF,MAAM,SAAS,MAAM,mBACnB,MAAM,SAAS,MAAM,qBACrB,IACA,MAAM,SAAS,MAAM,oBACnB,OAAO,iBACP,MAAM,WAAW,MAAM,qBACrB,IACA,IACF;CACd,OAAO;EACL;EACA;EACA,OAAO,KAAK,MAAM,OAAO,KAAK;EAC9B,QAAQ,KAAK,MAAM,OAAO,MAAM;EAChC,SAAS,OAAO,SAAS,KAErB,YAEA,cAAc,KAAA,IAAY,iCAAiC,OAAO,CACtE;EACA,WAAW,OAAO,SAAS,MACxB,YACC,QAAQ,mBAAmB,QAAQ,QAAQ,SAAS,CACxD;EACA,SAAS,OAAO;EAChB;EACA,cAAc,OAAO,eAAe,UAAU;EAC9C,GAAI,OAAO,EAAE,OAAO,EAAW,IAAI,CAAC;CACtC;AACF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { IAutoMovieSceneEnvironment } from "@automovie/interface";
|
|
1
|
+
import type { IAutoMovieRenderTextureTarget, IAutoMovieSceneEnvironment } from "@automovie/interface";
|
|
3
2
|
import * as THREE from "three";
|
|
4
3
|
import type { IAutoMovieShadowTextureHost } from "./IAutoMovieShadowTextureHost.js";
|
|
5
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAutoMovieShadowTextureTargets.js","sourceRoot":"","sources":["../../src/scene/readAutoMovieShadowTextureTargets.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"readAutoMovieShadowTextureTargets.js","sourceRoot":"","sources":["../../src/scene/readAutoMovieShadowTextureTargets.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAkE;AAKlE,MAAY,KAAK,kCAAc;AAG/B,qGAA+F;AAC/F,uGAAiG;AACjG,+FAAyF;AACzF,+FAAyF;AACzF,2FAAqF;AAErF;;;;;;;;;;GAUG;AACI,MAAM,iCAAiC,GAKP,CACrC,KAAa,EACb,QAAqC,EACrC,MAAwC,EACxC,gBAAwD,EACvB,EAAE;IACnC,IAAA,4EAAmC,EAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACzD,MAAM,OAAO,GAIP,CAAC,GAAG,MAAM,CAAC,CAAC,OAAO,CACvB,CAAC,CAAC,EAAE,EAAE,KAAK,CAAwB,EAI/B,EAAE;QACJ,MAAM,MAAM,GACV,IAAA,kEAA8B,EAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC5C,OAA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AC,EAAE,EAChE,MAAM,CACP;gBACD,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE;aACnC,CAAC;YACF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAClB,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC7B,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU;YAAE,SAAS;QACrD,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,IAAI,KAAK,KAAK;YACvC,CAAC,CAAE,CAAC,KAAK,EAAE,MAAM,CAAW;YAC5B,CAAC,CAAE,CAAC,KAAK,CAAW,EAAE,CAAC;YACvB,MAAM,OAAO,GACX,IAAA,sEAAgC,EAC9B,KAAK,EACL,EAAE,EACF,MAAM,EACN,MAAM,CAAC,IAAI,KAAK,OAAO,EACvB,OAAO,CAAC,IAAI,EACZ,IAAI,EACJ,QAAQ,CAAC,YAAY,CAAC,cAAc,CACrC,CAAC;YACJ,MAAM,MAAM,GACV,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACrB,IACE,MAAM,KAAK,SAAS;gBACpB,CAAC,IAAA,8EAAoC,EAAC,MAAM,EAAE,OAAO,CAAC;gBAEtD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAjGW,QAAA,iCAAiC,GAAjC,iCAAiC,CAiG5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAutoMovieShadowTextureTargets.mjs","names":[],"sources":["../../src/scene/readAutoMovieShadowTextureTargets.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"readAutoMovieShadowTextureTargets.mjs","names":[],"sources":["../../src/scene/readAutoMovieShadowTextureTargets.ts"],"sourcesContent":["import { resolveAutoMovieShadowProfile } from \"@automovie/engine\";\nimport type {\n IAutoMovieRenderTextureTarget,\n IAutoMovieSceneEnvironment,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport type { IAutoMovieShadowTextureHost } from \"./IAutoMovieShadowTextureHost.js\";\nimport { guardAutoMovieSceneShadowRetirement } from \"./guardAutoMovieSceneShadowRetirement.js\";\nimport { matchesAutoMovieShadowTextureProfile } from \"./matchesAutoMovieShadowTextureProfile.js\";\nimport { planAutoMovieShadowTextureTarget } from \"./planAutoMovieShadowTextureTarget.js\";\nimport { readAutoMovieRenderTextureTarget } from \"./readAutoMovieRenderTextureTarget.js\";\nimport { readAutoMovieShadowLightSource } from \"./readAutoMovieShadowLightSource.js\";\n\n/**\n * Describe retained light targets and required native shadow factory bounds. Hidden and noncasting lights keep their actual retained map/blur rows. An enabled caster whose next factory differs also supplies a distinct planned row; this conservative phase union is neither an observed GLuint count nor a claim that every retained and planned attachment is simultaneously live. Supply the scene's effective override before configuring its render pass. Otherwise the current host selects the native VSM or legacy PCF allocator family. Compatibility admission remains the Engine's single policy owner. Caller scope and light keys identify distinct retained light-owned slots; include each scope once when assembling a context's renderTargets closure.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Admits the effective Engine shadow profile, reports every actual retained punctual map/blur target and adds distinct planned factory rows only when an enabled caster lacks an equivalent retained profile.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Actual source projection, retained target reading, native factory planning and representation comparison keep their existing single owners; scope/light/role labels distinguish phases.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Hidden/noncasting retained storage remains reported, failed retirement under the same original renderer key refuses before reading cleared slots, unsupported profile refuses and phase union is a potential bound rather than measured native lifetimes.\n * @evidence contracts/development/common.md#meaningful-documentation Documents effective override ordering, installed allocator family, phase semantics and one-scope-once assembly responsibility.\n * @evidence contracts/development/implementation.md#efficient-algorithms L lights are projected once and each has at most two retained/planned roles; attachment-profile comparisons cost their format counts, with O(L) coordinator rows and no shadow texel allocation.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work A retained target covers planned work only when dimensions, representation, faces, samples and attachments match; matching owner text or a prior observation alone is insufficient.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Rows are scalar profiles over borrowed lights/targets and this observer acquires no resource; target owners retain/release actual shadows and hosts preserve earlier phase facts until their retirement is observed.\n */\nexport const readAutoMovieShadowTextureTargets: (\n scope: string,\n renderer: IAutoMovieShadowTextureHost,\n lights: ReadonlyMap<string, THREE.Light>,\n effectiveShadows?: IAutoMovieSceneEnvironment[\"shadows\"],\n) => IAutoMovieRenderTextureTarget[] = (\n scope: string,\n renderer: IAutoMovieShadowTextureHost,\n lights: ReadonlyMap<string, THREE.Light>,\n effectiveShadows?: IAutoMovieSceneEnvironment[\"shadows\"],\n): IAutoMovieRenderTextureTarget[] => {\n guardAutoMovieSceneShadowRetirement(undefined, renderer);\n const records: {\n id: string;\n light: THREE.Light;\n source: NonNullable<ReturnType<typeof readAutoMovieShadowLightSource>>;\n }[] = [...lights].flatMap(\n ([id, light]: [string, THREE.Light]): {\n id: string;\n light: THREE.Light;\n source: NonNullable<ReturnType<typeof readAutoMovieShadowLightSource>>;\n }[] => {\n const source: ReturnType<typeof readAutoMovieShadowLightSource> =\n readAutoMovieShadowLightSource(id, light);\n return source === null ? [] : [{ id, light, source }];\n },\n );\n const profile: ReturnType<typeof resolveAutoMovieShadowProfile> =\n resolveAutoMovieShadowProfile({\n lights: records.map(\n (record: {\n id: string;\n light: THREE.Light;\n source: NonNullable<\n ReturnType<typeof readAutoMovieShadowLightSource>\n >;\n }): NonNullable<ReturnType<typeof readAutoMovieShadowLightSource>> =>\n record.source,\n ),\n shadows: effectiveShadows ?? {\n enabled: renderer.shadowMap.enabled,\n type: renderer.shadowMap.type === THREE.VSMShadowMap ? \"vsm\" : \"pcf\",\n },\n });\n if (!profile.success)\n throw new Error(\n \"Unsupported shadow profile: \" + JSON.stringify(profile.violations),\n );\n const rows: IAutoMovieRenderTextureTarget[] = [];\n for (const { id, light, source } of records) {\n const shadow:\n | THREE.DirectionalLight[\"shadow\"]\n | THREE.SpotLight[\"shadow\"]\n | THREE.PointLight[\"shadow\"] = (\n light as THREE.DirectionalLight | THREE.SpotLight | THREE.PointLight\n ).shadow;\n const retained: Map<\"map\" | \"blur\", IAutoMovieRenderTextureTarget> =\n new Map<\"map\" | \"blur\", IAutoMovieRenderTextureTarget>();\n for (const [role, target] of [\n [\"map\", shadow.map],\n [\"blur\", shadow.mapPass],\n ] as const) {\n if (target === null) continue;\n const actual: IAutoMovieRenderTextureTarget | undefined = {\n ...readAutoMovieRenderTextureTarget(\n `shadow-target:${JSON.stringify([scope, id, role, \"retained\"])}`,\n target,\n ),\n shadow: { scope, light: id, role },\n };\n rows.push(actual);\n retained.set(role, actual);\n }\n if (!profile.enabled || !source.castShadow) continue;\n for (const role of profile.type === \"vsm\"\n ? ([\"map\", \"blur\"] as const)\n : ([\"map\"] as const)) {\n const planned: IAutoMovieRenderTextureTarget =\n planAutoMovieShadowTextureTarget(\n scope,\n id,\n shadow,\n source.type === \"point\",\n profile.type,\n role,\n renderer.capabilities.maxTextureSize,\n );\n const actual: IAutoMovieRenderTextureTarget | undefined =\n retained.get(role);\n if (\n actual === undefined ||\n !matchesAutoMovieShadowTextureProfile(actual, planned)\n )\n rows.push(planned);\n }\n }\n return rows;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,MAAa,qCAMX,OACA,UACA,QACA,qBACoC;CACpC,oCAAoC,KAAA,GAAW,QAAQ;CACvD,MAAM,UAIA,CAAC,GAAG,MAAM,CAAC,CAAC,SACf,CAAC,IAAI,WAIC;EACL,MAAM,SACJ,+BAA+B,IAAI,KAAK;EAC1C,OAAO,WAAW,OAAO,CAAC,IAAI,CAAC;GAAE;GAAI;GAAO;EAAO,CAAC;CACtD,CACF;CACA,MAAM,UACJ,8BAA8B;EAC5B,QAAQ,QAAQ,KACb,WAOC,OAAO,MACX;EACA,SAAS,oBAAoB;GAC3B,SAAS,SAAS,UAAU;GAC5B,MAAM,SAAS,UAAU,SAAS,MAAM,eAAe,QAAQ;EACjE;CACF,CAAC;CACH,IAAI,CAAC,QAAQ,SACX,MAAM,IAAI,MACR,iCAAiC,KAAK,UAAU,QAAQ,UAAU,CACpE;CACF,MAAM,OAAwC,CAAC;CAC/C,KAAK,MAAM,EAAE,IAAI,OAAO,YAAY,SAAS;EAC3C,MAAM,SAIJ,MACA;EACF,MAAM,2BACJ,IAAI,IAAmD;EACzD,KAAK,MAAM,CAAC,MAAM,WAAW,CAC3B,CAAC,OAAO,OAAO,GAAG,GAClB,CAAC,QAAQ,OAAO,OAAO,CACzB,GAAY;GACV,IAAI,WAAW,MAAM;GACrB,MAAM,SAAoD;IACxD,GAAG,iCACD,iBAAiB,KAAK,UAAU;KAAC;KAAO;KAAI;KAAM;IAAU,CAAC,KAC7D,MACF;IACA,QAAQ;KAAE;KAAO,OAAO;KAAI;IAAK;GACnC;GACA,KAAK,KAAK,MAAM;GAChB,SAAS,IAAI,MAAM,MAAM;EAC3B;EACA,IAAI,CAAC,QAAQ,WAAW,CAAC,OAAO,YAAY;EAC5C,KAAK,MAAM,QAAQ,QAAQ,SAAS,QAC/B,CAAC,OAAO,MAAM,IACd,CAAC,KAAK,GAAa;GACtB,MAAM,UACJ,iCACE,OACA,IACA,QACA,OAAO,SAAS,SAChB,QAAQ,MACR,MACA,SAAS,aAAa,cACxB;GACF,MAAM,SACJ,SAAS,IAAI,IAAI;GACnB,IACE,WAAW,KAAA,KACX,CAAC,qCAAqC,QAAQ,OAAO,GAErD,KAAK,KAAK,OAAO;EACrB;CACF;CACA,OAAO;AACT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieRenderTextureSource } from "@automovie/
|
|
1
|
+
import type { IAutoMovieRenderTextureSource } from "@automovie/interface";
|
|
2
2
|
import * as THREE from "three";
|
|
3
3
|
/**
|
|
4
4
|
* Observe positive two-dimensional decoded texture extents and current supported upload declarations without changing image, sampling or GPU state. Compressed, array/volume, depth, framebuffer and render-target products remain unsupported or allocation-uncertain under this ordinary decoded-image path. Manual mip data and intrinsic/factory extent disagreement cannot certify native history.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAutoMovieTextureSource.js","sourceRoot":"","sources":["../../src/scene/readAutoMovieTextureSource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"readAutoMovieTextureSource.js","sourceRoot":"","sources":["../../src/scene/readAutoMovieTextureSource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAY,KAAK,kCAAc;AAE/B,uGAAiG;AACjG,+GAAyG;AACzG,mGAA6F;AAC7F,+FAAyF;AAEzF,MAAM,gBAAgB,GAA4B,IAAI,OAAO,EAAkB,CAAC;AAChF,IAAI,kBAAkB,GAAW,CAAC,CAAC;AAEnC;;;;;;;;;;;;;;;;GAgBG;AACH,oCACE,KAAa,EACb,OAAsB;IAEtB,MAAM,oBAAoB,GACxB,sFAAwC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D,MAAM,0BAA0B,GAC9B,8EAAoC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,KAAK,GAAY,OAAO,CAAC,KAAK,CAAC;IACrC,MAAM,IAAI,GACR,eAAe,IAAI,OAAO,IAAI,OAAO,CAAC,aAAa,KAAK,IAAI,CAAC;IAC/D,MAAM,QAAQ,GAAqC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC9E,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS;QACvE,MAAM,IAAI,KAAK,CACb,kBAAkB,KAAK,0CAA0C,CAClE,CAAC;IACJ,MAAM,OAAO,GAAY,OAAO,CAAC,OAAO,CAAC;IACzC,MAAM,MAAM,GAAY,CAAC,KAAK,CAAC,OA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GAAG,CAAC;QACT,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC;QAC5B,MAAM,GAAG,CAAC;QACV,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE;QACnB,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,cAAc,GAA8B,CAAC,KAAa,EAAU,EAAE;IAC1E,IAAI,QAAQ,GAAuB,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC/D,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,QAAQ,GAAG,kBAAkB,kBAAkB,EAAE,EAAE,CAAC;QACpD,gBAAgB,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAutoMovieTextureSource.mjs","names":[],"sources":["../../src/scene/readAutoMovieTextureSource.ts"],"sourcesContent":["import type { IAutoMovieRenderTextureSource } from \"@automovie/engine\";\nimport type { IAutoMovieTextureReference } from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { AutoMovieEnvironmentTextureOwnership } from \"./AutoMovieEnvironmentTextureOwnership.js\";\nimport { AutoMovieTextureCacheAllocationAuthority } from \"./AutoMovieTextureCacheAllocationAuthority.js\";\nimport { readAutoMovieEnvironmentColorSpace } from \"./readAutoMovieEnvironmentColorSpace.js\";\nimport { readAutoMovieTextureUploadFormat } from \"./readAutoMovieTextureUploadFormat.js\";\n\nconst objectIdentities: WeakMap<object, string> = new WeakMap<object, string>();\nlet nextObjectIdentity: number = 0;\n\n/**\n * Observe positive two-dimensional decoded texture extents and current supported upload declarations without changing image, sampling or GPU state. Compressed, array/volume, depth, framebuffer and render-target products remain unsupported or allocation-uncertain under this ordinary decoded-image path. Manual mip data and intrinsic/factory extent disagreement cannot certify native history.\n *\n * Weak object tokens describe actual Source/Texture sharing in this host, independently of mutable UUID text. Engine retains the sharing relation rather than token spelling; current representation and upload-state metadata still determine allocation equivalence.\n *\n * Cache and environment owners are consulted before extent checks so malformed image data cannot hide either sticky input history. They acknowledge only supported owned writes and successful exclusive transitions. Restoring observed uncontrolled drift does not repair its history; writes fully restored between observation boundaries are not detected. Unregistered objects retain this observer's prospective before-upload premise.\n *\n * Environment conversion reports configured and factory sampler intent because sharp conversion can temporarily upload with another sampler without a later version change. Current properties do not prove an old native state was retired. Hosts retain previous upload phases until their owning release/transition is observed; this read reports neither GLuint count nor independent kernel storage.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Combines actual cache/environment input-history authority before extent checks, projects supported decoded base/format/sampler/mip and factory intent, and assigns host-local weak object tokens for real Source/Texture equality.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Decoded image observation, shared upload-format/environment decisions and existing history owners remain distinct from Engine byte closure and renderer-native allocation.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Manual/framebuffer/array/volume/compressed/depth or divergent intrinsic layouts cannot certify ordinary allocation state; current properties, restored flags and equal labels do not invent historical native release.\n * @evidence contracts/development/common.md#meaningful-documentation Documents positive 2D extent, manual-base selection, unsupported representation, configured/factory sampler union and host responsibility for earlier retained upload phases.\n * @evidence contracts/development/implementation.md#efficient-algorithms Fixed property/tuple work plus bounded sampler checks and small upload-state string generation avoid pixel hashing and mip-data copies; actual intrinsic metadata lookup is fixed, while history owners account for copied manual-mip references.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Weak object identity tokens preserve actual sharing across observations while current metadata is recomputed; source-token equality alone cannot reuse an incompatible upload/factory state.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Weak keys retain neither texture nor source, returned metadata retains scalar tokens only and this observer acquires no GPU wrapper; cache/environment/context owners must retain uncertain historical storage until release is observed.\n */\nexport function readAutoMovieTextureSource(\n asset: string,\n texture: THREE.Texture,\n): IAutoMovieRenderTextureSource {\n const cacheAllocationKnown: boolean =\n AutoMovieTextureCacheAllocationAuthority.current(texture);\n const environmentAllocationKnown: boolean =\n AutoMovieEnvironmentTextureOwnership.current(texture);\n const image: unknown = texture.image;\n const data: boolean =\n \"isDataTexture\" in texture && texture.isDataTexture === true;\n const original: ReturnType<typeof decodedExtent> = decodedExtent(image, data);\n if (typeof image !== \"object\" || image === null || original === undefined)\n throw new Error(\n `Texture asset \"${asset}\" has no decoded two-dimensional extent.`,\n );\n const mipmaps: unknown = texture.mipmaps;\n const manual: boolean = !Array.isArray(mipmaps) || mipmaps.length !== 0;\n const framebuffer: boolean = \"isFramebufferTexture\" in texture;\n const usesManualBase: boolean =\n manual &&\n !framebuffer &&\n !(\"isDepthTexture\" in texture) &&\n !texture.isRenderTargetTexture;\n const extent: { width: number; height: number } =\n usesManualBase && Array.isArray(mipmaps)\n ? (decodedExtent(mipmaps[0], data) ?? original)\n : original;\n const unsupportedExtent: boolean =\n (\"depth\" in image && image.depth !== 1) ||\n \"isDataArrayTexture\" in texture ||\n \"isData3DTexture\" in texture ||\n \"isCompressedArrayTexture\" in texture ||\n texture.isRenderTargetTexture;\n const format: ReturnType<typeof readAutoMovieTextureUploadFormat> =\n unsupportedExtent ? undefined : readAutoMovieTextureUploadFormat(texture);\n const wrap: (\n value: THREE.Wrapping,\n ) => \"clamp\" | \"repeat\" | \"mirror\" | undefined = (\n value: THREE.Wrapping,\n ): \"clamp\" | \"repeat\" | \"mirror\" | undefined =>\n value === THREE.RepeatWrapping\n ? \"repeat\"\n : value === THREE.MirroredRepeatWrapping\n ? \"mirror\"\n : value === THREE.ClampToEdgeWrapping\n ? \"clamp\"\n : undefined;\n const minFilter:\n | NonNullable<IAutoMovieTextureReference[\"sampler\"]>[\"minFilter\"]\n | undefined =\n texture.minFilter === THREE.NearestFilter\n ? \"nearest\"\n : texture.minFilter === THREE.LinearFilter\n ? \"linear\"\n : texture.minFilter === THREE.NearestMipmapLinearFilter\n ? \"nearestMipmapLinear\"\n : texture.minFilter === THREE.LinearMipmapLinearFilter\n ? \"linearMipmapLinear\"\n : undefined;\n const wrapS: ReturnType<typeof wrap> = wrap(texture.wrapS);\n const wrapT: ReturnType<typeof wrap> = wrap(texture.wrapT);\n const magFilter:\n | NonNullable<IAutoMovieTextureReference[\"sampler\"]>[\"magFilter\"]\n | undefined =\n texture.magFilter === THREE.NearestFilter\n ? \"nearest\"\n : texture.magFilter === THREE.LinearFilter\n ? \"linear\"\n : undefined;\n const sampler: IAutoMovieTextureReference[\"sampler\"] =\n minFilter === undefined ||\n wrapS === undefined ||\n wrapT === undefined ||\n magFilter === undefined\n ? undefined\n : {\n wrapS,\n wrapT,\n minFilter,\n magFilter,\n };\n const nativeMinFilter: boolean = [\n THREE.NearestFilter,\n THREE.LinearFilter,\n THREE.NearestMipmapNearestFilter,\n THREE.NearestMipmapLinearFilter,\n THREE.LinearMipmapNearestFilter,\n THREE.LinearMipmapLinearFilter,\n ].includes(texture.minFilter);\n const samplerState: string | null =\n wrapS === undefined ||\n wrapT === undefined ||\n magFilter === undefined ||\n !nativeMinFilter\n ? null\n : JSON.stringify([\n texture.wrapS,\n texture.wrapT,\n texture.minFilter,\n texture.magFilter,\n ]);\n const conversionMinFilter: THREE.MinificationTextureFilter =\n texture.minFilter === THREE.LinearMipmapLinearFilter\n ? THREE.LinearFilter\n : texture.minFilter;\n const environmentSampler: IAutoMovieTextureReference[\"sampler\"] =\n sampler === undefined\n ? undefined\n : {\n ...sampler,\n minFilter:\n texture.minFilter === THREE.LinearMipmapLinearFilter\n ? (\"linear\" as const)\n : sampler.minFilter,\n };\n return {\n asset,\n width: extent.width,\n height: extent.height,\n format,\n sampler,\n samplerState,\n allocationStateKnown:\n cacheAllocationKnown &&\n environmentAllocationKnown &&\n !manual &&\n !framebuffer &&\n !unsupportedExtent &&\n !(\"isCompressedTexture\" in texture) &&\n !(\"isDepthTexture\" in texture) &&\n \"width\" in image &&\n \"height\" in image &&\n original.width === image.width &&\n original.height === image.height,\n colorSpace:\n texture.colorSpace === THREE.SRGBColorSpace\n ? \"srgb\"\n : texture.colorSpace === THREE.NoColorSpace\n ? \"linear\"\n : texture.colorSpace === THREE.LinearSRGBColorSpace\n ? \"linear-environment\"\n : undefined,\n environmentColorSpace: readAutoMovieEnvironmentColorSpace(texture),\n environmentSampler,\n environmentSamplerState:\n samplerState === null\n ? null\n : JSON.stringify([\n texture.wrapS,\n texture.wrapT,\n conversionMinFilter,\n texture.magFilter,\n ]),\n environmentBackgroundFormat:\n texture.type === THREE.UnsignedByteType\n ? \"rgba8\"\n : texture.type === THREE.HalfFloatType\n ? \"rgba16f\"\n : texture.type === THREE.FloatType\n ? \"rgba32f\"\n : undefined,\n sourceIdentity: objectIdentity(texture.source),\n textureIdentity: objectIdentity(texture),\n uploadState: JSON.stringify(\n [\n texture.format,\n texture.type,\n texture.internalFormat,\n texture.anisotropy,\n texture.flipY,\n texture.premultiplyAlpha,\n texture.unpackAlignment,\n texture.generateMipmaps,\n \"wrapR\" in texture ? texture.wrapR || 0 : 0,\n ].map((value: unknown): string => (value === null ? \"\" : String(value))),\n ),\n generateMipmaps: texture.generateMipmaps,\n explicitMipmaps: Array.isArray(mipmaps) && mipmaps.length > 1,\n mipmapped:\n (Array.isArray(mipmaps) && mipmaps.length > 1) ||\n texture.generateMipmaps ||\n (framebuffer &&\n texture.minFilter !== THREE.NearestFilter &&\n texture.minFilter !== THREE.LinearFilter),\n };\n}\n\n/** Decode the native base metadata; manual history remains uncertified. */\nconst decodedExtent: (\n image: unknown,\n data: boolean,\n) => { width: number; height: number } | undefined = (\n image: unknown,\n data: boolean,\n): { width: number; height: number } | undefined => {\n if (typeof image !== \"object\" || image === null) return undefined;\n const rawWidth: unknown = \"width\" in image ? image.width : undefined;\n const rawHeight: unknown = \"height\" in image ? image.height : undefined;\n const width: unknown =\n !data && \"displayWidth\" in image\n ? image.displayWidth\n : !data && \"naturalWidth\" in image\n ? image.naturalWidth || rawWidth\n : rawWidth;\n const height: unknown =\n !data && \"displayHeight\" in image\n ? image.displayHeight\n : !data && \"naturalHeight\" in image\n ? image.naturalHeight || rawHeight\n : rawHeight;\n return typeof width === \"number\" &&\n typeof height === \"number\" &&\n Number.isSafeInteger(width) &&\n width > 0 &&\n Number.isSafeInteger(height) &&\n height > 0\n ? { width, height }\n : undefined;\n};\n\n/**\n * Host-local equality follows the actual object reference, not a mutable label\n * or copied UUID. Weak keys retain no texture after its host releases it.\n */\nconst objectIdentity: (value: object) => string = (value: object): string => {\n let identity: string | undefined = objectIdentities.get(value);\n if (identity === undefined) {\n identity = `texture-object:${nextObjectIdentity++}`;\n objectIdentities.set(value, identity);\n }\n return identity;\n};\n"],"mappings":";;;;;;AASA,MAAM,mCAA4C,IAAI,QAAwB;AAC9E,IAAI,qBAA6B;;;;;;;;;;;;;;;;;;AAmBjC,SAAgB,2BACd,OACA,SAC+B;CAC/B,MAAM,uBACJ,yCAAyC,QAAQ,OAAO;CAC1D,MAAM,6BACJ,qCAAqC,QAAQ,OAAO;CACtD,MAAM,QAAiB,QAAQ;CAC/B,MAAM,OACJ,mBAAmB,WAAW,QAAQ,kBAAkB;CAC1D,MAAM,WAA6C,cAAc,OAAO,IAAI;CAC5E,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,KAAA,GAC9D,MAAM,IAAI,MACR,kBAAkB,MAAM,yCAC1B;CACF,MAAM,UAAmB,QAAQ;CACjC,MAAM,SAAkB,CAAC,MAAM,QAAQ,OAAO,KAAK,QAAQ,WAAW;CACtE,MAAM,cAAuB,0BAA0B;CAMvD,MAAM,SAJJ,UACA,CAAC,eACD,EAAE,oBAAoB,YACtB,CAAC,QAAQ,yBAES,MAAM,QAAQ,OAAO,IAClC,cAAc,QAAQ,IAAI,IAAI,KAAK,WACpC;CACN,MAAM,oBACH,WAAW,SAAS,MAAM,UAAU,KACrC,wBAAwB,WACxB,qBAAqB,WACrB,8BAA8B,WAC9B,QAAQ;CACV,MAAM,SACJ,oBAAoB,KAAA,IAAY,iCAAiC,OAAO;CAC1E,MAAM,QAGJ,UA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O,UAAU,YACtB,OAAO,WAAW,YAClB,OAAO,cAAc,KAAK,KAC1B,QAAQ,KACR,OAAO,cAAc,MAAM,KAC3B,SAAS,IACP;EAAE;EAAO;CAAO,IAChB,KAAA;AACN;;;;;AAMA,MAAM,kBAA6C,UAA0B;CAC3E,IAAI,WAA+B,iBAAiB,IAAI,KAAK;CAC7D,IAAI,aAAa,KAAA,GAAW;EAC1B,WAAW,kBAAkB;EAC7B,iBAAiB,IAAI,OAAO,QAAQ;CACtC;CACA,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"readAutoMovieTextureSource.mjs","names":[],"sources":["../../src/scene/readAutoMovieTextureSource.ts"],"sourcesContent":["import type {\n IAutoMovieRenderTextureSource,\n IAutoMovieTextureReference,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { AutoMovieEnvironmentTextureOwnership } from \"./AutoMovieEnvironmentTextureOwnership.js\";\nimport { AutoMovieTextureCacheAllocationAuthority } from \"./AutoMovieTextureCacheAllocationAuthority.js\";\nimport { readAutoMovieEnvironmentColorSpace } from \"./readAutoMovieEnvironmentColorSpace.js\";\nimport { readAutoMovieTextureUploadFormat } from \"./readAutoMovieTextureUploadFormat.js\";\n\nconst objectIdentities: WeakMap<object, string> = new WeakMap<object, string>();\nlet nextObjectIdentity: number = 0;\n\n/**\n * Observe positive two-dimensional decoded texture extents and current supported upload declarations without changing image, sampling or GPU state. Compressed, array/volume, depth, framebuffer and render-target products remain unsupported or allocation-uncertain under this ordinary decoded-image path. Manual mip data and intrinsic/factory extent disagreement cannot certify native history.\n *\n * Weak object tokens describe actual Source/Texture sharing in this host, independently of mutable UUID text. Engine retains the sharing relation rather than token spelling; current representation and upload-state metadata still determine allocation equivalence.\n *\n * Cache and environment owners are consulted before extent checks so malformed image data cannot hide either sticky input history. They acknowledge only supported owned writes and successful exclusive transitions. Restoring observed uncontrolled drift does not repair its history; writes fully restored between observation boundaries are not detected. Unregistered objects retain this observer's prospective before-upload premise.\n *\n * Environment conversion reports configured and factory sampler intent because sharp conversion can temporarily upload with another sampler without a later version change. Current properties do not prove an old native state was retired. Hosts retain previous upload phases until their owning release/transition is observed; this read reports neither GLuint count nor independent kernel storage.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Combines actual cache/environment input-history authority before extent checks, projects supported decoded base/format/sampler/mip and factory intent, and assigns host-local weak object tokens for real Source/Texture equality.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Decoded image observation, shared upload-format/environment decisions and existing history owners remain distinct from Engine byte closure and renderer-native allocation.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Manual/framebuffer/array/volume/compressed/depth or divergent intrinsic layouts cannot certify ordinary allocation state; current properties, restored flags and equal labels do not invent historical native release.\n * @evidence contracts/development/common.md#meaningful-documentation Documents positive 2D extent, manual-base selection, unsupported representation, configured/factory sampler union and host responsibility for earlier retained upload phases.\n * @evidence contracts/development/implementation.md#efficient-algorithms Fixed property/tuple work plus bounded sampler checks and small upload-state string generation avoid pixel hashing and mip-data copies; actual intrinsic metadata lookup is fixed, while history owners account for copied manual-mip references.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Weak object identity tokens preserve actual sharing across observations while current metadata is recomputed; source-token equality alone cannot reuse an incompatible upload/factory state.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Weak keys retain neither texture nor source, returned metadata retains scalar tokens only and this observer acquires no GPU wrapper; cache/environment/context owners must retain uncertain historical storage until release is observed.\n */\nexport function readAutoMovieTextureSource(\n asset: string,\n texture: THREE.Texture,\n): IAutoMovieRenderTextureSource {\n const cacheAllocationKnown: boolean =\n AutoMovieTextureCacheAllocationAuthority.current(texture);\n const environmentAllocationKnown: boolean =\n AutoMovieEnvironmentTextureOwnership.current(texture);\n const image: unknown = texture.image;\n const data: boolean =\n \"isDataTexture\" in texture && texture.isDataTexture === true;\n const original: ReturnType<typeof decodedExtent> = decodedExtent(image, data);\n if (typeof image !== \"object\" || image === null || original === undefined)\n throw new Error(\n `Texture asset \"${asset}\" has no decoded two-dimensional extent.`,\n );\n const mipmaps: unknown = texture.mipmaps;\n const manual: boolean = !Array.isArray(mipmaps) || mipmaps.length !== 0;\n const framebuffer: boolean = \"isFramebufferTexture\" in texture;\n const usesManualBase: boolean =\n manual &&\n !framebuffer &&\n !(\"isDepthTexture\" in texture) &&\n !texture.isRenderTargetTexture;\n const extent: { width: number; height: number } =\n usesManualBase && Array.isArray(mipmaps)\n ? (decodedExtent(mipmaps[0], data) ?? original)\n : original;\n const unsupportedExtent: boolean =\n (\"depth\" in image && image.depth !== 1) ||\n \"isDataArrayTexture\" in texture ||\n \"isData3DTexture\" in texture ||\n \"isCompressedArrayTexture\" in texture ||\n texture.isRenderTargetTexture;\n const format: ReturnType<typeof readAutoMovieTextureUploadFormat> =\n unsupportedExtent ? undefined : readAutoMovieTextureUploadFormat(texture);\n const wrap: (\n value: THREE.Wrapping,\n ) => \"clamp\" | \"repeat\" | \"mirror\" | undefined = (\n value: THREE.Wrapping,\n ): \"clamp\" | \"repeat\" | \"mirror\" | undefined =>\n value === THREE.RepeatWrapping\n ? \"repeat\"\n : value === THREE.MirroredRepeatWrapping\n ? \"mirror\"\n : value === THREE.ClampToEdgeWrapping\n ? \"clamp\"\n : undefined;\n const minFilter:\n | NonNullable<IAutoMovieTextureReference[\"sampler\"]>[\"minFilter\"]\n | undefined =\n texture.minFilter === THREE.NearestFilter\n ? \"nearest\"\n : texture.minFilter === THREE.LinearFilter\n ? \"linear\"\n : texture.minFilter === THREE.NearestMipmapLinearFilter\n ? \"nearestMipmapLinear\"\n : texture.minFilter === THREE.LinearMipmapLinearFilter\n ? \"linearMipmapLinear\"\n : undefined;\n const wrapS: ReturnType<typeof wrap> = wrap(texture.wrapS);\n const wrapT: ReturnType<typeof wrap> = wrap(texture.wrapT);\n const magFilter:\n | NonNullable<IAutoMovieTextureReference[\"sampler\"]>[\"magFilter\"]\n | undefined =\n texture.magFilter === THREE.NearestFilter\n ? \"nearest\"\n : texture.magFilter === THREE.LinearFilter\n ? \"linear\"\n : undefined;\n const sampler: IAutoMovieTextureReference[\"sampler\"] =\n minFilter === undefined ||\n wrapS === undefined ||\n wrapT === undefined ||\n magFilter === undefined\n ? undefined\n : {\n wrapS,\n wrapT,\n minFilter,\n magFilter,\n };\n const nativeMinFilter: boolean = [\n THREE.NearestFilter,\n THREE.LinearFilter,\n THREE.NearestMipmapNearestFilter,\n THREE.NearestMipmapLinearFilter,\n THREE.LinearMipmapNearestFilter,\n THREE.LinearMipmapLinearFilter,\n ].includes(texture.minFilter);\n const samplerState: string | null =\n wrapS === undefined ||\n wrapT === undefined ||\n magFilter === undefined ||\n !nativeMinFilter\n ? null\n : JSON.stringify([\n texture.wrapS,\n texture.wrapT,\n texture.minFilter,\n texture.magFilter,\n ]);\n const conversionMinFilter: THREE.MinificationTextureFilter =\n texture.minFilter === THREE.LinearMipmapLinearFilter\n ? THREE.LinearFilter\n : texture.minFilter;\n const environmentSampler: IAutoMovieTextureReference[\"sampler\"] =\n sampler === undefined\n ? undefined\n : {\n ...sampler,\n minFilter:\n texture.minFilter === THREE.LinearMipmapLinearFilter\n ? (\"linear\" as const)\n : sampler.minFilter,\n };\n return {\n asset,\n width: extent.width,\n height: extent.height,\n format,\n sampler,\n samplerState,\n allocationStateKnown:\n cacheAllocationKnown &&\n environmentAllocationKnown &&\n !manual &&\n !framebuffer &&\n !unsupportedExtent &&\n !(\"isCompressedTexture\" in texture) &&\n !(\"isDepthTexture\" in texture) &&\n \"width\" in image &&\n \"height\" in image &&\n original.width === image.width &&\n original.height === image.height,\n colorSpace:\n texture.colorSpace === THREE.SRGBColorSpace\n ? \"srgb\"\n : texture.colorSpace === THREE.NoColorSpace\n ? \"linear\"\n : texture.colorSpace === THREE.LinearSRGBColorSpace\n ? \"linear-environment\"\n : undefined,\n environmentColorSpace: readAutoMovieEnvironmentColorSpace(texture),\n environmentSampler,\n environmentSamplerState:\n samplerState === null\n ? null\n : JSON.stringify([\n texture.wrapS,\n texture.wrapT,\n conversionMinFilter,\n texture.magFilter,\n ]),\n environmentBackgroundFormat:\n texture.type === THREE.UnsignedByteType\n ? \"rgba8\"\n : texture.type === THREE.HalfFloatType\n ? \"rgba16f\"\n : texture.type === THREE.FloatType\n ? \"rgba32f\"\n : undefined,\n sourceIdentity: objectIdentity(texture.source),\n textureIdentity: objectIdentity(texture),\n uploadState: JSON.stringify(\n [\n texture.format,\n texture.type,\n texture.internalFormat,\n texture.anisotropy,\n texture.flipY,\n texture.premultiplyAlpha,\n texture.unpackAlignment,\n texture.generateMipmaps,\n \"wrapR\" in texture ? texture.wrapR || 0 : 0,\n ].map((value: unknown): string => (value === null ? \"\" : String(value))),\n ),\n generateMipmaps: texture.generateMipmaps,\n explicitMipmaps: Array.isArray(mipmaps) && mipmaps.length > 1,\n mipmapped:\n (Array.isArray(mipmaps) && mipmaps.length > 1) ||\n texture.generateMipmaps ||\n (framebuffer &&\n texture.minFilter !== THREE.NearestFilter &&\n texture.minFilter !== THREE.LinearFilter),\n };\n}\n\n/** Decode the native base metadata; manual history remains uncertified. */\nconst decodedExtent: (\n image: unknown,\n data: boolean,\n) => { width: number; height: number } | undefined = (\n image: unknown,\n data: boolean,\n): { width: number; height: number } | undefined => {\n if (typeof image !== \"object\" || image === null) return undefined;\n const rawWidth: unknown = \"width\" in image ? image.width : undefined;\n const rawHeight: unknown = \"height\" in image ? image.height : undefined;\n const width: unknown =\n !data && \"displayWidth\" in image\n ? image.displayWidth\n : !data && \"naturalWidth\" in image\n ? image.naturalWidth || rawWidth\n : rawWidth;\n const height: unknown =\n !data && \"displayHeight\" in image\n ? image.displayHeight\n : !data && \"naturalHeight\" in image\n ? image.naturalHeight || rawHeight\n : rawHeight;\n return typeof width === \"number\" &&\n typeof height === \"number\" &&\n Number.isSafeInteger(width) &&\n width > 0 &&\n Number.isSafeInteger(height) &&\n height > 0\n ? { width, height }\n : undefined;\n};\n\n/**\n * Host-local equality follows the actual object reference, not a mutable label\n * or copied UUID. Weak keys retain no texture after its host releases it.\n */\nconst objectIdentity: (value: object) => string = (value: object): string => {\n let identity: string | undefined = objectIdentities.get(value);\n if (identity === undefined) {\n identity = `texture-object:${nextObjectIdentity++}`;\n objectIdentities.set(value, identity);\n }\n return identity;\n};\n"],"mappings":";;;;;;AAWA,MAAM,mCAA4C,IAAI,QAAwB;AAC9E,IAAI,qBAA6B;;;;;;;;;;;;;;;;;;AAmBjC,SAAgB,2BACd,OACA,SAC+B;CAC/B,MAAM,uBACJ,yCAAyC,QAAQ,OAAO;CAC1D,MAAM,6BACJ,qCAAqC,QAAQ,OAAO;CACtD,MAAM,QAAiB,QAAQ;CAC/B,MAAM,OACJ,mBAAmB,WAAW,QAAQ,kBAAkB;CAC1D,MAAM,WAA6C,cAAc,OAAO,IAAI;CAC5E,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,KAAA,GAC9D,MAAM,IAAI,MACR,kBAAkB,MAAM,yCAC1B;CACF,MAAM,UAAmB,QAAQ;CACjC,MAAM,SAAkB,CAAC,MAAM,QAAQ,OAAO,KAAK,QAAQ,WAAW;CACtE,MAAM,cAAuB,0BAA0B;CAMvD,MAAM,SAJJ,UACA,CAAC,eACD,EAAE,oBAAoB,YACtB,CAAC,QAAQ,yBAES,MAAM,QAAQ,OAAO,IAClC,cAAc,QAAQ,IAAI,IAAI,KAAK,WACpC;CACN,MAAM,oBACH,WAAW,SAAS,MAAM,UAAU,KACrC,wBAAwB,WACxB,qBAAqB,WACrB,8BAA8B,WAC9B,QAAQ;CACV,MAAM,SACJ,oBAAoB,KAAA,IAAY,iCAAiC,OAAO;CAC1E,MAAM,QAGJ,UAEA,UAAU,MAAM,iBACZ,WACA,UAAU,MAAM,yBACd,WACA,UAAU,MAAM,sBACd,UACA,KAAA;CACV,MAAM,YAGJ,QAAQ,cAAc,MAAM,gBACxB,YACA,QAAQ,cAAc,MAAM,eAC1B,WACA,QAAQ,cAAc,MAAM,4BAC1B,wBACA,QAAQ,cAAc,MAAM,2BAC1B,uBACA,KAAA;CAC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AA,GAAW;EAC1B,WAAW,kBAAkB;EAC7B,iBAAiB,IAAI,OAAO,QAAQ;CACtC;CACA,OAAO;AACT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAutoMovieRenderTextureTarget } from "@automovie/
|
|
1
|
+
import type { IAutoMovieRenderTextureTarget } from "@automovie/interface";
|
|
2
2
|
import * as THREE from "three";
|
|
3
3
|
/**
|
|
4
4
|
* Bound the r186 scene/camera transmission target from the current host state. The native factory uses the physical viewport times transmission scale, a half-float color attachment when supported, full mips and at least four requested samples. D24/D24S8 depth is bounded by four bytes per sample. This is a conservative factory profile, not a driver allocation measurement. The host retains one record per live native scene/camera target, including earlier cameras whose cache survives material removal, until context release.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readAutoMovieTransmissionTextureTarget.mjs","names":[],"sources":["../../src/scene/readAutoMovieTransmissionTextureTarget.ts"],"sourcesContent":["import type { IAutoMovieRenderTextureTarget } from \"@automovie/
|
|
1
|
+
{"version":3,"file":"readAutoMovieTransmissionTextureTarget.mjs","names":[],"sources":["../../src/scene/readAutoMovieTransmissionTextureTarget.ts"],"sourcesContent":["import type { IAutoMovieRenderTextureTarget } from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\n/**\n * Bound the r186 scene/camera transmission target from the current host state. The native factory uses the physical viewport times transmission scale, a half-float color attachment when supported, full mips and at least four requested samples. D24/D24S8 depth is bounded by four bytes per sample. This is a conservative factory profile, not a driver allocation measurement. The host retains one record per live native scene/camera target, including earlier cameras whose cache survives material removal, until context release.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Uses a truthy native camera viewport or current physical renderer viewport, resolution scale and actual half-float extensions/sample capability to bound the installed transmission factory.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One prospective scene/camera factory profile supplies Engine accounting while actual native target allocation and host retention remain outside this helper.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed structural extents remain NaN for downstream admission instead of an invented size; scale/sample metadata and supported extensions do not prove a current driver allocation.\n * @evidence contracts/development/common.md#meaningful-documentation Documents viewport scaling, floor-to-pixels, color capability fallback, full mips, minimum four samples, depth bound and retained earlier-camera ownership.\n * @evidence contracts/development/implementation.md#efficient-algorithms Fixed viewport/component/extension reads and one Vector4 scratch allocate no pixel arrays or transmission target.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The current camera/host profile must be observed after viewport or capability changes; an earlier camera row cannot replace a different retained scene/camera target.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned scalar metadata acquires no framebuffer; caller retains each live native scene/camera target profile, including removed-material histories, until actual context/target release.\n */\nexport function readAutoMovieTransmissionTextureTarget(\n owner: string,\n transmissionScope: string,\n renderer: {\n getCurrentViewport: THREE.WebGLRenderer[\"getCurrentViewport\"];\n transmissionResolutionScale: number;\n capabilities: Pick<THREE.WebGLRenderer[\"capabilities\"], \"samples\">;\n extensions: Pick<THREE.WebGLRenderer[\"extensions\"], \"has\">;\n },\n camera: THREE.Camera,\n): IAutoMovieRenderTextureTarget {\n const viewport: unknown =\n (\"viewport\" in camera ? camera.viewport : undefined) ||\n renderer.getCurrentViewport(new THREE.Vector4());\n const width: number =\n typeof viewport === \"object\" &&\n viewport !== null &&\n \"z\" in viewport &&\n typeof viewport.z === \"number\"\n ? viewport.z\n : NaN;\n const height: number =\n typeof viewport === \"object\" &&\n viewport !== null &&\n \"w\" in viewport &&\n typeof viewport.w === \"number\"\n ? viewport.w\n : NaN;\n const half: boolean =\n renderer.extensions.has(\"EXT_color_buffer_half_float\") ||\n renderer.extensions.has(\"EXT_color_buffer_float\");\n return {\n owner,\n transmissionScope,\n width: Math.floor(width * renderer.transmissionResolutionScale),\n height: Math.floor(height * renderer.transmissionResolutionScale),\n formats: [half ? \"rgba16f\" : \"rgba8\"],\n mipmapped: true,\n samples: Math.max(4, renderer.capabilities.samples),\n depthBytesPerTexel: 4,\n depthTexture: false,\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAcA,SAAgB,uCACd,OACA,mBACA,UAMA,QAC+B;CAC/B,MAAM,YACH,cAAc,SAAS,OAAO,WAAW,KAAA,MAC1C,SAAS,mBAAmB,IAAI,MAAM,QAAQ,CAAC;CACjD,MAAM,QACJ,OAAO,aAAa,YACpB,aAAa,QACb,OAAO,YACP,OAAO,SAAS,MAAM,WAClB,SAAS,IACT;CACN,MAAM,SACJ,OAAO,aAAa,YACpB,aAAa,QACb,OAAO,YACP,OAAO,SAAS,MAAM,WAClB,SAAS,IACT;CACN,MAAM,OACJ,SAAS,WAAW,IAAI,6BAA6B,KACrD,SAAS,WAAW,IAAI,wBAAwB;CAClD,OAAO;EACL;EACA;EACA,OAAO,KAAK,MAAM,QAAQ,SAAS,2BAA2B;EAC9D,QAAQ,KAAK,MAAM,SAAS,SAAS,2BAA2B;EAChE,SAAS,CAAC,OAAO,YAAY,OAAO;EACpC,WAAW;EACX,SAAS,KAAK,IAAI,GAAG,SAAS,aAAa,OAAO;EAClD,oBAAoB;EACpB,cAAc;CAChB;AACF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IAutoMovieFilmBeautyLayer } from "./IAutoMovieFilmBeautyLayer.js";
|
|
1
|
+
import type { IAutoMovieFilmBeautyComposition, IAutoMovieFilmBeautyLayer } from "@automovie/interface";
|
|
3
2
|
/**
|
|
4
3
|
* Resolve a builder-sampled beauty layer list into one explicit compositor.
|
|
5
4
|
*
|
|
@@ -13,4 +12,4 @@ import type { IAutoMovieFilmBeautyLayer } from "./IAutoMovieFilmBeautyLayer.js";
|
|
|
13
12
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Returned branches borrow actual layer identity for their one draw; different sampled frame inputs are not memoized by equal weight or shot name.
|
|
14
13
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the small result wrapper holds borrowed layers, with no renderer, target, texture or persistent composition cache acquired.
|
|
15
14
|
*/
|
|
16
|
-
export declare const resolveAutoMovieFilmBeautyComposition: <Layer extends IAutoMovieFilmBeautyLayer>(layers: readonly Layer[]) =>
|
|
15
|
+
export declare const resolveAutoMovieFilmBeautyComposition: <Layer extends IAutoMovieFilmBeautyLayer>(layers: readonly Layer[]) => IAutoMovieFilmBeautyComposition<Layer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAutoMovieFilmBeautyComposition.js","sourceRoot":"","sources":["../../src/scene/resolveAutoMovieFilmBeautyComposition.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"resolveAutoMovieFilmBeautyComposition.js","sourceRoot":"","sources":["../../src/scene/resolveAutoMovieFilmBeautyComposition.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;GAYG;AACI,MAAM,qCAAqC,GAIJ,CAG5C,MAAwB,EACgB,EAAE;IAC1C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAC5C,MAAM,IAAI,KAAK,CACb,4FAA4F,MAAM,CAAC,MAAM,GAAG,CAC7G,CAAC;IACJ,KAAK,MAAM,KAAK,IAAI,MAAM;QACxB,IACE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK;YACvC,KAAK,CAAC,MAAM,GAAG,CAAC;YAChB,KAAK,CAAC,MAAM,GAAG,CAAC;YAEhB,MAAM,IAAI,KAAK,CACb,4BAA4B,KAAK,CAAC,MAAM,oCAAoC,CAC7E,CAAC;IACN,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QACrB,OAAO,MAAM,CAAC,CAAC,CAAE,CAAC,MAAM,KAAK,CAAC;YAC5B,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAE,EAAE;YACvC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAE,CAAC,MAAM,EAAE,CAAC;IACrE,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAA4B,MAGrD,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,KAAK,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6DAA6D,QAAQ,CAAC,MAAM,QAAQ,QAAQ,CAAC,MAAM,GAAG,CACvG,CAAC;IACJ,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;AAC1E,CAAC,CAAC;AAnCW,QAAA,qCAAqC,GAArC,qCAAqC,CAmChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAutoMovieFilmBeautyComposition.mjs","names":[],"sources":["../../src/scene/resolveAutoMovieFilmBeautyComposition.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"resolveAutoMovieFilmBeautyComposition.mjs","names":[],"sources":["../../src/scene/resolveAutoMovieFilmBeautyComposition.ts"],"sourcesContent":["import type {\n IAutoMovieFilmBeautyComposition,\n IAutoMovieFilmBeautyLayer,\n} from \"@automovie/interface\";\n\n/**\n * Resolve a builder-sampled beauty layer list into one explicit compositor.\n *\n * One fractional layer means color over black, while two complementary layers retain the existing cross-dissolve. Invalid weights and cardinalities are refused by name instead of being clamped or rendered as an opaque shot.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Admits exactly one/two finite0..1 sampled layers, interpreting full single weight as direct, fractional single as fade and exact-complement pair as ordered dissolve.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One explicit discriminated composition separates admission from frame dispatch and native display effects.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Invalid cardinality/weight/exact complement refuses rather than clamp, normalize or invent an opaque shot; floating inputs must already carry the canonical sampler complement relation.\n * @evidence contracts/development/common.md#meaningful-documentation Documents direct/fade/dissolve operands and named invalid weight/cardinality semantics before rendering.\n * @evidence contracts/development/implementation.md#efficient-algorithms At most two admitted layers require fixed checks and one small composition wrapper; no payload clone, sort or scene traversal is performed.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Returned branches borrow actual layer identity for their one draw; different sampled frame inputs are not memoized by equal weight or shot name.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the small result wrapper holds borrowed layers, with no renderer, target, texture or persistent composition cache acquired.\n */\nexport const resolveAutoMovieFilmBeautyComposition: <\n Layer extends IAutoMovieFilmBeautyLayer,\n>(\n layers: readonly Layer[],\n) => IAutoMovieFilmBeautyComposition<Layer> = <\n Layer extends IAutoMovieFilmBeautyLayer,\n>(\n layers: readonly Layer[],\n): IAutoMovieFilmBeautyComposition<Layer> => {\n if (layers.length !== 1 && layers.length !== 2)\n throw new Error(\n `Film beauty composition requires one fade/cut layer or two dissolve layers, but received ${layers.length}.`,\n );\n for (const layer of layers)\n if (\n Number.isFinite(layer.weight) === false ||\n layer.weight < 0 ||\n layer.weight > 1\n )\n throw new Error(\n `Film beauty layer weight ${layer.weight} must be finite and inside [0, 1].`,\n );\n if (layers.length === 1)\n return layers[0]!.weight === 1\n ? { kind: \"direct\", layer: layers[0]! }\n : { kind: \"fade\", layer: layers[0]!, weight: layers[0]!.weight };\n const [outgoing, incoming]: readonly [Layer, Layer] = layers as readonly [\n Layer,\n Layer,\n ];\n if (outgoing.weight + incoming.weight !== 1)\n throw new Error(\n `Film dissolve layer weights must sum to one, but received ${outgoing.weight} and ${incoming.weight}.`,\n );\n return { kind: \"dissolve\", outgoing, incoming, alpha: incoming.weight };\n};\n"],"mappings":";;;;;;;;;;;;;;AAkBA,MAAa,yCAOX,WAC2C;CAC3C,IAAI,OAAO,WAAW,KAAK,OAAO,WAAW,GAC3C,MAAM,IAAI,MACR,4FAA4F,OAAO,OAAO,EAC5G;CACF,KAAK,MAAM,SAAS,QAClB,IACE,OAAO,SAAS,MAAM,MAAM,MAAM,SAClC,MAAM,SAAS,KACf,MAAM,SAAS,GAEf,MAAM,IAAI,MACR,4BAA4B,MAAM,OAAO,mCAC3C;CACJ,IAAI,OAAO,WAAW,GACpB,OAAO,OAAO,EAAE,CAAE,WAAW,IACzB;EAAE,MAAM;EAAU,OAAO,OAAO;CAAI,IACpC;EAAE,MAAM;EAAQ,OAAO,OAAO;EAAK,QAAQ,OAAO,EAAE,CAAE;CAAO;CACnE,MAAM,CAAC,UAAU,YAAqC;CAItD,IAAI,SAAS,SAAS,SAAS,WAAW,GACxC,MAAM,IAAI,MACR,6DAA6D,SAAS,OAAO,OAAO,SAAS,OAAO,EACtG;CACF,OAAO;EAAE,MAAM;EAAY;EAAU;EAAU,OAAO,SAAS;CAAO;AACxE"}
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* A built scene and the palette its structural mask pass must paint it with.
|
|
4
|
-
*
|
|
5
|
-
* @evidence contracts/development/design.md#principled-representation Pairs the exact designed scene ordering with its production-derived semantic palette for one built-scene structural pass.
|
|
6
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface One borrowed binding keeps design and palette together at the scene userData handoff instead of widening every intermediate draw signature.
|
|
7
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The type cannot certify matching compiled artifact, object ordering, id admission or drawn pixels merely from field presence; producers and the scene mapper own those premises.
|
|
8
|
-
* @evidence contracts/development/common.md#meaningful-documentation Fields identify design declaration order and same-production palette, with explicit borrowed binding responsibility.
|
|
9
|
-
*/
|
|
10
|
-
export interface IAutoMovieSemanticMaskBinding {
|
|
11
|
-
/**
|
|
12
|
-
* The design the scene was built from, in its own declaration order.
|
|
13
|
-
*/
|
|
14
|
-
design: IAutoMovieScene;
|
|
15
|
-
/**
|
|
16
|
-
* Palette derived from the same production.
|
|
17
|
-
*/
|
|
18
|
-
mask: IAutoMovieSemanticMask;
|
|
19
|
-
}
|
|
1
|
+
export type { IAutoMovieSemanticMaskBinding } from "@automovie/interface";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { IAutoMovieSemanticMaskBinding } from "@automovie/interface";
|
|
1
2
|
import type * as THREE from "three";
|
|
2
|
-
import type { IAutoMovieSemanticMaskBinding } from "./IAutoMovieSemanticMaskBinding.js";
|
|
3
3
|
/**
|
|
4
4
|
* Hand a built scene the palette its `mask` pass must paint it with.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachAutoMovieSemanticMask.mjs","names":[],"sources":["../../../src/scene/semanticMask/attachAutoMovieSemanticMask.ts"],"sourcesContent":["import type
|
|
1
|
+
{"version":3,"file":"attachAutoMovieSemanticMask.mjs","names":[],"sources":["../../../src/scene/semanticMask/attachAutoMovieSemanticMask.ts"],"sourcesContent":["import type { IAutoMovieSemanticMaskBinding } from \"@automovie/interface\";\nimport type * as THREE from \"three\";\n\nimport { SCENE_MASK_KEY } from \"./SCENE_MASK_KEY.js\";\n\n/**\n * Hand a built scene the palette its `mask` pass must paint it with.\n *\n * The scene carries it, rather than every caller passing it down, for the same reason a formation's baked cycle rides on its own mesh: the pass boundary that needs it is several calls below whoever knows it. A compiled shot's runtime hands `applyRenderMode` a pass name and nothing else, so a mask that had to arrive as an argument could only arrive by widening every signature between the page and the pass. A scene given no palette keeps the legacy index ramp, which is what an asset turntable and any host without a compiled design draw.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Attaches the caller production design/palette binding to the actual scene userData key consumed by packaged mask selection.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure The scene handoff carries one existing binding across intermediate draw layers without adding public pass arguments or a global registry.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No attached fake coverage or material is generated; caller must provide the correct admitted binding, and attachment presence does not prove root or pixel coverage.\n * @evidence contracts/development/common.md#meaningful-documentation Documents why the scene owns the handoff and why an unattached asset host retains legacy ramp semantics.\n * @evidence contracts/development/implementation.md#efficient-algorithms One property assignment is fixed work and copies no scene, palette or shader data.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The same actual binding can serve subsequent passes until scene/production replacement; replacement overwrites the reference and identity text alone does not preserve semantic validity.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only one binding reference is retained on the caller-owned scene; no geometry/material/renderer is acquired and scene/binding owner controls withdrawal or replacement.\n */\nexport const attachAutoMovieSemanticMask: (\n scene: THREE.Scene,\n binding: IAutoMovieSemanticMaskBinding,\n) => void = (\n scene: THREE.Scene,\n binding: IAutoMovieSemanticMaskBinding,\n): void => {\n scene.userData[SCENE_MASK_KEY] = binding;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAkBA,MAAa,+BAIX,OACA,YACS;CACT,MAAM,SAAS,kBAAkB;AACnC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { IAutoMovieSemanticMaskBinding } from "@automovie/interface";
|
|
1
2
|
import type * as THREE from "three";
|
|
2
|
-
import type { IAutoMovieSemanticMaskBinding } from "./IAutoMovieSemanticMaskBinding.js";
|
|
3
3
|
/**
|
|
4
4
|
* The palette a scene was given, or `null` when it was given none.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoMovieSemanticMaskOf.mjs","names":[],"sources":["../../../src/scene/semanticMask/autoMovieSemanticMaskOf.ts"],"sourcesContent":["import type
|
|
1
|
+
{"version":3,"file":"autoMovieSemanticMaskOf.mjs","names":[],"sources":["../../../src/scene/semanticMask/autoMovieSemanticMaskOf.ts"],"sourcesContent":["import type { IAutoMovieSemanticMaskBinding } from \"@automovie/interface\";\nimport type * as THREE from \"three\";\n\nimport { SCENE_MASK_KEY } from \"./SCENE_MASK_KEY.js\";\n\n/**\n * The palette a scene was given, or `null` when it was given none.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Reads the actual scene userData binding under the shared semantic key and returns null when absent for packaged mask fallback selection.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One small scene-local read pairs with attachAutoMovieSemanticMask, avoiding a second global scene registry.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The cast relies on the maintained attach producer and does not validate arbitrary external userData; a returned binding cannot certify scene membership or pixels.\n * @evidence contracts/development/common.md#meaningful-documentation Documents absent null meaning and supplied palette lookup without inventing an admission or coverage verdict.\n * @evidence contracts/development/implementation.md#efficient-algorithms One property read/nullish branch is fixed work with no traversal or clone.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The current scene reference is read every time so binding replacement is observed; no stale memo survives scene userData mutation.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned binding is borrowed from the scene and no additional retained state, material or native handle is acquired.\n */\nexport const autoMovieSemanticMaskOf: (\n scene: THREE.Scene,\n) => IAutoMovieSemanticMaskBinding | null = (\n scene: THREE.Scene,\n): IAutoMovieSemanticMaskBinding | null =>\n (scene.userData[SCENE_MASK_KEY] as\n | IAutoMovieSemanticMaskBinding\n | undefined) ?? null;\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAa,2BAGX,UAEC,MAAM,SAAA,4BAEW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAutoMovieCaptionSidecar } from "
|
|
1
|
+
import type { IAutoMovieCaptionSidecar } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* Slice a caption sidecar to one chunk's window `[frameStart, frameEnd)`, with spans clipped to the window and re-based to chunk-local frame indices.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliceCaptionSidecar.mjs","names":[],"sources":["../src/sliceCaptionSidecar.ts"],"sourcesContent":["import {\n IAutoMovieCaptionEntry,\n IAutoMovieCaptionSidecar,\n} from \"
|
|
1
|
+
{"version":3,"file":"sliceCaptionSidecar.mjs","names":[],"sources":["../src/sliceCaptionSidecar.ts"],"sourcesContent":["import type {\n IAutoMovieCaptionEntry,\n IAutoMovieCaptionSidecar,\n} from \"@automovie/interface\";\n\n/**\n * Slice a caption sidecar to one chunk's window `[frameStart, frameEnd)`, with spans clipped to the window and re-based to chunk-local frame indices.\n *\n * This is the caption counterpart of `planChunkedSequenceRender`'s frame-atomic chunking, so each chunk render carries its own caption track. A `frameEnd` past the sidecar's coverage is clamped to `frameCount`, which is how the last, shorter chunk is sliced. Throws when `frameStart` is not a non-negative integer, when `frameEnd` is not an integer above `frameStart`, or when `frameStart` is at or beyond `frameCount`, which means the render and the caption plan disagree on the frame count, for example because they were planned at different fps. The input spans must be in play order and tile the frames, as `planCaptionSidecar` and this function produce them.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Spans are sorted, contiguous half-open intervals, so a binary search finds the first span ending after `frameStart`, and spans are then clipped with `max` and `min` until one starts at or after the clamped end; clipping cannot empty a visited span because each one overlaps the window.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure The slicer reads only the sidecar, not the chunk plan, so a host can pair any chunk window with its caption track; the clamp is a named helper because the coverage refusal and the clamp are separate rules.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A window beyond coverage throws instead of returning an empty or negative-length slice, and no window or sidecar is special-cased.\n * @evidence contracts/development/common.md#meaningful-documentation The doc states the clipping and re-basing, the clamp for the last chunk, each refusal, and the frame-count mismatch a coverage refusal signals.\n * @evidence contracts/development/implementation.md#efficient-algorithms For S spans and K spans overlapping one window, bisection plus clipping costs O(log(S+1) + K). For C contiguous chunk windows that partition the coverage, each internal boundary adds at most one repeated span visit, so total work is O(C log(S+1) + S); a single long span can still appear in all C outputs, and no span or chunk count cap is imposed.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call slices one window; chunk windows are disjoint, so there is no equivalent result to reuse between calls.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The function retains nothing; the returned sidecar, owned by the caller, holds exactly the K overlapping spans as new objects and never aliases the input's spans.\n */\nexport const sliceCaptionSidecar: (\n sidecar: IAutoMovieCaptionSidecar,\n frameStart: number,\n frameEnd: number,\n) => IAutoMovieCaptionSidecar = (\n sidecar: IAutoMovieCaptionSidecar,\n frameStart: number,\n frameEnd: number,\n): IAutoMovieCaptionSidecar => {\n if (!Number.isInteger(frameStart) || frameStart < 0)\n throw new Error(\n `frameStart must be a non-negative integer, but was ${frameStart}`,\n );\n if (!Number.isInteger(frameEnd) || frameEnd <= frameStart)\n throw new Error(\n `frameEnd must be an integer > frameStart, but was ${frameEnd}`,\n );\n if (frameStart >= sidecar.frameCount)\n throw new Error(\n `frameStart ${frameStart} is at or beyond the sidecar's ${sidecar.frameCount} frames; the render window exceeds caption coverage`,\n );\n\n const end: number = clampWindowEnd(frameEnd, sidecar.frameCount);\n const entries: IAutoMovieCaptionEntry[] = [];\n for (\n let index: number = firstSpanEndingAfter(sidecar.entries, frameStart);\n index < sidecar.entries.length && sidecar.entries[index]!.frameStart < end;\n ++index\n ) {\n const entry: IAutoMovieCaptionEntry = sidecar.entries[index]!;\n entries.push({\n ...entry,\n frameStart: Math.max(entry.frameStart, frameStart) - frameStart,\n frameEnd: Math.min(entry.frameEnd, end) - frameStart,\n });\n }\n return {\n target: sidecar.target,\n fps: sidecar.fps,\n frameCount: end - frameStart,\n entries,\n };\n};\n\n/** The window's exclusive end, clamped to the sidecar's frame count. */\nconst clampWindowEnd: (frameEnd: number, frameCount: number) => number = (\n frameEnd: number,\n frameCount: number,\n): number => (frameEnd < frameCount ? frameEnd : frameCount);\n\n/** Index of the first span whose exclusive end exceeds `frame`, by bisection. */\nconst firstSpanEndingAfter: (\n entries: readonly IAutoMovieCaptionEntry[],\n frame: number,\n) => number = (\n entries: readonly IAutoMovieCaptionEntry[],\n frame: number,\n): number => {\n let low: number = 0;\n let high: number = entries.length;\n while (low < high) {\n const middle: number = (low + high) >>> 1;\n if (entries[middle]!.frameEnd > frame) high = middle;\n else low = middle + 1;\n }\n return low;\n};\n"],"mappings":";;;;;;;;;;;;;;AAkBA,MAAa,uBAKX,SACA,YACA,aAC6B;CAC7B,IAAI,CAAC,OAAO,UAAU,UAAU,KAAK,aAAa,GAChD,MAAM,IAAI,MACR,sDAAsD,YACxD;CACF,IAAI,CAAC,OAAO,UAAU,QAAQ,KAAK,YAAY,YAC7C,MAAM,IAAI,MACR,qDAAqD,UACvD;CACF,IAAI,cAAc,QAAQ,YACxB,MAAM,IAAI,MACR,cAAc,WAAW,iCAAiC,QAAQ,WAAW,oDAC/E;CAEF,MAAM,MAAc,eAAe,UAAU,QAAQ,UAAU;CAC/D,MAAM,UAAoC,CAAC;CAC3C,KACE,IAAI,QAAgB,qBAAqB,QAAQ,SAAS,UAAU,GACpE,QAAQ,QAAQ,QAAQ,UAAU,QAAQ,QAAQ,MAAM,CAAE,aAAa,KACvE,EAAE,OACF;EACA,MAAM,QAAgC,QAAQ,QAAQ;EACtD,QAAQ,KAAK;GACX,GAAG;GACH,YAAY,KAAK,IAAI,MAAM,YAAY,UAAU,IAAI;GACrD,UAAU,KAAK,IAAI,MAAM,UAAU,GAAG,IAAI;EAC5C,CAAC;CACH;CACA,OAAO;EACL,QAAQ,QAAQ;EAChB,KAAK,QAAQ;EACb,YAAY,MAAM;EAClB;CACF;AACF;;AAGA,MAAM,kBACJ,UACA,eACY,WAAW,aAAa,WAAW;;AAGjD,MAAM,wBAIJ,SACA,UACW;CACX,IAAI,MAAc;CAClB,IAAI,OAAe,QAAQ;CAC3B,OAAO,MAAM,MAAM;EACjB,MAAM,SAAkB,MAAM,SAAU;EACxC,IAAI,QAAQ,OAAO,CAAE,WAAW,OAAO,OAAO;OACzC,MAAM,SAAS;CACtB;CACA,OAAO;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automovie/render",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "automovie render: deterministic frame schedule + encode plan from a render spec",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@automovie/engine": "^0.
|
|
32
|
-
"@automovie/ingest": "^0.
|
|
33
|
-
"@automovie/interface": "^0.
|
|
31
|
+
"@automovie/engine": "^0.3.0",
|
|
32
|
+
"@automovie/ingest": "^0.3.0",
|
|
33
|
+
"@automovie/interface": "^0.3.0",
|
|
34
34
|
"three": "^0.186.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@types/three": "^0.186.0",
|
|
39
39
|
"rimraf": "^6.0.1",
|
|
40
40
|
"rolldown": "^1.1.5",
|
|
41
|
-
"ttsc": "^0.37.
|
|
41
|
+
"ttsc": "^0.37.1",
|
|
42
42
|
"typescript": "^7.0.2",
|
|
43
|
-
"@ttsc/lint": "^0.37.
|
|
43
|
+
"@ttsc/lint": "^0.37.1",
|
|
44
44
|
"@wrtnlabs/evidence": "^0.8.2",
|
|
45
|
-
"@ttsc/evidence": "^0.37.
|
|
45
|
+
"@ttsc/evidence": "^0.37.1"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=22.23.2"
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* One caption span: the output frames `[frameStart, frameEnd)` during which one beat's shot is live, with that beat's shot caption and enclosing scene slug.
|
|
3
|
-
*
|
|
4
|
-
* A guide-frame consumer, such as an external diffusion pass, can use the caption as the prompt for those frames and the slug as scene context. A null caption carries no prompt; this declaration does not choose a consumer's fallback behavior.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/design.md#principled-representation A half-open frame interval is the representation that lets consecutive spans share a boundary without overlap, so the spans tile the output frames exactly and slicing can clip them with `max` and `min`.
|
|
7
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The span repeats the `IAutoMovieBeatCaption` fields beside the beat id and range, so a consumer reads one flat record without a second lookup into the screenplay.
|
|
8
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts No field carries a consumer-specific default prompt; null caption and slug are left for the consumer to interpret.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose gives the interval convention and how a consumer uses each field, and each member states its bound, its frame of reference, or its null cases.
|
|
10
|
-
*/
|
|
11
|
-
export interface IAutoMovieCaptionEntry {
|
|
12
|
-
/**
|
|
13
|
-
* First output frame of the span, inclusive, counted from the start of the sidecar: the whole render, or the chunk after slicing.
|
|
14
|
-
*/
|
|
15
|
-
frameStart: number;
|
|
16
|
-
|
|
17
|
-
/** One past the last output frame of the span, exclusive. */
|
|
18
|
-
frameEnd: number;
|
|
19
|
-
|
|
20
|
-
/** Id of the beat whose shot is live across the span. */
|
|
21
|
-
beat: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The beat node's shot caption, or null when the script has no tree or the beat authored none.
|
|
25
|
-
*/
|
|
26
|
-
caption: string | null;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The enclosing scene's slug, `INT. LOCATION - TIMEOFDAY`, or null when the script has no tree or no scene encloses the beat.
|
|
30
|
-
*/
|
|
31
|
-
slug: string | null;
|
|
32
|
-
}
|
|
1
|
+
export type { IAutoMovieCaptionEntry } from "@automovie/interface";
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The per-beat caption track of one sequence render: the machine-readable sidecar a guide-frame consumer reads next to the captured frames.
|
|
5
|
-
*
|
|
6
|
-
* `planCaptionSidecar` produces it for the whole render, `sliceCaptionSidecar` re-bases it to one chunk, and `renderCaptionSidecar` serializes it.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/design.md#principled-representation Spans are addressed in output frames at the render's `fps`, the same integer clock the captured frame files use, so a consumer maps a span to files by index without time arithmetic.
|
|
9
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Four fields carry only what a consumer needs to place spans against frame files; the cut, shots and script stay with the planner.
|
|
10
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The `frameCount` is stated explicitly so a slice can refuse a window beyond coverage instead of inferring coverage from the last span.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose names the producer, slicer and serializer; members state the frame clock, how `frameCount` is computed, and the tiling guarantee of `entries`.
|
|
12
|
-
*/
|
|
13
|
-
export interface IAutoMovieCaptionSidecar {
|
|
14
|
-
/** Id of the sequence this sidecar captions. */
|
|
15
|
-
target: string;
|
|
16
|
-
|
|
17
|
-
/** Output frames per second the spans are addressed in. */
|
|
18
|
-
fps: number;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Total output frames covered: `round(runtime * fps)` for a whole render, or the window length after slicing.
|
|
22
|
-
*/
|
|
23
|
-
frameCount: number;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Caption spans in play order, covering every frame in `[0, frameCount)` exactly once, with adjacent spans naming different beats.
|
|
27
|
-
*/
|
|
28
|
-
entries: IAutoMovieCaptionEntry[];
|
|
29
|
-
}
|
|
1
|
+
export type { IAutoMovieCaptionSidecar } from "@automovie/interface";
|