EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Merge GPU colour effects into M12.7 (docs/effects.md regenerated: GPU badges)
Brandon Thomasea3e98387650
diff --cc crates/effects/src/lib.rsindex 1ebecb977,b5a1c9d22..34519d5b7--- a/crates/effects/src/lib.rs+++ b/crates/effects/src/lib.rs@@@ -656,31 -641,17 +656,42 @@@ pub const GPU_EFFECTS: &[&str] = &"ec.color.exposure","ec.channel.invert","ec.distort.transform",+ "ec.distort.turbulentdisplace",+ "ec.distort.displacementmap",+ "ec.distort.wavewarp",+ "ec.distort.ripple",+ "ec.distort.twirl",+ "ec.distort.bulge",+ "ec.distort.cclens",+ "ec.distort.meshwarp",+ "ec.stylize.mosaic",+ "ec.stylize.findedges",+ "ec.stylize.emboss",+ // Blur, transition and generate family (effectcraft-gpu `fx_generate`).+ "ec.blur.radial",+ "ec.blur.cameralens",+ "ec.blur.ccradialfast",+ "ec.transition.venetian",+ "ec.transition.linearwipe",+ "ec.transition.radialwipe",+ "ec.transition.gradientwipe",+ "ec.generate.cellpattern",+ "ec.generate.checkerboard",+ "ec.generate.grid",+ "ec.generate.fourcolor",+ "ec.noise.noise",+ "ec.noise.addgrain",+ // effectcraft-gpu fx_color+ "ec.color.colorbalance",+ "ec.color.vibrance",+ "ec.color.lumetri",+ "ec.color.blackwhite",+ "ec.color.tritone",+ "ec.color.colorama",+ "ec.color.channelmixer",+ "ec.color.selectivecolor",+ "ec.key.linearcolor",+ "ec.keying.keylight",];/// Effects whose output depends on [`EffectCtx::time`] directly (not only through animateddiff --cc crates/gpu/src/lib.rsindex 603877f05,ce8724601..2241560b6--- a/crates/gpu/src/lib.rs+++ b/crates/gpu/src/lib.rs@@@ -161,8 -150,4 +161,10 @@@ mod tests_adjust#[cfg(test)]mod tests_adv3d;#[cfg(test)]- mod tests_fx_distort;+ mod tests_fx_color;+#[cfg(test)]- mod tests_particles;++mod tests_fx_distort;+#[cfg(test)]+mod tests_fx_generate;++#[cfg(test)]++mod tests_particles;diff --cc docs/effects.mdindex a69f91b67,dd479f0bb..eb6d9b00a--- a/docs/effects.md+++ b/docs/effects.md@@@ -5,7 -5,7 +5,7 @@@EffectCraft ships 303 effects with 2434 parameters in total, grouped into the same categories as the Effects & Presets panel. Every effect is our own implementation, written from public behaviour descriptions and standard image-processing literature. Parameter names, order, popup options, units, defaults and ranges follow the reference application so that projects, expressions and muscle memory carry over.- - **GPU**: 37 effects also run on the GPU compositor with identical results.-- **GPU**: 34 effects also run on the GPU compositor with identical results.++- **GPU**: 58 effects also run on the GPU compositor with identical results.- **32**: 303 effects process 32-bit float (HDR, overbright) pixels without clamping.- **Status**: 261 implemented in full, 42 partial (what is missing is listed).@@@ -131,13 -131,13 +131,13 @@@ Effects are addressed by id (`ec.<categ| Effect | Id | Params | GPU | 32 | Status ||---|---|---:|:-:|:-:|---|| Bezier Warp | `ec.distort.bezierwarp` | 13 | | 32 | Implemented |--| Bulge | `ec.distort.bulge` | 6 | | 32 | Implemented |++| Bulge | `ec.distort.bulge` | 6 | GPU | 32 | Implemented || CC Bend It | `ec.distort.ccbendit` | 4 | | 32 | Implemented || CC Bender | `ec.distort.ccbender` | 5 | | 32 | Implemented || CC Blobbylize | `ec.distort.ccblobbylize` | 15 | | 32 | Implemented || CC Flo Motion | `ec.distort.ccflomotion` | 7 | | 32 | Implemented || CC Griddler | `ec.distort.ccgriddler` | 5 | | 32 | Implemented |--| CC Lens | `ec.distort.cclens` | 3 | | 32 | Implemented |++| CC Lens | `ec.distort.cclens` | 3 | GPU | 32 | Implemented || CC Page Turn | `ec.distort.ccpageturn` | 7 | | 32 | Implemented || CC Power Pin | `ec.distort.ccpowerpin` | 10 | | 32 | Implemented || CC Ripple Pulse | `ec.distort.ccripplepulse` | 5 | | 32 | Implemented |@@@ -148,27 -148,27 +148,27 @@@| CC Tiler | `ec.distort.cctiler` | 3 | | 32 | Implemented || Corner Pin | `ec.distort.cornerpin` | 4 | | 32 | Implemented || Detail-preserving Upscale | `ec.distort.upscale` | 4 | | 32 | Implemented |--| Displacement Map | `ec.distort.displacementmap` | 8 | | 32 | Implemented |++| Displacement Map | `ec.distort.displacementmap` | 8 | GPU | 32 | Implemented || Liquify | `ec.distort.liquify` | 12 | | 32 | Implemented || Magnify | `ec.distort.magnify` | 10 | | 32 | Implemented |--| Mesh Warp | `ec.distort.meshwarp` | 3 | | 32 | Implemented |++| Mesh Warp | `ec.distort.meshwarp` | 3 | GPU | 32 | Implemented || Mirror | `ec.distort.mirror` | 2 | | 32 | Implemented || Offset | `ec.distort.offset` | 2 | | 32 | Implemented || Optics Compensation | `ec.distort.opticscompensation` | 5 | | 32 | Partial: no Optimal Pixels || Polar Coordinates | `ec.distort.polar` | 2 | | 32 | Implemented || Puppet | `ec.distort.puppet` | 1 | | 32 | Implemented || Reshape | `ec.distort.reshape` | 6 | | 32 | Partial: no correspondence points |--| Ripple | `ec.distort.ripple` | 7 | | 32 | Implemented |++| Ripple | `ec.distort.ripple` | 7 | GPU | 32 | Implemented || Rolling Shutter Repair | `ec.distort.rollingshutterrepair` | 5 | | 32 | Partial: Pixel Motion Detail has no effect || Smear | `ec.distort.smear` | 8 | | 32 | Implemented || Spherize | `ec.distort.spherize` | 2 | | 32 | Implemented || Transform | `ec.distort.transform` | 10 | GPU | 32 | Partial: no shutter-angle motion blur |--| Turbulent Displace | `ec.distort.turbulentdisplace` | 11 | | 32 | Partial: no locked pinning variants |--| Twirl | `ec.distort.twirl` | 3 | | 32 | Implemented |++| Turbulent Displace | `ec.distort.turbulentdisplace` | 11 | GPU | 32 | Partial: no locked pinning variants |++| Twirl | `ec.distort.twirl` | 3 | GPU | 32 | Implemented || Twirl (Legacy) | `ec.distort.twirllegacy` | 3 | | 32 | Implemented || Warp | `ec.distort.warp` | 5 | | 32 | Implemented || Warp Stabilizer | `ec.distort.warpstabilizer` | 20 | | 32 | Implemented |--| Wave Warp | `ec.distort.wavewarp` | 7 | | 32 | Implemented |++| Wave Warp | `ec.distort.wavewarp` | 7 | GPU | 32 | Implemented |## Expression Controls@@@ -353,10 -353,10 +353,10 @@@| CC Vignette | `ec.stylize.ccvignette` | 4 | | 32 | Implemented || Cartoon | `ec.stylize.cartoon` | 11 | | 32 | Partial: no Edge Enhancement || Color Emboss | `ec.stylize.coloremboss` | 4 | | 32 | Implemented |--| Emboss | `ec.stylize.emboss` | 4 | | 32 | Implemented |--| Find Edges | `ec.stylize.findedges` | 2 | | 32 | Implemented |++| Emboss | `ec.stylize.emboss` | 4 | GPU | 32 | Implemented |++| Find Edges | `ec.stylize.findedges` | 2 | GPU | 32 | Implemented || Glow | `ec.stylize.glow` | 13 | GPU | 32 | Partial: no Glow Operation or arbitrary colour map |--| Mosaic | `ec.stylize.mosaic` | 3 | | 32 | Implemented |++| Mosaic | `ec.stylize.mosaic` | 3 | GPU | 32 | Implemented || Motion Tile | `ec.stylize.motiontile` | 8 | | 32 | Implemented || Posterize | `ec.stylize.posterize` | 1 | | 32 | Implemented || Roughen Edges | `ec.stylize.roughenedges` | 13 | | 32 | Implemented |