mirror of
https://github.com/storytold/effectcraft.git
synced 2026-12-04 16:01:18 -05:00
eb630e222c
* #4368: Add / Match / Remove Grain gain After Effects' missing controls Shared grain groups (crates/effects/src/grain_shared.rs), all functional: - Application > Channel Balance (9 per-channel shadow/midtone/highlight multipliers) - Sampling > Source Frame, Noise Sample Points 1-10 (used by Sampling Process "Manual"), Match Grain's per-point Intensity 1-10 - Blend with Original: Amount, Combine Match and Mask Using, Blur Matte, Color Matching (RGB / Hue / Chroma, tolerance, softness, invert) and Masking Layer (layer, mode, size fit) Remove Grain: Channel Noise Reduction (R/G/B), Chroma Suppression, Noise Size Bias, Clean Solid Areas. New instances follow After Effects' Effect Controls order; saved instances keep their stored order and get the new controls with defaults that render unchanged (Source Frame -1 = the frame being rendered for projects saved before it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #4368: grain sampling review fixes - Manual Noise Sample Points skip boxes whose surround reaches transparent pixels (the automatic rule), and each kept box keeps its own point's Intensity. - Remove Grain measures a fixed Source Frame that is the current frame before Temporal Filtering, as other frames are measured; Source Frame -1 keeps the old measurement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #4368: Match Grain's historical Masks choice no longer samples the unmasked Source Historical mask reads aren't available, so layer_sample_frame returns None for the Masks choice and the caller falls back to the current-frame layer_masks read. Source and Effects & Masks historical reads are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #4368: Masks at a historical Source Frame; legacy Roto Brush keys with grain above Match Grain's Masks choice at a historical Source Frame now samples the layer with its masks as they are at that frame: EffectHost gains layer_masks_at (default None, the current-frame fallback), and the renderer's FxHost implements it like layer_masks at another time. Roto Brush Input Keys saved by 0.24 hash the effects above the brush. Opening an old project adds the grain effects' 89 new controls and Manual to Sampling Process, so the legacy text now leaves the added controls out while they hold the value an old project gets (Source Frame -1 via legacy_default) and restores Sampling Process's 0.24 options. The ADDED_SINCE_0_24 mechanism is taken as-is from #4374 (with an Added::Legacy variant and a POPUPS_0_24 table added). Tests: grain_shared historical Masks test, render layer_masks_at_reads_the_masks_of_that_time, legacy.rs unit tests and an analysis_signature test on an old project with grain above a frozen brush (fixture grain-0.24.json written by the pre-#4368 code). That last test is #[ignore]d: its 0.24 key derivation did not reproduce the base fixture's key in a local run. Not compiled locally after the final edits; CI is the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #4368: un-ignore the grain legacy Roto Brush key test The test reproduced 0.24's Roto Brush Input Key from the fixture as opened, but the fixture's 3D Camera Tracker (above the brush) holds a stand-in Solve that 0.24 didn't have when it made the key: the first edit clears it (camera_track::invalidate), and only then does the legacy text give ROTO_INPUT_0_24. The derivation now adds a render queue item first, as the fixture's own test does, and the test runs again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: FredApps <FredApps@users.noreply.github.com>