@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":"AUTOMOVIE_MP4_SRGB_COLOUR.js","sourceRoot":"","sources":["../../src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AUTOMOVIE_MP4_SRGB_COLOUR.js","sourceRoot":"","sources":["../../src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;GASG;AACU,QAAA,yBAAyB,GAElC;IACF,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,IAAI;CACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AUTOMOVIE_MP4_SRGB_COLOUR.mjs","names":[],"sources":["../../src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts"],"sourcesContent":["/**\n * The ITU-T H.273 code points that spell sRGB in an MP4 `colr` box.\n *\n * Primaries 1 is BT.709, transfer 13 is IEC 61966-2-1 sRGB, matrix 1 is BT.709,\n * and full range means the samples use the complete code range. These are\n * standard identities rather than a project preference, and three readings\n * depend on the same four numbers: the delivery profile requires them, the track\n * probe classifies a container as sRGB by them, and the normalizer writes them.\n * Spelling them three times is how one of those readings drifts from the others.\n */\nexport const AUTOMOVIE_MP4_SRGB_COLOUR: Readonly
|
|
1
|
+
{"version":3,"file":"AUTOMOVIE_MP4_SRGB_COLOUR.mjs","names":[],"sources":["../../src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts"],"sourcesContent":["import type { IAutoMovieProductionVideoProfile } from \"@automovie/interface\";\n\n/**\n * The ITU-T H.273 code points that spell sRGB in an MP4 `colr` box.\n *\n * Primaries 1 is BT.709, transfer 13 is IEC 61966-2-1 sRGB, matrix 1 is BT.709,\n * and full range means the samples use the complete code range. These are\n * standard identities rather than a project preference, and three readings\n * depend on the same four numbers: the delivery profile requires them, the track\n * probe classifies a container as sRGB by them, and the normalizer writes them.\n * Spelling them three times is how one of those readings drifts from the others.\n */\nexport const AUTOMOVIE_MP4_SRGB_COLOUR: Readonly<\n IAutoMovieProductionVideoProfile[\"color\"]\n> = {\n primaries: 1,\n transfer: 13,\n matrix: 1,\n fullRange: true,\n} as const;\n"],"mappings":";;;;;;;;;;;AAYA,MAAa,4BAET;CACF,WAAW;CACX,UAAU;CACV,QAAQ;CACR,WAAW;AACb"}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
+
import type { IAutoMovieProductionOpusProfile } from "@automovie/interface";
|
|
1
2
|
/** Current fieldwise Opus-in-MP4 profile written by the deterministic encoder. */
|
|
2
|
-
export declare const AUTOMOVIE_PRODUCTION_OPUS_PROFILE: Readonly<
|
|
3
|
-
kind: "opus";
|
|
4
|
-
version: 0;
|
|
5
|
-
outputChannelCount: 2;
|
|
6
|
-
inputSampleRate: 48000;
|
|
7
|
-
outputGainQ7_8: 0;
|
|
8
|
-
channelMapping: Readonly<{
|
|
9
|
-
family: 0;
|
|
10
|
-
streamCount: null;
|
|
11
|
-
coupledCount: null;
|
|
12
|
-
mapping: readonly [];
|
|
13
|
-
channelOrder: readonly ["front-left", "front-right"];
|
|
14
|
-
}>;
|
|
15
|
-
}>;
|
|
3
|
+
export declare const AUTOMOVIE_PRODUCTION_OPUS_PROFILE: Readonly<IAutoMovieProductionOpusProfile>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js","sourceRoot":"","sources":["../../src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js","sourceRoot":"","sources":["../../src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts"],"names":[],"mappings":";;;AAEA,kFAAkF;AACrE,QAAA,iCAAiC,GAC5C;IACE,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC;IACV,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,MAAM;IACvB,cAAc,EAAE,CAAC;IACjB,cAAc,EAAE;QACd,MAAM,EAAE,CAAC;QACT,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KAC5C;CACO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AUTOMOVIE_PRODUCTION_OPUS_PROFILE.mjs","names":[],"sources":["../../src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts"],"sourcesContent":["/** Current fieldwise Opus-in-MP4 profile written by the deterministic encoder. */\nexport const AUTOMOVIE_PRODUCTION_OPUS_PROFILE: Readonly<
|
|
1
|
+
{"version":3,"file":"AUTOMOVIE_PRODUCTION_OPUS_PROFILE.mjs","names":[],"sources":["../../src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts"],"sourcesContent":["import type { IAutoMovieProductionOpusProfile } from \"@automovie/interface\";\n\n/** Current fieldwise Opus-in-MP4 profile written by the deterministic encoder. */\nexport const AUTOMOVIE_PRODUCTION_OPUS_PROFILE: Readonly<IAutoMovieProductionOpusProfile> =\n {\n kind: \"opus\",\n version: 0,\n outputChannelCount: 2,\n inputSampleRate: 48_000,\n outputGainQ7_8: 0,\n channelMapping: {\n family: 0,\n streamCount: null,\n coupledCount: null,\n mapping: [],\n channelOrder: [\"front-left\", \"front-right\"],\n },\n } as const;\n"],"mappings":";;AAGA,MAAa,oCACX;CACE,MAAM;CACN,SAAS;CACT,oBAAoB;CACpB,iBAAiB;CACjB,gBAAgB;CAChB,gBAAgB;EACd,QAAQ;EACR,aAAa;EACb,cAAc;EACd,SAAS,CAAC;EACV,cAAc,CAAC,cAAc,aAAa;CAC5C;AACF"}
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Role of a renderer-owned PNG, which decides its picture profile.
|
|
3
|
-
*
|
|
4
|
-
* `preview` and `guide-frame` pictures take the authored raster, while
|
|
5
|
-
* `waveform` (960 × 240) and `spectrogram` (512 × 192) pictures have the fixed
|
|
6
|
-
* rasters their audio-evidence writers draw; `resolveProductionPngProfile`
|
|
7
|
-
* maps a role to its profile.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/design.md#principled-representation A closed string union names each kind of picture the renderer writes, so the profile resolver can switch exhaustively and a delivery check names the role in its refusal.
|
|
10
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Four literals cover the PNG writers that exist; the raster and format rules stay in `resolveProductionPngProfile` rather than in the role type.
|
|
11
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The fixed rasters belong to the two audio-evidence roles as contract constants of their writers, and the union adds no role for a single consumer.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The doc states which roles take the authored raster, the fixed raster of the others, and where a role becomes a profile.
|
|
13
|
-
*/
|
|
14
|
-
export type AutoMovieProductionPngRole = "preview" | "guide-frame" | "waveform" | "spectrogram";
|
|
1
|
+
export type { AutoMovieProductionPngRole } from "@automovie/interface";
|
|
@@ -1,41 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* The exact PNG picture facts the deterministic writers emit for one role.
|
|
4
|
-
*
|
|
5
|
-
* `resolveProductionPngProfile` builds it, and `assertProductionPngPicture`
|
|
6
|
-
* refuses a parsed PNG that differs in any compared field. Every field except
|
|
7
|
-
* the raster is a single literal, because the writers support exactly one
|
|
8
|
-
* format.
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/design.md#principled-representation Literal types encode each fixed format fact, so a profile cannot state a format the writers do not produce, and the checker compares fields one-for-one against the parser's observation.
|
|
11
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The profile is a flat record mirroring the parsed picture's field names, so the checker needs no mapping layer; `version` lets the shape change without misreading an older profile.
|
|
12
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The literals are the writers' actual output contract, not values chosen to match a fixture, and no role has a field of its own.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose names the producer and checker and why fields are literals; each member gives its unit or the convention its literal names.
|
|
14
|
-
*/
|
|
15
|
-
export interface IAutoMovieProductionPngProfile {
|
|
16
|
-
/** Profile schema version. */
|
|
17
|
-
version: 1;
|
|
18
|
-
/** Renderer-owned role the PNG is written for, named in a mismatch error. */
|
|
19
|
-
role: AutoMovieProductionPngRole;
|
|
20
|
-
/** Stored image width in pixels. */
|
|
21
|
-
width: number;
|
|
22
|
-
/** Stored image height in pixels. */
|
|
23
|
-
height: number;
|
|
24
|
-
/** Bits per channel; every writer emits 8. */
|
|
25
|
-
bitDepth: 8;
|
|
26
|
-
/** Channel layout; every writer emits RGBA. */
|
|
27
|
-
color: "rgba";
|
|
28
|
-
/** Alpha convention: color channels are not premultiplied by alpha. */
|
|
29
|
-
alpha: "straight";
|
|
30
|
-
/** Interlace method; the writers never interlace. */
|
|
31
|
-
interlace: "none";
|
|
32
|
-
/** Color space the pixel values are display-referred in. */
|
|
33
|
-
colorSpace: "srgb";
|
|
34
|
-
/**
|
|
35
|
-
* Pixel aspect; the writers emit square pixels, and a PNG without a physical
|
|
36
|
-
* pixel ratio is read as square.
|
|
37
|
-
*/
|
|
38
|
-
pixelAspect: "square";
|
|
39
|
-
/** Stored orientation; the writers never rotate. */
|
|
40
|
-
orientation: "upright";
|
|
41
|
-
}
|
|
1
|
+
export type { IAutoMovieProductionPngProfile } from "@automovie/interface";
|
|
@@ -1,46 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* The exact H.264-in-MP4 picture profile one video deliverable must carry,
|
|
4
|
-
* resolved from its authored raster and frame rate.
|
|
5
|
-
*
|
|
6
|
-
* `resolveProductionVideoProfile` builds it, and `assertProductionVideoProfile`
|
|
7
|
-
* refuses a probed file that differs from it. Raster and rate vary per
|
|
8
|
-
* deliverable; brands, matrix, pixel aspect and color are fixed literals of the
|
|
9
|
-
* one profile the normalizer writes.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/design.md#principled-representation The profile states facts in the MP4 file's own terms, such as ISO brands, the 16.16 and 2.30 fixed-point track matrix and ITU-T H.273 color code points, so the checker compares them directly with the probe without unit conversion.
|
|
12
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Only the facts the checker needs from the author are variable, and container and codec identity stay inside the checker because no profile may differ there.
|
|
13
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The literal color code points and brand are the sRGB and ISO base media identities the normalizer writes, shared through `AUTOMOVIE_MP4_SRGB_COLOUR` and the unity matrix constant, not values picked for a test file.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose names producer and checker and which fields vary; each member gives its unit, fixed-point form or code-point meaning.
|
|
15
|
-
*/
|
|
16
|
-
export interface IAutoMovieProductionVideoProfile {
|
|
17
|
-
/** Coded and displayed picture width in pixels. */
|
|
18
|
-
width: number;
|
|
19
|
-
/** Coded and displayed picture height in pixels. */
|
|
20
|
-
height: number;
|
|
21
|
-
/** Exact rational picture rate the sample timing must equal. */
|
|
22
|
-
frameRate: IAutoMovieProductionFrameRate;
|
|
23
|
-
/**
|
|
24
|
-
* Major brand, and the brands the file's compatible-brand list must
|
|
25
|
-
* include; other compatible brands are allowed.
|
|
26
|
-
*/
|
|
27
|
-
brands: {
|
|
28
|
-
major: "isom";
|
|
29
|
-
requiredCompatible: readonly string[];
|
|
30
|
-
};
|
|
31
|
-
/** Track display matrix in 16.16 and 2.30 fixed point; the unity matrix. */
|
|
32
|
-
trackMatrix: IAutoMovieProductionVideoProbe["trackMatrix"];
|
|
33
|
-
/** Pixel aspect; the profile admits square pixels only. */
|
|
34
|
-
pixelAspect: "square";
|
|
35
|
-
/**
|
|
36
|
-
* ITU-T H.273 color code points the track's `nclx` color box must declare:
|
|
37
|
-
* BT.709 primaries (1), sRGB transfer (13), BT.709 matrix (1), and full
|
|
38
|
-
* range.
|
|
39
|
-
*/
|
|
40
|
-
color: {
|
|
41
|
-
primaries: 1;
|
|
42
|
-
transfer: 13;
|
|
43
|
-
matrix: 1;
|
|
44
|
-
fullRange: true;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
1
|
+
export type { IAutoMovieProductionVideoProfile } from "@automovie/interface";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IAutoMovieAssertCaptureClockExpected, IAutoMovieAssertCaptureClockHost } from "@automovie/interface";
|
|
1
2
|
/**
|
|
2
3
|
* Refuse a capture page that is not ready or does not expose the commissioned
|
|
3
4
|
* clock, before any sound is prepared or pixel captured: the page must be
|
|
@@ -15,12 +16,4 @@
|
|
|
15
16
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
16
17
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 1 allocation site become the returned value or die with the call, so nothing grows.
|
|
17
18
|
*/
|
|
18
|
-
export declare function assertAutoMovieCaptureClock(host:
|
|
19
|
-
ready: boolean;
|
|
20
|
-
durationSeconds: number;
|
|
21
|
-
fps: number;
|
|
22
|
-
frameCount: number;
|
|
23
|
-
}, expected: {
|
|
24
|
-
durationSeconds: number;
|
|
25
|
-
fps: number;
|
|
26
|
-
}): void;
|
|
19
|
+
export declare function assertAutoMovieCaptureClock(host: IAutoMovieAssertCaptureClockHost, expected: IAutoMovieAssertCaptureClockExpected): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertAutoMovieCaptureClock.js","sourceRoot":"","sources":["../../src/delivery/assertAutoMovieCaptureClock.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"assertAutoMovieCaptureClock.js","sourceRoot":"","sources":["../../src/delivery/assertAutoMovieCaptureClock.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,qCACE,IAAsC,EACtC,QAA8C;IAE9C,IACE,IAAI,CAAC,KAAK,KAAK,IAAI;QACnB,IAAI,CAAC,eAAe,KAAK,QAAQ,CAAC,eAAe;QACjD,IAAI,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG;QACzB,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,GAAG;QACnD,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC;QAEtC,MAAM,IAAI,KAAK,CACb,kEAAkE,CACnE,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertAutoMovieCaptureClock.mjs","names":[],"sources":["../../src/delivery/assertAutoMovieCaptureClock.ts"],"sourcesContent":["/**\n * Refuse a capture page that is not ready or does not expose the commissioned\n * clock, before any sound is prepared or pixel captured: the page must be\n * ready, report the commissioned duration and frame rate, and count exactly\n * `durationSeconds * fps` frames, an integer. Readiness is no visual or\n * physical acceptance.\n *\n * @param host Values read from the capture page.\n * @param expected The commissioned duration and rate.\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Refuse a capture page that is not ready or does not expose the commissioned clock, before any sound is prepared or pixel captured: the page must be ready, report the commissioned duration and frame rate, and count exactly `durationSeconds * fps` frames, an integer) and documents parameters `host`, `expected` as stated in this comment.\n * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Refuse a capture page that is not ready or does not expose the commissioned clock, before any sound is prepared or pixel captured: the page must be ready, report the commissioned duration and frame rate, and count exactly `durationSeconds * fps` frames, an integer) directly over its typed inputs (`host`, `expected`) as a fixed number of statements with no loop or recursion in the body, delegating to `Number.isSafeInteger`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 12 lines and 1 top-level statements that reuses `Number.isSafeInteger` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `host`, `expected`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 1 allocation site (literals and constructed values). No speedup is claimed and none is measured.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 1 allocation site become the returned value or die with the call, so nothing grows.\n */\nexport function assertAutoMovieCaptureClock(\n host:
|
|
1
|
+
{"version":3,"file":"assertAutoMovieCaptureClock.mjs","names":[],"sources":["../../src/delivery/assertAutoMovieCaptureClock.ts"],"sourcesContent":["import type {\n IAutoMovieAssertCaptureClockExpected,\n IAutoMovieAssertCaptureClockHost,\n} from \"@automovie/interface\";\n\n/**\n * Refuse a capture page that is not ready or does not expose the commissioned\n * clock, before any sound is prepared or pixel captured: the page must be\n * ready, report the commissioned duration and frame rate, and count exactly\n * `durationSeconds * fps` frames, an integer. Readiness is no visual or\n * physical acceptance.\n *\n * @param host Values read from the capture page.\n * @param expected The commissioned duration and rate.\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Refuse a capture page that is not ready or does not expose the commissioned clock, before any sound is prepared or pixel captured: the page must be ready, report the commissioned duration and frame rate, and count exactly `durationSeconds * fps` frames, an integer) and documents parameters `host`, `expected` as stated in this comment.\n * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Refuse a capture page that is not ready or does not expose the commissioned clock, before any sound is prepared or pixel captured: the page must be ready, report the commissioned duration and frame rate, and count exactly `durationSeconds * fps` frames, an integer) directly over its typed inputs (`host`, `expected`) as a fixed number of statements with no loop or recursion in the body, delegating to `Number.isSafeInteger`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (1 throw site). Apart from structural 0, 1 and 2 the body uses no numeric literal.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 12 lines and 1 top-level statements that reuses `Number.isSafeInteger` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `host`, `expected`; the dominant cost is a fixed number of statements with no loop or recursion in the body, performed once per call with 1 allocation site (literals and constructed values). No speedup is claimed and none is measured.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 1 allocation site become the returned value or die with the call, so nothing grows.\n */\nexport function assertAutoMovieCaptureClock(\n host: IAutoMovieAssertCaptureClockHost,\n expected: IAutoMovieAssertCaptureClockExpected,\n): void {\n if (\n host.ready !== true ||\n host.durationSeconds !== expected.durationSeconds ||\n host.fps !== expected.fps ||\n host.frameCount !== host.durationSeconds * host.fps ||\n !Number.isSafeInteger(host.frameCount)\n )\n throw new Error(\n \"The capture page does not expose the complete commissioned clock\",\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAsBA,SAAgB,4BACd,MACA,UACM;CACN,IACE,KAAK,UAAU,QACf,KAAK,oBAAoB,SAAS,mBAClC,KAAK,QAAQ,SAAS,OACtB,KAAK,eAAe,KAAK,kBAAkB,KAAK,OAChD,CAAC,OAAO,cAAc,KAAK,UAAU,GAErC,MAAM,IAAI,MACR,kEACF;AACJ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IAutoMovieProductionPngProfile } from "./IAutoMovieProductionPngProfile.js";
|
|
1
|
+
import type { IAutoMovieAssertProductionPngPictureProps } from "@automovie/interface";
|
|
3
2
|
/**
|
|
4
3
|
* Refuse every difference between a role's PNG profile and the facts a PNG
|
|
5
4
|
* parser observed.
|
|
@@ -18,7 +17,4 @@ import type { IAutoMovieProductionPngProfile } from "./IAutoMovieProductionPngPr
|
|
|
18
17
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call judges one parsed picture against one profile, and different delivered PNGs are not equivalent work.
|
|
19
18
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the small comparison list exists during the call, and the function opens no file or task.
|
|
20
19
|
*/
|
|
21
|
-
export declare const assertProductionPngPicture: (props:
|
|
22
|
-
profile: IAutoMovieProductionPngProfile;
|
|
23
|
-
actual: IAutoMovieProductionPngPicture;
|
|
24
|
-
}) => void;
|
|
20
|
+
export declare const assertProductionPngPicture: (props: IAutoMovieAssertProductionPngPictureProps) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertProductionPngPicture.js","sourceRoot":"","sources":["../../src/delivery/assertProductionPngPicture.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"assertProductionPngPicture.js","sourceRoot":"","sources":["../../src/delivery/assertProductionPngPicture.ts"],"names":[],"mappings":";;;AAMA;;;;;;;;;;;;;;;;;GAiBG;AACI,MAAM,0BAA0B,GAE3B,CAAC,KAAgD,EAAQ,EAAE;IACrE,MAAM,QAAQ,GAAmC,KAAK,CAAC,OAAO,CAAC;IAC/D,MAAM,MAAM,GAAmC,KAAK,CAAC,MAAM,CAAC;IAC5D,MAAM,OAAO,GAAsC;QACjD,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;QACvC,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QAC1C,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;QAChD,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;QACvC,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;QACvC,CAAC,WAAW,EAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;QACnD,CAAC,YAAY,EAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QACtD,CAAC,aAAa,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;KAC1D,CAAC;IACF,IACE,MAAM,CAAC,WAAW,CAAC,IAAI,KAAK,UAAU;QACtC,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,WAAW,CAAC,CAAC;QAE7C,OAAO,CAAC,IAAI,CAAC;YACX,aAAa;YACb,QAAQ,CAAC,WAAW;YACpB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE;SAClD,CAAC,CAAC;IACL,MAAM,QAAQ,GAA2C,OAAO,CAAC,IAAI,CACnE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAA6B,EAAW,EAAE,CAC5D,MAAM,KAAK,QAAQ,CACtB,CAAC;IACF,IAAI,QAAQ,KAAK,SAAS;QACxB,MAAM,IAAI,KAAK,CACb,OAAO,QAAQ,CAAC,IAAI,wBAAwB,QAAQ,CAAC,CAAC,CAAC,cAAc,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,cAAc,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAC7H,CAAC;AACN,CAAC,CAAC;AAhCW,QAAA,0BAA0B,GAA1B,0BAA0B,CAgCrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertProductionPngPicture.mjs","names":[],"sources":["../../src/delivery/assertProductionPngPicture.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"assertProductionPngPicture.mjs","names":[],"sources":["../../src/delivery/assertProductionPngPicture.ts"],"sourcesContent":["import type {\n IAutoMovieAssertProductionPngPictureProps,\n IAutoMovieProductionPngPicture,\n IAutoMovieProductionPngProfile,\n} from \"@automovie/interface\";\n\n/**\n * Refuse every difference between a role's PNG profile and the facts a PNG\n * parser observed.\n *\n * Raster, bit depth, channel layout, alpha, interlace, color space and\n * orientation must equal the profile, and a declared physical pixel ratio must\n * be square; an absent ratio counts as square. The first difference, in that\n * order, throws an `Error` naming the role, the field, and the expected and\n * observed values.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Every compared field is a scalar compared by identity against the profile, and pixel aspect is judged by the ratio itself, `x === y`, because a PNG may declare square pixels with any equal pair of densities.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One ordered list of named comparisons is the whole check, so the error names the first failing field; the profile's raster rules stay in `resolveProductionPngProfile`, which built it.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The profile's `version` and `role` are not picture facts and are not compared, and no role relaxes a field.\n * @evidence contracts/development/common.md#meaningful-documentation The doc lists the compared fields, the pixel-aspect rule with its absent case, the order that decides the reported field, and the error contents.\n * @evidence contracts/development/implementation.md#efficient-algorithms The check compares a fixed set of eight or nine scalars in constant time, independent of the picture size, because the parser has already decoded the facts.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call judges one parsed picture against one profile, and different delivered PNGs are not equivalent work.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the small comparison list exists during the call, and the function opens no file or task.\n */\nexport const assertProductionPngPicture: (\n props: IAutoMovieAssertProductionPngPictureProps,\n) => void = (props: IAutoMovieAssertProductionPngPictureProps): void => {\n const expected: IAutoMovieProductionPngProfile = props.profile;\n const actual: IAutoMovieProductionPngPicture = props.actual;\n const entries: Array<[string, unknown, unknown]> = [\n [\"width\", expected.width, actual.width],\n [\"height\", expected.height, actual.height],\n [\"bitDepth\", expected.bitDepth, actual.bitDepth],\n [\"color\", expected.color, actual.color],\n [\"alpha\", expected.alpha, actual.alpha],\n [\"interlace\", expected.interlace, actual.interlace],\n [\"colorSpace\", expected.colorSpace, actual.colorSpace],\n [\"orientation\", expected.orientation, actual.orientation],\n ];\n if (\n actual.pixelAspect.kind === \"explicit\" &&\n actual.pixelAspect.x !== actual.pixelAspect.y\n )\n entries.push([\n \"pixelAspect\",\n expected.pixelAspect,\n `${actual.pixelAspect.x}:${actual.pixelAspect.y}`,\n ]);\n const mismatch: [string, unknown, unknown] | undefined = entries.find(\n ([, wanted, observed]: [string, unknown, unknown]): boolean =>\n wanted !== observed,\n );\n if (mismatch !== undefined)\n throw new Error(\n `PNG ${expected.role} profile mismatch at ${mismatch[0]}: expected ${String(mismatch[1])}, observed ${String(mismatch[2])}.`,\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBA,MAAa,8BAEA,UAA2D;CACtE,MAAM,WAA2C,MAAM;CACvD,MAAM,SAAyC,MAAM;CACrD,MAAM,UAA6C;EACjD;GAAC;GAAS,SAAS;GAAO,OAAO;EAAK;EACtC;GAAC;GAAU,SAAS;GAAQ,OAAO;EAAM;EACzC;GAAC;GAAY,SAAS;GAAU,OAAO;EAAQ;EAC/C;GAAC;GAAS,SAAS;GAAO,OAAO;EAAK;EACtC;GAAC;GAAS,SAAS;GAAO,OAAO;EAAK;EACtC;GAAC;GAAa,SAAS;GAAW,OAAO;EAAS;EAClD;GAAC;GAAc,SAAS;GAAY,OAAO;EAAU;EACrD;GAAC;GAAe,SAAS;GAAa,OAAO;EAAW;CAC1D;CACA,IACE,OAAO,YAAY,SAAS,cAC5B,OAAO,YAAY,MAAM,OAAO,YAAY,GAE5C,QAAQ,KAAK;EACX;EACA,SAAS;EACT,GAAG,OAAO,YAAY,EAAE,GAAG,OAAO,YAAY;CAChD,CAAC;CACH,MAAM,WAAmD,QAAQ,MAC9D,GAAG,QAAQ,cACV,WAAW,QACf;CACA,IAAI,aAAa,KAAA,GACf,MAAM,IAAI,MACR,OAAO,SAAS,KAAK,uBAAuB,SAAS,GAAG,aAAa,OAAO,SAAS,EAAE,EAAE,aAAa,OAAO,SAAS,EAAE,EAAE,EAC5H;AACJ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IAutoMovieProductionVideoProfile } from "./IAutoMovieProductionVideoProfile.js";
|
|
1
|
+
import type { IAutoMovieAssertProductionVideoProfileProps } from "@automovie/interface";
|
|
3
2
|
/**
|
|
4
3
|
* Refuse every presentation, timing or color fact of a probed H.264-in-MP4
|
|
5
4
|
* video that differs from its delivery profile.
|
|
@@ -24,7 +23,4 @@ import type { IAutoMovieProductionVideoProfile } from "./IAutoMovieProductionVid
|
|
|
24
23
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call judges one probe of one file, and the several callers check different files or the same file after it changed, so no earlier verdict is equivalent.
|
|
25
24
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The comparison list is the only allocation and dies with the call; the function opens no file, process or task.
|
|
26
25
|
*/
|
|
27
|
-
export declare const assertProductionVideoProfile: (props:
|
|
28
|
-
expected: IAutoMovieProductionVideoProfile;
|
|
29
|
-
actual: IAutoMovieProductionVideoProbe;
|
|
30
|
-
}) => void;
|
|
26
|
+
export declare const assertProductionVideoProfile: (props: IAutoMovieAssertProductionVideoProfileProps) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertProductionVideoProfile.js","sourceRoot":"","sources":["../../src/delivery/assertProductionVideoProfile.ts"],"names":[],"mappings":";;;AAAA,8CAA8D;AAQ9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"assertProductionVideoProfile.js","sourceRoot":"","sources":["../../src/delivery/assertProductionVideoProfile.ts"],"names":[],"mappings":";;;AAAA,8CAA8D;AAQ9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,MAAM,4BAA4B,GAE7B,CAAC,KAAkD,EAAQ,EAAE;IACvE,MAAM,QAAQ,GAAqC,KAAK,CAAC,QAAQ,CAAC;IAClE,MAAM,MAAM,GAAmC,KAAK,CAAC,MAAM,CAAC;IAC5D,MAAM,UAAU,GACd,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC;QACvC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,UAAU,GAAkC;QAChD,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS;QACnC,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ;KACrC,CAAC;IACF,MAAM,cAAc,GAClB,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;IACvD,MAAM,WAAW,GAAsC;QACrD,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC;QACtC,CAAC,OAAO,EAAE,MAA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AkC;YAClC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;SACtB,CAAC,CAAC;IACL,MAAM,QAAQ,GAA2C,WAAW,CAAC,IAAI,CACvE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAA6B,EAAW,EAAE,CAC5D,MAAM,KAAK,QAAQ,CACtB,CAAC;IACF,IAAI,QAAQ,KAAK,SAAS;QACxB,MAAM,IAAI,KAAK,CACb,6BAA6B,QAAQ,CAAC,CAAC,CAAC,cAAc,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,cAAc,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAC9G,CAAC;AACN,CAAC,CAAC;AAxIW,QAAA,4BAA4B,GAA5B,4BAA4B,CAwIvC;AAEF,8DAA8D;AAC9D,MAAM,aAAa,GAA+B,CAAC,KAAa,EAAW,EAAE,CAC3E,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertProductionVideoProfile.mjs","names":[],"sources":["../../src/delivery/assertProductionVideoProfile.ts"],"sourcesContent":["import { equalProductionFrameRates } from \"@automovie/engine\";\nimport type {\n IAutoMovieProductionFrameRate,\n IAutoMovieProductionVideoProbe,\n} from \"@automovie/interface\";\n\nimport type { IAutoMovieProductionVideoProfile } from \"./IAutoMovieProductionVideoProfile.js\";\n\n/**\n * Refuse every presentation, timing or color fact of a probed H.264-in-MP4\n * video that differs from its delivery profile.\n *\n * The file must be MP4 with H.264, the profile's major brand and every required\n * compatible brand, the profile raster as coded size and as 16.16 track display\n * size, and the unity track matrix. Its samples must number the probed frame\n * count with one positive constant duration, start at decode and composition\n * time zero, and run at exactly the profile's frame rate, and both runtimes,\n * media and movie, must equal the reported runtime. Pixels must be square, the\n * `nclx` color box must declare the profile's sRGB code points, and the edit\n * list must be empty or one full-length edit starting at media time zero. The\n * first difference throws an `Error` whose message starts with\n * `unsupported-video-profile.<field>` and names the expected and observed\n * values.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Each fact is compared exactly in the file's own integer units; the frame rate is compared as a reduced rational through `equalProductionFrameRates` on timescale over sample duration, and the sample clock is checked by name before that rate is derived, so a zero clock is reported as its field rather than as an arithmetic failure.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One ordered list of named comparisons, with conditional rows for brands, explicit pixel aspect, `nclx` fields and edits, is the whole check, so every normalizer, assembler and delivery validator applies the same profile and reports the same field name.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Container, codec, `nclx` and sRGB identities are the single delivery format the normalizer writes, an extra compatible brand is allowed because brands only advertise readers, and no file or caller is special-cased.\n * @evidence contracts/development/common.md#meaningful-documentation The doc lists every compared group, the timing and edit-list conditions, and the error format; the order of rows decides which field a multiply-wrong file reports.\n * @evidence contracts/development/implementation.md#efficient-algorithms Fixed scalar checks are constant work; required-brand membership costs the product of required and observed brand counts. Matrix serialization and any mismatched edit-list serialization depend on their lengths, which caller-supplied records do not cap here. No coded sample bytes are read.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call judges one probe of one file, and the several callers check different files or the same file after it changed, so no earlier verdict is equivalent.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The comparison list is the only allocation and dies with the call; the function opens no file, process or task.\n */\nexport const assertProductionVideoProfile: (props: {\n expected: IAutoMovieProductionVideoProfile;\n actual: IAutoMovieProductionVideoProbe;\n}) => void = (props: {\n /** Profile resolved from the deliverable's authored raster and rate. */\n expected: IAutoMovieProductionVideoProfile;\n\n /** Facts the MP4 probe observed in the file. */\n actual: IAutoMovieProductionVideoProbe;\n}): void => {\n const expected: IAutoMovieProductionVideoProfile = props.expected;\n const actual: IAutoMovieProductionVideoProbe = props.actual;\n const clockValid: boolean =\n positiveClock(actual.samples.timescale) &&\n positiveClock(actual.samples.duration);\n const actualRate: IAutoMovieProductionFrameRate = {\n numerator: actual.samples.timescale,\n denominator: actual.samples.duration,\n };\n const lastSampleTime: number =\n (actual.samples.count - 1) * actual.samples.duration;\n const comparisons: Array<[string, unknown, unknown]> = [\n [\"container\", \"mp4\", actual.container],\n [\"codec\", \"h264\", actual.codec],\n [\"brands.major\", expected.brands.major, actual.brands.major],\n [\"width\", expected.width, actual.width],\n [\"height\", expected.height, actual.height],\n [\"coded.width\", expected.width, actual.coded.width],\n [\"coded.height\", expected.height, actual.coded.height],\n [\n \"trackDisplay.width16_16\",\n expected.width * 65_536,\n actual.trackDisplay.width16_16,\n ],\n [\n \"trackDisplay.height16_16\",\n expected.height * 65_536,\n actual.trackDisplay.height16_16,\n ],\n [\n \"trackMatrix\",\n JSON.stringify(expected.trackMatrix),\n JSON.stringify(actual.trackMatrix),\n ],\n [\"samples.count\", actual.frameCount, actual.samples.count],\n [\"samples.duration\", true, positiveClock(actual.samples.duration)],\n [\"samples.timescale\", true, positiveClock(actual.samples.timescale)],\n [\n \"frameRate\",\n true,\n clockValid &&\n equalProductionFrameRates(expected.frameRate, actualRate) &&\n equalProductionFrameRates(actual.frameRate, actualRate),\n ],\n [\"samples.firstDts\", 0, actual.samples.firstDts],\n [\"samples.lastDts\", lastSampleTime, actual.samples.lastDts],\n [\"samples.firstCts\", 0, actual.samples.firstCts],\n [\"samples.lastCts\", lastSampleTime, actual.samples.lastCts],\n [\n \"presentation.movieTimescale\",\n true,\n actual.presentation.movieTimescale > 0,\n ],\n [\n \"presentation.mediaTimescale\",\n actual.samples.timescale,\n actual.presentation.mediaTimescale,\n ],\n [\n \"presentation.mediaDuration\",\n actual.samples.count * actual.samples.duration,\n actual.presentation.mediaDuration,\n ],\n [\n \"runtimeSeconds.media\",\n actual.presentation.mediaDuration / actual.presentation.mediaTimescale,\n actual.runtimeSeconds,\n ],\n [\n \"runtimeSeconds.movie\",\n actual.presentation.movieDuration / actual.presentation.movieTimescale,\n actual.runtimeSeconds,\n ],\n [\"color.container.kind\", \"nclx\", actual.color.container.kind],\n [\"color.resolved.kind\", \"srgb\", actual.color.resolved.kind],\n ];\n for (const brand of expected.brands.requiredCompatible)\n comparisons.push([\n `brands.compatible.${brand}`,\n true,\n actual.brands.compatible.includes(brand),\n ]);\n if (actual.pixelAspect.kind === \"explicit\")\n comparisons.push([\n \"pixelAspect\",\n actual.pixelAspect.hSpacing,\n actual.pixelAspect.vSpacing,\n ]);\n if (actual.color.container.kind === \"nclx\") {\n comparisons.push(\n [\n \"color.primaries\",\n expected.color.primaries,\n actual.color.container.primaries,\n ],\n [\n \"color.transfer\",\n expected.color.transfer,\n actual.color.container.transfer,\n ],\n [\"color.matrix\", expected.color.matrix, actual.color.container.matrix],\n [\n \"color.fullRange\",\n expected.color.fullRange,\n actual.color.container.fullRange,\n ],\n );\n }\n const edits: IAutoMovieProductionVideoProbe[\"presentation\"][\"edits\"] =\n actual.presentation.edits;\n if (\n edits.length !== 0 &&\n !(\n edits.length === 1 &&\n edits[0]!.mediaTime === 0 &&\n edits[0]!.mediaRateInteger === 1 &&\n edits[0]!.mediaRateFraction === 0 &&\n edits[0]!.segmentDuration === actual.presentation.movieDuration\n )\n )\n comparisons.push([\n \"presentation.edits\",\n \"none or one full zero-start edit\",\n JSON.stringify(edits),\n ]);\n const mismatch: [string, unknown, unknown] | undefined = comparisons.find(\n ([, wanted, observed]: [string, unknown, unknown]): boolean =>\n wanted !== observed,\n );\n if (mismatch !== undefined)\n throw new Error(\n `unsupported-video-profile.${mismatch[0]}: expected ${String(mismatch[1])}, observed ${String(mismatch[2])}.`,\n );\n};\n\n/** Whether a sample-clock term is a positive safe integer. */\nconst positiveClock: (value: number) => boolean = (value: number): boolean =>\n Number.isSafeInteger(value) && value > 0;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAa,gCAGC,UAMF;CACV,MAAM,WAA6C,MAAM;CACzD,MAAM,SAAyC,MAAM;CACrD,MAAM,aACJ,cAAc,OAAO,QAAQ,SAAS,KACtC,cAAc,OAAO,QAAQ,QAAQ;CACvC,MA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;;AAGA,MAAM,iBAA6C,UACjD,OAAO,cAAc,KAAK,KAAK,QAAQ"}
|
|
1
|
+
{"version":3,"file":"assertProductionVideoProfile.mjs","names":[],"sources":["../../src/delivery/assertProductionVideoProfile.ts"],"sourcesContent":["import { equalProductionFrameRates } from \"@automovie/engine\";\nimport type {\n IAutoMovieAssertProductionVideoProfileProps,\n IAutoMovieProductionFrameRate,\n IAutoMovieProductionVideoProbe,\n IAutoMovieProductionVideoProfile,\n} from \"@automovie/interface\";\n\n/**\n * Refuse every presentation, timing or color fact of a probed H.264-in-MP4\n * video that differs from its delivery profile.\n *\n * The file must be MP4 with H.264, the profile's major brand and every required\n * compatible brand, the profile raster as coded size and as 16.16 track display\n * size, and the unity track matrix. Its samples must number the probed frame\n * count with one positive constant duration, start at decode and composition\n * time zero, and run at exactly the profile's frame rate, and both runtimes,\n * media and movie, must equal the reported runtime. Pixels must be square, the\n * `nclx` color box must declare the profile's sRGB code points, and the edit\n * list must be empty or one full-length edit starting at media time zero. The\n * first difference throws an `Error` whose message starts with\n * `unsupported-video-profile.<field>` and names the expected and observed\n * values.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Each fact is compared exactly in the file's own integer units; the frame rate is compared as a reduced rational through `equalProductionFrameRates` on timescale over sample duration, and the sample clock is checked by name before that rate is derived, so a zero clock is reported as its field rather than as an arithmetic failure.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One ordered list of named comparisons, with conditional rows for brands, explicit pixel aspect, `nclx` fields and edits, is the whole check, so every normalizer, assembler and delivery validator applies the same profile and reports the same field name.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Container, codec, `nclx` and sRGB identities are the single delivery format the normalizer writes, an extra compatible brand is allowed because brands only advertise readers, and no file or caller is special-cased.\n * @evidence contracts/development/common.md#meaningful-documentation The doc lists every compared group, the timing and edit-list conditions, and the error format; the order of rows decides which field a multiply-wrong file reports.\n * @evidence contracts/development/implementation.md#efficient-algorithms Fixed scalar checks are constant work; required-brand membership costs the product of required and observed brand counts. Matrix serialization and any mismatched edit-list serialization depend on their lengths, which caller-supplied records do not cap here. No coded sample bytes are read.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call judges one probe of one file, and the several callers check different files or the same file after it changed, so no earlier verdict is equivalent.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The comparison list is the only allocation and dies with the call; the function opens no file, process or task.\n */\nexport const assertProductionVideoProfile: (\n props: IAutoMovieAssertProductionVideoProfileProps,\n) => void = (props: IAutoMovieAssertProductionVideoProfileProps): void => {\n const expected: IAutoMovieProductionVideoProfile = props.expected;\n const actual: IAutoMovieProductionVideoProbe = props.actual;\n const clockValid: boolean =\n positiveClock(actual.samples.timescale) &&\n positiveClock(actual.samples.duration);\n const actualRate: IAutoMovieProductionFrameRate = {\n numerator: actual.samples.timescale,\n denominator: actual.samples.duration,\n };\n const lastSampleTime: number =\n (actual.samples.count - 1) * actual.samples.duration;\n const comparisons: Array<[string, unknown, unknown]> = [\n [\"container\", \"mp4\", actual.container],\n [\"codec\", \"h264\", actual.codec],\n [\"brands.major\", expected.brands.major, actual.brands.major],\n [\"width\", expected.width, actual.width],\n [\"height\", expected.height, actual.height],\n [\"coded.width\", expected.width, actual.coded.width],\n [\"coded.height\", expected.height, actual.coded.height],\n [\n \"trackDisplay.width16_16\",\n expected.width * 65_536,\n actual.trackDisplay.width16_16,\n ],\n [\n \"trackDisplay.height16_16\",\n expected.height * 65_536,\n actual.trackDisplay.height16_16,\n ],\n [\n \"trackMatrix\",\n JSON.stringify(expected.trackMatrix),\n JSON.stringify(actual.trackMatrix),\n ],\n [\"samples.count\", actual.frameCount, actual.samples.count],\n [\"samples.duration\", true, positiveClock(actual.samples.duration)],\n [\"samples.timescale\", true, positiveClock(actual.samples.timescale)],\n [\n \"frameRate\",\n true,\n clockValid &&\n equalProductionFrameRates(expected.frameRate, actualRate) &&\n equalProductionFrameRates(actual.frameRate, actualRate),\n ],\n [\"samples.firstDts\", 0, actual.samples.firstDts],\n [\"samples.lastDts\", lastSampleTime, actual.samples.lastDts],\n [\"samples.firstCts\", 0, actual.samples.firstCts],\n [\"samples.lastCts\", lastSampleTime, actual.samples.lastCts],\n [\n \"presentation.movieTimescale\",\n true,\n actual.presentation.movieTimescale > 0,\n ],\n [\n \"presentation.mediaTimescale\",\n actual.samples.timescale,\n actual.presentation.mediaTimescale,\n ],\n [\n \"presentation.mediaDuration\",\n actual.samples.count * actual.samples.duration,\n actual.presentation.mediaDuration,\n ],\n [\n \"runtimeSeconds.media\",\n actual.presentation.mediaDuration / actual.presentation.mediaTimescale,\n actual.runtimeSeconds,\n ],\n [\n \"runtimeSeconds.movie\",\n actual.presentation.movieDuration / actual.presentation.movieTimescale,\n actual.runtimeSeconds,\n ],\n [\"color.container.kind\", \"nclx\", actual.color.container.kind],\n [\"color.resolved.kind\", \"srgb\", actual.color.resolved.kind],\n ];\n for (const brand of expected.brands.requiredCompatible)\n comparisons.push([\n `brands.compatible.${brand}`,\n true,\n actual.brands.compatible.includes(brand),\n ]);\n if (actual.pixelAspect.kind === \"explicit\")\n comparisons.push([\n \"pixelAspect\",\n actual.pixelAspect.hSpacing,\n actual.pixelAspect.vSpacing,\n ]);\n if (actual.color.container.kind === \"nclx\") {\n comparisons.push(\n [\n \"color.primaries\",\n expected.color.primaries,\n actual.color.container.primaries,\n ],\n [\n \"color.transfer\",\n expected.color.transfer,\n actual.color.container.transfer,\n ],\n [\"color.matrix\", expected.color.matrix, actual.color.container.matrix],\n [\n \"color.fullRange\",\n expected.color.fullRange,\n actual.color.container.fullRange,\n ],\n );\n }\n const edits: IAutoMovieProductionVideoProbe[\"presentation\"][\"edits\"] =\n actual.presentation.edits;\n if (\n edits.length !== 0 &&\n !(\n edits.length === 1 &&\n edits[0]!.mediaTime === 0 &&\n edits[0]!.mediaRateInteger === 1 &&\n edits[0]!.mediaRateFraction === 0 &&\n edits[0]!.segmentDuration === actual.presentation.movieDuration\n )\n )\n comparisons.push([\n \"presentation.edits\",\n \"none or one full zero-start edit\",\n JSON.stringify(edits),\n ]);\n const mismatch: [string, unknown, unknown] | undefined = comparisons.find(\n ([, wanted, observed]: [string, unknown, unknown]): boolean =>\n wanted !== observed,\n );\n if (mismatch !== undefined)\n throw new Error(\n `unsupported-video-profile.${mismatch[0]}: expected ${String(mismatch[1])}, observed ${String(mismatch[2])}.`,\n );\n};\n\n/** Whether a sample-clock term is a positive safe integer. */\nconst positiveClock: (value: number) => boolean = (value: number): boolean =>\n Number.isSafeInteger(value) && value > 0;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAa,gCAEA,UAA6D;CACxE,MAAM,WAA6C,MAAM;CACzD,MAAM,SAAyC,MAAM;CACrD,MAAM,aACJ,cAAc,OAAO,QAAQ,SAAS,KACtC,cAAc,OAAO,QAAQ,QAAQ;CACvC,MAAM,aAA4C;EAChD,WAAW,OAAO,QAAQ;EAC1B,aAAa,OAAO,QAAQ;CAC9B;CACA,MAAM,kBACH,OAAO,QAAQ,QAAQ,KAAK,OAAO,QAAQ;CAC9C,MAAM,cAAiD;EACrD;GAAC;GAAa;GAAO,OAAO;EAAS;EACrC;GAAC;GAAS;GAAQ,OAAO;EAAK;EAC9B;GAAC;GAAgB,SAAS,OAAO;GAAO,OAAO,OAAO;EAAK;EAC3D;GAAC;GAAS,SAAS;GAAO,OAAO;EAAK;EACtC;GAAC;GAAU,SAAS;GAAQ,OAAO;EAAM;EACzC;GAAC;GAAe,SAAS;GAAO,OAAO,MAAM;EAAK;EAClD;GAAC;GAAgB,SAAS;GAAQ,OAAO,MAAM;EAAM;EACrD;GACE;GACA,SAAS,QAAQ;GACjB,OAAO,aAAa;EACtB;EACA;GACE;GACA,SAAS,SAAS;GAClB,OAAO,aAAa;EACtB;EACA;GACE;GACA,KAAK,UAAU,SAAS,WAAW;GACnC,KAAK,UAAU,OAAO,WAAW;EACnC;EACA;GAAC;GAAiB,OAAO;GAAY,OAAO,QAAQ;EAAK;EACzD;GAAC;GA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;EACA,SAAS,MAAM;EACf,OAAO,MAAM,UAAU;CACzB,CACF;CAEF,MAAM,QACJ,OAAO,aAAa;CACtB,IACE,MAAM,WAAW,KACjB,EACE,MAAM,WAAW,KACjB,MAAM,EAAE,CAAE,cAAc,KACxB,MAAM,EAAE,CAAE,qBAAqB,KAC/B,MAAM,EAAE,CAAE,sBAAsB,KAChC,MAAM,EAAE,CAAE,oBAAoB,OAAO,aAAa,gBAGpD,YAAY,KAAK;EACf;EACA;EACA,KAAK,UAAU,KAAK;CACtB,CAAC;CACH,MAAM,WAAmD,YAAY,MAClE,GAAG,QAAQ,cACV,WAAW,QACf;CACA,IAAI,aAAa,KAAA,GACf,MAAM,IAAI,MACR,6BAA6B,SAAS,GAAG,aAAa,OAAO,SAAS,EAAE,EAAE,aAAa,OAAO,SAAS,EAAE,EAAE,EAC7G;AACJ;;AAGA,MAAM,iBAA6C,UACjD,OAAO,cAAc,KAAK,KAAK,QAAQ"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IAutoMovieDecodedFrameAudit } from "@automovie/interface";
|
|
1
2
|
/**
|
|
2
3
|
* Admit a decoder's framemd5 listing against a commissioned half-open frame
|
|
3
4
|
* clock: exactly one stream-zero time base, exactly `expectedFrames` video
|
|
@@ -19,38 +20,4 @@
|
|
|
19
20
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
20
21
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 15 allocation sites become the returned value or die with the call, so nothing grows.
|
|
21
22
|
*/
|
|
22
|
-
export declare function auditAutoMovieDecodedFrames(text: string, expectedFrames: number, fps: number):
|
|
23
|
-
/**
|
|
24
|
-
* Companion types of {@link auditAutoMovieDecodedFrames}.
|
|
25
|
-
*
|
|
26
|
-
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Companion types of ) and documents 2 documented members as stated in this comment.
|
|
27
|
-
* @evidence contracts/development/design.md#principled-representation Represents Companion types of : companion namespace of 2 members (`IFrame`, `IResult`); units and frames named in its text: frame, bytes, seconds, frames. It has no optional member, so no absent-value state combines with another.
|
|
28
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `auditAutoMovieDecodedFrames` in packages/render/src/delivery/auditAutoMovieDecodedFrames.ts; its surface is the 2 members listed and the text shows 3 other files naming it, mostly packages/render (2), test (1), so no member is declared for a presumed future need.
|
|
29
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.
|
|
30
|
-
*/
|
|
31
|
-
export declare namespace auditAutoMovieDecodedFrames {
|
|
32
|
-
/** One decoded frame. */
|
|
33
|
-
interface IFrame {
|
|
34
|
-
/** Decoder stream index. */
|
|
35
|
-
stream: number;
|
|
36
|
-
/** Presentation timestamp, time-base ticks. */
|
|
37
|
-
pts: number;
|
|
38
|
-
/** Presentation duration, time-base ticks. */
|
|
39
|
-
duration: number;
|
|
40
|
-
/** Lowercase MD5 of the decoded image bytes. */
|
|
41
|
-
md5: string;
|
|
42
|
-
}
|
|
43
|
-
/** An admitted decoded stream. */
|
|
44
|
-
interface IResult {
|
|
45
|
-
/** Decoded images. */
|
|
46
|
-
frameCount: number;
|
|
47
|
-
/** Commissioned duration, seconds. */
|
|
48
|
-
durationSeconds: number;
|
|
49
|
-
/** Decoder time base. */
|
|
50
|
-
timeBase: readonly [number, number];
|
|
51
|
-
/** Every frame in output order. */
|
|
52
|
-
frames: IFrame[];
|
|
53
|
-
/** Indices of frames identical to their predecessor. */
|
|
54
|
-
repeatedImages: number[];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
23
|
+
export declare function auditAutoMovieDecodedFrames(text: string, expectedFrames: number, fps: number): IAutoMovieDecodedFrameAudit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditAutoMovieDecodedFrames.js","sourceRoot":"","sources":["../../src/delivery/auditAutoMovieDecodedFrames.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"auditAutoMovieDecodedFrames.js","sourceRoot":"","sources":["../../src/delivery/auditAutoMovieDecodedFrames.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qCACE,IAAY,EACZ,cAAsB,EACtB,GAAW;IAEX,IACE,CAAC,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC;QACrC,cAAc,GAAG,CAAC;QAClB,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC;QAC1B,GAAG,GAAG,CAAC;QAEP,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;IACJ,MAAM,MAAM,GAA6B,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAa,EAAE,CAAC;IACpC,IAAI,QAA+C,CAAC;IACpD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxC,MAAM,OAAO,GAAW,IAAI,CAAC,IAAI,EAAE,CAAC;QACpC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;YAAE,SAAS;QACnC,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,MAAM,KAAK,GAA2B,0BAA0B,CAAC,IAAI,CACnE,OAAO,CACR,CAAC;YACF,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,IAAI,QAAQ,KAAK,SAAS;oBACxB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;gBACjD,MAAM,SAAS,GAAW,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC3C,MAAM,WAAW,GAAW,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7C,IACE,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,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eAAe,EAAE,cAAc,GAAG,GAAG;QACrC,QAAQ;QACR,MAAM;QACN,cAAc;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditAutoMovieDecodedFrames.mjs","names":[],"sources":["../../src/delivery/auditAutoMovieDecodedFrames.ts"],"sourcesContent":["/**\n * Admit a decoder's framemd5 listing against a commissioned half-open frame\n * clock: exactly one stream-zero time base, exactly `expectedFrames` video\n * rows, and frame `i` presenting precisely `[i / fps, (i + 1) / fps)` in that\n * time base, checked by exact BigInt cross products. Adjacent identical\n * images are reported as holds, never rejected. Malformed rows, gaps,\n * overlaps, reordering, excess frames and a nonzero start are refused. This\n * proves presentation continuity of decoded bytes, not motion or quality.\n *\n * @param text Complete FFmpeg framemd5 output.\n * @param expectedFrames Commissioned frame count, a positive safe integer.\n * @param fps Commissioned frames per second, a positive safe integer.\n * @returns The admitted frames and holds.\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Admit a decoder's framemd5 listing against a commissioned half-open frame clock: exactly one stream-zero time base, exactly `expectedFrames` video rows, and frame `i` presenting precisely `[i / fps, (i + 1) / fps)` in that time base, checked by exact BigInt cross products) and documents parameters `text`, `expectedFrames`, `fps`, the returned value as stated in this comment.\n * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Admit a decoder's framemd5 listing against a commissioned half-open frame clock: exactly one stream-zero time base, exactly `expectedFrames` video rows, and frame `i` presenting precisely `[i / fps, (i + 1) / fps)` in that time base, checked by exact BigInt cross products) directly over its typed inputs (`text`, `expectedFrames`, `fps`) as nested iteration of depth 2 (for-of over text.split(/\\r?\\n/u); every over [numerator, denominator]; map over trimmed .split(\",\")), delegating to `Number.isSafeInteger`, `text.split`, `line.trim`, `trimmed.startsWith`, `Number`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (8 throw sites). Beyond structural 0, 1 and 2 the body uses the literals 6, 5, whose basis this answer does not independently establish and a reviewer must confirm.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 90 lines and 9 top-level statements that reuses `Number.isSafeInteger`, `text.split`, `line.trim`, `trimmed.startsWith`, `Number` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The body contains 0 `any`, 0 type assertion(s), 10 non-null assertion(s); these are the remaining shortcuts and are not justified here.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `text`, `expectedFrames`, `fps`; the dominant cost is nested iteration of depth 2 (for-of over text.split(/\\r?\\n/u); every over [numerator, denominator]; map over trimmed .split(\",\")), performed once per call with 15 allocation sites (literals and constructed values). No speedup is claimed and none is measured.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 15 allocation sites become the returned value or die with the call, so nothing grows.\n */\nexport function auditAutoMovieDecodedFrames(\n text: string,\n expectedFrames: number,\n fps: number,\n): auditAutoMovieDecodedFrames.IResult {\n if (\n !Number.isSafeInteger(expectedFrames) ||\n expectedFrames < 1 ||\n !Number.isSafeInteger(fps) ||\n fps < 1\n )\n throw new Error(\n \"A decoded audit requires a positive integral frame count and rate\",\n );\n const frames: auditAutoMovieDecodedFrames.IFrame[] = [];\n const repeatedImages: number[] = [];\n let timeBase: readonly [number, number] | undefined;\n for (const line of text.split(/\\r?\\n/u)) {\n const trimmed: string = line.trim();\n if (trimmed.length === 0) continue;\n if (trimmed.startsWith(\"#\")) {\n const match: RegExpExecArray | null = /^#tb 0:\\s*(\\d+)\\/(\\d+)$/u.exec(\n trimmed,\n );\n if (match !== null) {\n if (timeBase !== undefined)\n throw new Error(\"Duplicate decoded time base\");\n const numerator: number = Number(match[1]);\n const denominator: number = Number(match[2]);\n if (\n ![numerator, denominator].every(\n (v: number): boolean => Number.isSafeInteger(v) && v > 0,\n )\n )\n throw new Error(\"Invalid decoded time base\");\n timeBase = [numerator, denominator];\n }\n continue;\n }\n const fields: string[] = trimmed\n .split(\",\")\n .map((f: string): string => f.trim());\n if (\n fields.length !== 6 ||\n !fields.slice(0, 5).every((f: string): boolean => /^-?\\d+$/u.test(f)) ||\n !/^[a-f\\d]{32}$/iu.test(fields[5]!)\n )\n throw new Error(\"Malformed decoded video row\");\n const [stream, dts, pts, duration, bytes]: number[] = fields\n .slice(0, 5)\n .map(Number);\n if (\n ![stream, dts, pts, duration, bytes].every(\n (v: number | undefined): boolean =>\n v !== undefined && Number.isSafeInteger(v),\n ) ||\n stream !== 0 ||\n dts !== pts ||\n pts! < 0 ||\n duration! <= 0 ||\n bytes! <= 0\n )\n throw new Error(\"Invalid decoded video timing or raster extent\");\n if (frames.length >= expectedFrames)\n throw new Error(\"Decoded video contains excess frames\");\n const md5: string = fields[5]!.toLowerCase();\n if (frames.at(-1)?.md5 === md5) repeatedImages.push(frames.length);\n frames.push({ stream: stream!, pts: pts!, duration: duration!, md5 });\n }\n if (timeBase === undefined || frames.length !== expectedFrames)\n throw new Error(\n \"Decoded video is missing its time base or commissioned frames\",\n );\n const scale: bigint = BigInt(timeBase[0]) * BigInt(fps);\n frames.forEach(\n (frame: auditAutoMovieDecodedFrames.IFrame, index: number): void => {\n if (\n BigInt(frame.pts) * scale !== BigInt(index) * BigInt(timeBase![1]) ||\n (BigInt(frame.pts) + BigInt(frame.duration)) * scale !==\n BigInt(index + 1) * BigInt(timeBase![1])\n )\n throw new Error(\n `Decoded frame ${index} does not cover its exact presentation interval`,\n );\n },\n );\n return {\n frameCount: frames.length,\n durationSeconds: expectedFrames / fps,\n timeBase,\n frames,\n repeatedImages,\n };\n}\n/**\n * Companion types of {@link auditAutoMovieDecodedFrames}.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Companion types of ) and documents 2 documented members as stated in this comment.\n * @evidence contracts/development/design.md#principled-representation Represents Companion types of : companion namespace of 2 members (`IFrame`, `IResult`); units and frames named in its text: frame, bytes, seconds, frames. It has no optional member, so no absent-value state combines with another.\n * @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `auditAutoMovieDecodedFrames` in packages/render/src/delivery/auditAutoMovieDecodedFrames.ts; its surface is the 2 members listed and the text shows 3 other files naming it, mostly packages/render (2), test (1), so no member is declared for a presumed future need.\n * @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.\n */\nexport namespace auditAutoMovieDecodedFrames {\n /** One decoded frame. */\n export interface IFrame {\n /** Decoder stream index. */\n stream: number;\n\n /** Presentation timestamp, time-base ticks. */\n pts: number;\n\n /** Presentation duration, time-base ticks. */\n duration: number;\n\n /** Lowercase MD5 of the decoded image bytes. */\n md5: string;\n }\n\n /** An admitted decoded stream. */\n export interface IResult {\n /** Decoded images. */\n frameCount: number;\n\n /** Commissioned duration, seconds. */\n durationSeconds: number;\n\n /** Decoder time base. */\n timeBase: readonly [number, number];\n\n /** Every frame in output order. */\n frames: IFrame[];\n\n /** Indices of frames identical to their predecessor. */\n repeatedImages: number[];\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,4BACd,MACA,gBACA,KACqC;CACrC,IACE,CAAC,OAAO,cAAc,cAAc,KACpC,iBAAiB,KACjB,CAAC,OAAO,cAAc,GAAG,KACzB,MAAM,GAEN,MAAM,IAAI,MACR,mEACF;CACF,MAAM,SAA+C,CAAC;CACtD,MAAM,iBAA2B,CAAC;CAClC,IAAI;CACJ,KAAK,MAAM,QAAQ,KAAK,MAAM,QAAQ,GAAG;EACvC,MAAM,UAAkB,KAAK,KAAK;EAClC,IAAI,QAAQ,WAAW,GAAG;EAC1B,IAAI,QAAQ,WAAW,GAAG,GAAG;GAC3B,MAAM,QAAgC,2BAA2B,KAC/D,OACF;GACA,IAAI,UAAU,MAAM;I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GAAG;CACtD,OAAO,SACJ,OAA2C,UAAwB;EAClE,IACE,OAAO,MAAM,GAAG,IAAI,UAAU,OAAO,KAAK,IAAI,OAAO,SAAU,EAAE,MAChE,OAAO,MAAM,GAAG,IAAI,OAAO,MAAM,QAAQ,KAAK,UAC7C,OAAO,QAAQ,CAAC,IAAI,OAAO,SAAU,EAAE,GAEzC,MAAM,IAAI,MACR,iBAAiB,MAAM,gDACzB;CACJ,CACF;CACA,OAAO;EACL,YAAY,OAAO;EACnB,iBAAiB,iBAAiB;EAClC;EACA;EACA;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"auditAutoMovieDecodedFrames.mjs","names":[],"sources":["../../src/delivery/auditAutoMovieDecodedFrames.ts"],"sourcesContent":["import type {\n IAutoMovieDecodedFrame,\n IAutoMovieDecodedFrameAudit,\n} from \"@automovie/interface\";\n\n/**\n * Admit a decoder's framemd5 listing against a commissioned half-open frame\n * clock: exactly one stream-zero time base, exactly `expectedFrames` video\n * rows, and frame `i` presenting precisely `[i / fps, (i + 1) / fps)` in that\n * time base, checked by exact BigInt cross products. Adjacent identical\n * images are reported as holds, never rejected. Malformed rows, gaps,\n * overlaps, reordering, excess frames and a nonzero start are refused. This\n * proves presentation continuity of decoded bytes, not motion or quality.\n *\n * @param text Complete FFmpeg framemd5 output.\n * @param expectedFrames Commissioned frame count, a positive safe integer.\n * @param fps Commissioned frames per second, a positive safe integer.\n * @returns The admitted frames and holds.\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Admit a decoder's framemd5 listing against a commissioned half-open frame clock: exactly one stream-zero time base, exactly `expectedFrames` video rows, and frame `i` presenting precisely `[i / fps, (i + 1) / fps)` in that time base, checked by exact BigInt cross products) and documents parameters `text`, `expectedFrames`, `fps`, the returned value as stated in this comment.\n * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Admit a decoder's framemd5 listing against a commissioned half-open frame clock: exactly one stream-zero time base, exactly `expectedFrames` video rows, and frame `i` presenting precisely `[i / fps, (i + 1) / fps)` in that time base, checked by exact BigInt cross products) directly over its typed inputs (`text`, `expectedFrames`, `fps`) as nested iteration of depth 2 (for-of over text.split(/\\r?\\n/u); every over [numerator, denominator]; map over trimmed .split(\",\")), delegating to `Number.isSafeInteger`, `text.split`, `line.trim`, `trimmed.startsWith`, `Number`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (8 throw sites). Beyond structural 0, 1 and 2 the body uses the literals 6, 5, whose basis this answer does not independently establish and a reviewer must confirm.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 90 lines and 9 top-level statements that reuses `Number.isSafeInteger`, `text.split`, `line.trim`, `trimmed.startsWith`, `Number` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The body contains 0 `any`, 0 type assertion(s), 10 non-null assertion(s); these are the remaining shortcuts and are not justified here.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `text`, `expectedFrames`, `fps`; the dominant cost is nested iteration of depth 2 (for-of over text.split(/\\r?\\n/u); every over [numerator, denominator]; map over trimmed .split(\",\")), performed once per call with 15 allocation sites (literals and constructed values). No speedup is claimed and none is measured.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 15 allocation sites become the returned value or die with the call, so nothing grows.\n */\nexport function auditAutoMovieDecodedFrames(\n text: string,\n expectedFrames: number,\n fps: number,\n): IAutoMovieDecodedFrameAudit {\n if (\n !Number.isSafeInteger(expectedFrames) ||\n expectedFrames < 1 ||\n !Number.isSafeInteger(fps) ||\n fps < 1\n )\n throw new Error(\n \"A decoded audit requires a positive integral frame count and rate\",\n );\n const frames: IAutoMovieDecodedFrame[] = [];\n const repeatedImages: number[] = [];\n let timeBase: readonly [number, number] | undefined;\n for (const line of text.split(/\\r?\\n/u)) {\n const trimmed: string = line.trim();\n if (trimmed.length === 0) continue;\n if (trimmed.startsWith(\"#\")) {\n const match: RegExpExecArray | null = /^#tb 0:\\s*(\\d+)\\/(\\d+)$/u.exec(\n trimmed,\n );\n if (match !== null) {\n if (timeBase !== undefined)\n throw new Error(\"Duplicate decoded time base\");\n const numerator: number = Number(match[1]);\n const denominator: number = Number(match[2]);\n if (\n ![numerator, denominator].every(\n (v: number): boolean => Number.isSafeInteger(v) && v > 0,\n )\n )\n throw new Error(\"Invalid decoded time base\");\n timeBase = [numerator, denominator];\n }\n continue;\n }\n const fields: string[] = trimmed\n .split(\",\")\n .map((f: string): string => f.trim());\n if (\n fields.length !== 6 ||\n !fields.slice(0, 5).every((f: string): boolean => /^-?\\d+$/u.test(f)) ||\n !/^[a-f\\d]{32}$/iu.test(fields[5]!)\n )\n throw new Error(\"Malformed decoded video row\");\n const [stream, dts, pts, duration, bytes]: number[] = fields\n .slice(0, 5)\n .map(Number);\n if (\n ![stream, dts, pts, duration, bytes].every(\n (v: number | undefined): boolean =>\n v !== undefined && Number.isSafeInteger(v),\n ) ||\n stream !== 0 ||\n dts !== pts ||\n pts! < 0 ||\n duration! <= 0 ||\n bytes! <= 0\n )\n throw new Error(\"Invalid decoded video timing or raster extent\");\n if (frames.length >= expectedFrames)\n throw new Error(\"Decoded video contains excess frames\");\n const md5: string = fields[5]!.toLowerCase();\n if (frames.at(-1)?.md5 === md5) repeatedImages.push(frames.length);\n frames.push({ stream: stream!, pts: pts!, duration: duration!, md5 });\n }\n if (timeBase === undefined || frames.length !== expectedFrames)\n throw new Error(\n \"Decoded video is missing its time base or commissioned frames\",\n );\n const scale: bigint = BigInt(timeBase[0]) * BigInt(fps);\n frames.forEach((frame: IAutoMovieDecodedFrame, index: number): void => {\n if (\n BigInt(frame.pts) * scale !== BigInt(index) * BigInt(timeBase![1]) ||\n (BigInt(frame.pts) + BigInt(frame.duration)) * scale !==\n BigInt(index + 1) * BigInt(timeBase![1])\n )\n throw new Error(\n `Decoded frame ${index} does not cover its exact presentation interval`,\n );\n });\n return {\n frameCount: frames.length,\n durationSeconds: expectedFrames / fps,\n timeBase,\n frames,\n repeatedImages,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,4BACd,MACA,gBACA,KAC6B;CAC7B,IACE,CAAC,OAAO,cAAc,cAAc,KACpC,iBAAiB,KACjB,CAAC,OAAO,cAAc,GAAG,KACzB,MAAM,GAEN,MAAM,IAAI,MACR,mEACF;CACF,MAAM,SAAmC,CAAC;CAC1C,MAAM,iBAA2B,CAAC;CAClC,IAAI;CACJ,KAAK,MAAM,QAAQ,KAAK,MAAM,QAAQ,GAAG;EACvC,MAAM,UAAkB,KAAK,KAAK;EAClC,IAAI,QAAQ,WAAW,GAAG;EAC1B,IAAI,QAAQ,WAAW,GAAG,GAAG;GAC3B,MAAM,QAAgC,2BAA2B,KAC/D,OACF;GACA,IAAI,UAAU,MAAM;IAClB,IAAI,aAAa,KAAA,GACf,MAAM,IAAI,MAAM,6BAA6B;IAC/C,MAAM,YAAoB,OAAO,MAAM,EAAE;IACzC,MAAM,cAAsB,OAAO,MAAM,EAAE;IAC3C,IACE,CAAC,CAAC,WAAW,WAAW,CAAC,CAAC,OACvB,MAAuB,OAAO,cAAc,CAAC,KAAK,IAAI,CACzD,GAEA,MAAM,IAAI,MAAM,2BAA2B;IAC7C,WAAW,CAAC,WAAW,WAAW;GACpC;GACA;EACF;EACA,MAAM,SAAmB,QACtB,MAAM,GAAG,CAAC,CACV,KAAK,MAAsB,EAAE,KAAK,CAAC;EACtC,IACE,OAAO,WAAW,KAClB,CAAC,OAAO,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,MAAuB,WAAW,KAAK,CAAC,CAAC,KACpE,CAAC,kBAAkB,KAAK,OAAO,EAAG,GAElC,MAAM,IAAI,MAAM,6BAA6B;EAC/C,MAAM,CAAC,QAAQ,KAAK,KAAK,UAAU,SAAmB,OACnD,MAAM,GAAG,CAAC,CAAC,CACX,IAAI,MAAM;EACb,IACE,CAAC;GAAC;GAAQ;GAAK;GAAK;GAAU;EAAK,CAAC,CAAC,OAClC,MACC,MAAM,KAAA,KAAa,OAAO,cAAc,CAAC,CAC7C,KACA,WAAW,KACX,QAAQ,OACR,MAAO,KACP,YAAa,KACb,SAAU,GAEV,MAAM,IAAI,MAAM,+CAA+C;EACjE,IAAI,OAAO,UAAU,gBACnB,MAAM,IAAI,MAAM,sCAAsC;EACxD,MAAM,MAAc,OAAO,EAAE,CAAE,YAAY;EAC3C,IAAI,OAAO,GAAG,EAAE,CAAC,EAAE,QAAQ,KAAK,eAAe,KAAK,OAAO,MAAM;EACjE,OAAO,KAAK;GAAU;GAAc;GAAgB;GAAW;EAAI,CAAC;CACtE;CACA,IAAI,aAAa,KAAA,KAAa,OAAO,WAAW,gBAC9C,MAAM,IAAI,MACR,+DACF;CACF,MAAM,QAAgB,OAAO,SAAS,EAAE,IAAI,OAAO,GAAG;CACtD,OAAO,SAAS,OAA+B,UAAwB;EACrE,IACE,OAAO,MAAM,GAAG,IAAI,UAAU,OAAO,KAAK,IAAI,OAAO,SAAU,EAAE,MAChE,OAAO,MAAM,GAAG,IAAI,OAAO,MAAM,QAAQ,KAAK,UAC7C,OAAO,QAAQ,CAAC,IAAI,OAAO,SAAU,EAAE,GAEzC,MAAM,IAAI,MACR,iBAAiB,MAAM,gDACzB;CACJ,CAAC;CACD,OAAO;EACL,YAAY,OAAO;EACnB,iBAAiB,iBAAiB;EAClC;EACA;EACA;CACF;AACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IAutoMovieAuditEncodedPresentationExpected } from "@automovie/interface";
|
|
1
2
|
/**
|
|
2
3
|
* Check an encoded delivery's probe against its commissioned profile: exactly
|
|
3
4
|
* one H.264 video stream of the raster and integer frame rate and one AAC
|
|
@@ -17,11 +18,4 @@
|
|
|
17
18
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
18
19
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 5 allocation sites become the returned value or die with the call, so nothing grows.
|
|
19
20
|
*/
|
|
20
|
-
export declare function auditAutoMovieEncodedPresentation(probe: unknown, expected:
|
|
21
|
-
/** Whole seconds, positive. */ durationSeconds: number;
|
|
22
|
-
/** Raster width, pixels. */ width: number;
|
|
23
|
-
/** Raster height, pixels. */ height: number;
|
|
24
|
-
/** Frames per second, an integer. */ fps: number;
|
|
25
|
-
/** Audio samples per second; 48000 by default. */ sampleRate?: number;
|
|
26
|
-
/** Audio channels; 2 by default. */ channels?: number;
|
|
27
|
-
}): void;
|
|
21
|
+
export declare function auditAutoMovieEncodedPresentation(probe: unknown, expected: IAutoMovieAuditEncodedPresentationExpected): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditAutoMovieEncodedPresentation.js","sourceRoot":"","sources":["../../src/delivery/auditAutoMovieEncodedPresentation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"auditAutoMovieEncodedPresentation.js","sourceRoot":"","sources":["../../src/delivery/auditAutoMovieEncodedPresentation.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,2CACE,KAAc,EACd,QAAoD;IAEpD,IACE,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,QAAQ;QACzB,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC;QAC/C,QAAQ,CAAC,eAAe,GAAG,CAAC;QAE5B,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,MAAM,OAAO,GAAa,KAAiC,CAAC,OAAO,CAAC;IACpE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,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,MAAM,CAAC,WAAW,CAAC,CAAC;QACpD,IACE,IAAI,KAAK,IAAI;YACb,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;YACxB,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;YAC/B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAE,CAAC,GAAG,EAAE;YACrB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAE,CAAC,GAAG,EAAE;YACrB,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAE,CAAC;gBACjC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAE,CAAC;YAErD,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;IACN,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditAutoMovieEncodedPresentation.mjs","names":[],"sources":["../../src/delivery/auditAutoMovieEncodedPresentation.ts"],"sourcesContent":["/**\n * Check an encoded delivery's probe against its commissioned profile: exactly\n * one H.264 video stream of the raster and integer frame rate and one AAC\n * audio stream of the sample rate and channel count, each starting at zero\n * and presenting exactly the commissioned whole seconds in its own rational\n * time base, so AAC end padding never passes for film duration. Refuses\n * missing or extra streams, wrong codecs, rasters or rates, and truncated or\n * extended presentations. It cannot establish listening or picture quality.\n *\n * @param probe Unmodified FFprobe `-show_streams -of json` output, parsed.\n * @param expected The commissioned profile.\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Check an encoded delivery's probe against its commissioned profile: exactly one H.264 video stream of the raster and integer frame rate and one AAC audio stream of the sample rate and channel count, each starting at zero and presenting exactly the commissioned whole seconds in its own rational time base, so AAC end padding never passes for film duration) and documents parameters `probe`, `expected` as stated in this comment.\n * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Check an encoded delivery's probe against its commissioned profile: exactly one H.264 video stream of the raster and integer frame rate and one AAC audio stream of the sample rate and channel count, each starting at zero and presenting exactly the commissioned whole seconds in its own rational time base, so AAC end padding never passes for film duration) directly over its typed inputs (`probe`, `expected`) as 4 sequential passes (map over streams; find over records; find over records), delegating to `Number.isSafeInteger`, `Array.isArray`, `streams.map`, `records.find`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (5 throw sites). Beyond structural 0, 1 and 2 the body uses the literal 48000, whose basis this answer does not independently establish and a reviewer must confirm.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 57 lines and 8 top-level statements that reuses `Number.isSafeInteger`, `Array.isArray`, `streams.map`, `records.find`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The body contains 0 `any`, 2 type assertion(s), 4 non-null assertion(s); these are the remaining shortcuts and are not justified here.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `probe`, `expected`; the dominant cost is 4 sequential passes (map over streams; find over records; find over records), performed once per call with 5 allocation sites (literals and constructed values). No speedup is claimed and none is measured.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 5 allocation sites become the returned value or die with the call, so nothing grows.\n */\nexport function auditAutoMovieEncodedPresentation(\n probe: unknown,\n expected:
|
|
1
|
+
{"version":3,"file":"auditAutoMovieEncodedPresentation.mjs","names":[],"sources":["../../src/delivery/auditAutoMovieEncodedPresentation.ts"],"sourcesContent":["import type { IAutoMovieAuditEncodedPresentationExpected } from \"@automovie/interface\";\n\n/**\n * Check an encoded delivery's probe against its commissioned profile: exactly\n * one H.264 video stream of the raster and integer frame rate and one AAC\n * audio stream of the sample rate and channel count, each starting at zero\n * and presenting exactly the commissioned whole seconds in its own rational\n * time base, so AAC end padding never passes for film duration. Refuses\n * missing or extra streams, wrong codecs, rasters or rates, and truncated or\n * extended presentations. It cannot establish listening or picture quality.\n *\n * @param probe Unmodified FFprobe `-show_streams -of json` output, parsed.\n * @param expected The commissioned profile.\n * @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Check an encoded delivery's probe against its commissioned profile: exactly one H.264 video stream of the raster and integer frame rate and one AAC audio stream of the sample rate and channel count, each starting at zero and presenting exactly the commissioned whole seconds in its own rational time base, so AAC end padding never passes for film duration) and documents parameters `probe`, `expected` as stated in this comment.\n * @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Check an encoded delivery's probe against its commissioned profile: exactly one H.264 video stream of the raster and integer frame rate and one AAC audio stream of the sample rate and channel count, each starting at zero and presenting exactly the commissioned whole seconds in its own rational time base, so AAC end padding never passes for film duration) directly over its typed inputs (`probe`, `expected`) as 4 sequential passes (map over streams; find over records; find over records), delegating to `Number.isSafeInteger`, `Array.isArray`, `streams.map`, `records.find`, `String`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (5 throw sites). Beyond structural 0, 1 and 2 the body uses the literal 48000, whose basis this answer does not independently establish and a reviewer must confirm.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 57 lines and 8 top-level statements that reuses `Number.isSafeInteger`, `Array.isArray`, `streams.map`, `records.find`, `String` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The body contains 0 `any`, 2 type assertion(s), 4 non-null assertion(s); these are the remaining shortcuts and are not justified here.\n * @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `probe`, `expected`; the dominant cost is 4 sequential passes (map over streams; find over records; find over records), performed once per call with 5 allocation sites (literals and constructed values). No speedup is claimed and none is measured.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 5 allocation sites become the returned value or die with the call, so nothing grows.\n */\nexport function auditAutoMovieEncodedPresentation(\n probe: unknown,\n expected: IAutoMovieAuditEncodedPresentationExpected,\n): void {\n if (\n probe === null ||\n typeof probe !== \"object\" ||\n !Number.isSafeInteger(expected.durationSeconds) ||\n expected.durationSeconds < 1\n )\n throw new Error(\"Invalid encoded presentation audit input\");\n const streams: unknown = (probe as Record<string, unknown>).streams;\n if (!Array.isArray(streams) || streams.length !== 2)\n throw new Error(\"Delivery requires exactly a video and an audio stream\");\n const records: Record<string, unknown>[] = streams.map(\n (stream: unknown): Record<string, unknown> => {\n if (stream === null || typeof stream !== \"object\")\n throw new Error(\"Invalid encoded stream\");\n return stream as Record<string, unknown>;\n },\n );\n const video: Record<string, unknown> | undefined = records.find(\n (s: Record<string, unknown>): boolean => s.codec_type === \"video\",\n );\n const audio: Record<string, unknown> | undefined = records.find(\n (s: Record<string, unknown>): boolean => s.codec_type === \"audio\",\n );\n if (\n !video ||\n !audio ||\n video.codec_name !== \"h264\" ||\n video.width !== expected.width ||\n video.height !== expected.height ||\n video.avg_frame_rate !== `${expected.fps}/1` ||\n audio.codec_name !== \"aac\" ||\n audio.sample_rate !== String(expected.sampleRate ?? 48000) ||\n audio.channels !== (expected.channels ?? 2)\n )\n throw new Error(\n \"Encoded presentation differs from the commissioned media profile\",\n );\n for (const stream of records) {\n const base: RegExpExecArray | null = /^(\\d+)\\/(\\d+)$/u.exec(\n String(stream.time_base),\n );\n const duration: string = String(stream.duration_ts);\n if (\n base === null ||\n !/^\\d+$/u.test(duration) ||\n Number(stream.start_time) !== 0 ||\n BigInt(base[1]!) < 1n ||\n BigInt(base[2]!) < 1n ||\n BigInt(duration) * BigInt(base[1]!) !==\n BigInt(expected.durationSeconds) * BigInt(base[2]!)\n )\n throw new Error(\n \"Encoded stream has a nonzero start or an inexact commissioned duration\",\n );\n }\n}\n"],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
1
|
-
import type {
|
|
1
|
+
import type { IAutoMoviePlanVideoEncodingProps, IAutoMoviePlanVideoEncodingResult } from "@automovie/interface";
|
|
2
2
|
/**
|
|
3
3
|
* Admit a drawn video's exact clock and raster and plan the one FFmpeg run that encodes its frames, with an optional soundtrack.
|
|
4
4
|
*
|
|
@@ -14,20 +14,4 @@ import type { IAutoMovieRenderSpec } from "@automovie/interface";
|
|
|
14
14
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure plan of one request.
|
|
15
15
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a count and strings and keeps nothing.
|
|
16
16
|
*/
|
|
17
|
-
export declare function planAutoMovieVideoEncoding(props:
|
|
18
|
-
/** The output raster, rate and encoding. */
|
|
19
|
-
spec: IAutoMovieRenderSpec;
|
|
20
|
-
/** Running time in seconds. */
|
|
21
|
-
durationSeconds: number;
|
|
22
|
-
/** Folder of the frame files, named by `frameName`. */
|
|
23
|
-
frameDir: string;
|
|
24
|
-
/** The video file FFmpeg writes. */
|
|
25
|
-
outputPath: string;
|
|
26
|
-
/** A complete soundtrack to mux, or null for none. */
|
|
27
|
-
audio: string | null;
|
|
28
|
-
}): {
|
|
29
|
-
/** Frames the clock holds. */
|
|
30
|
-
frameCount: number;
|
|
31
|
-
/** FFmpeg's arguments. */
|
|
32
|
-
args: string[];
|
|
33
|
-
};
|
|
17
|
+
export declare function planAutoMovieVideoEncoding(props: IAutoMoviePlanVideoEncodingProps): IAutoMoviePlanVideoEncodingResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planAutoMovieVideoEncoding.js","sourceRoot":"","sources":["../../src/delivery/planAutoMovieVideoEncoding.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"planAutoMovieVideoEncoding.js","sourceRoot":"","sources":["../../src/delivery/planAutoMovieVideoEncoding.ts"],"names":[],"mappings":";;;AAMA,oDAA8C;AAC9C,wDAAkD;AAElD,wIAAwI;AACxI,M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