EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Merge M13.9 gpu noise, blurs and time (fx_noise)
Brandon Thomas6cbb6bfb933a
diff --cc crates/gpu/src/effects.rsindex f7dc25ed0,d07ca5993..553443027--- a/crates/gpu/src/effects.rs+++ b/crates/gpu/src/effects.rs@@@ -117,9 -117,7 +117,10 @@@ fn apply(e: &mut Enc, id: &str, ctx: &E"ec.perspective.dropshadow" => drop_shadow(e, ctx, b),"ec.distort.transform" => transform(e, ctx, b),"ec.color.curves" => curves(e, ctx, b),+ "ec.color.huesaturation" if !effectcraft_effects::huesat_ranges_identity(ctx) => crate::fx_tone::hue_saturation(e, ctx, b),+ "ec.color.levels" if !effectcraft_effects::levels_channels_identity(ctx) => crate::fx_tone::levels(e, ctx, b),+ "ec.channel.invert" if (4..=11).contains(&ctx.params.e("channel")) => crate::fx_tone::invert(e, ctx, b),+ "ec.noise.fractal" if crate::fx_noise::fractal_extra(ctx) => crate::fx_noise::fractal(e, ctx, b, false),_ if id.starts_with("ec.control.") => Some(b),_ if crate::fx_color::IDS.contains(&id) => crate::fx_color::apply(e, id, ctx, b),_ if crate::fx_distort::IDS.contains(&id) => crate::fx_distort::apply(e, id, ctx, b),diff --cc docs/effects.mdindex e35ae5f6f,072e21b52..2cacb2f6c--- a/docs/effects.md+++ b/docs/effects.md@@@ -5,7 -5,7 +5,7 @@@EffectCraft ships 306 effects with 3009 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**: 59 effects also run on the GPU compositor with identical results.-- **GPU**: 76 effects also run on the GPU compositor with identical results.++- **GPU**: 118 effects also run on the GPU compositor with identical results.- **32**: 306 effects process 32-bit float (HDR, overbright) pixels without clamping.- **Status**: 306 implemented in full, 0 partial (what is missing is listed).@@@ -67,64 -67,64 +67,64 @@@ Effects are addressed by id (`ec.<categ| Effect | Id | Params | GPU | 32 | Status ||---|---|---:|:-:|:-:|---|--| Arithmetic | `ec.channel.arithmetic` | 5 | | 32 | Implemented |--| Blend | `ec.channel.blend` | 4 | | 32 | Implemented |++| Arithmetic | `ec.channel.arithmetic` | 5 | GPU | 32 | Implemented |++| Blend | `ec.channel.blend` | 4 | GPU | 32 | Implemented || CC Composite | `ec.channel.cccomposite` | 3 | | 32 | Implemented |--| Calculations | `ec.channel.calculations` | 9 | | 32 | Implemented |--| Channel Combiner | `ec.channel.combiner` | 6 | | 32 | Implemented |--| Compound Arithmetic | `ec.channel.compoundarithmetic` | 6 | | 32 | Implemented |++| Calculations | `ec.channel.calculations` | 9 | GPU | 32 | Implemented |++| Channel Combiner | `ec.channel.combiner` | 6 | GPU | 32 | Implemented |++| Compound Arithmetic | `ec.channel.compoundarithmetic` | 6 | GPU | 32 | Implemented || Invert | `ec.channel.invert` | 2 | GPU | 32 | Implemented |- | Minimax | `ec.channel.minimax` | 5 | | 32 | Implemented |- | Remove Color Matting | `ec.channel.removecolormatting` | 2 | | 32 | Implemented |- | Set Channels | `ec.channel.setchannels` | 9 | | 32 | Implemented |- | Set Matte | `ec.channel.setmatte` | 6 | | 32 | Implemented |- | Shift Channels | `ec.channel.shiftchannels` | 4 | | 32 | Implemented |- | Solid Composite | `ec.channel.solidcomposite` | 4 | | 32 | Implemented |+ | Minimax | `ec.channel.minimax` | 5 | GPU | 32 | Implemented |-| Remove Color Matting | `ec.channel.removecolormatting` | 2 | | 32 | Implemented |-| Set Channels | `ec.channel.setchannels` | 9 | | 32 | Implemented |-| Set Matte | `ec.channel.setmatte` | 6 | | 32 | Implemented |-| Shift Channels | `ec.channel.shiftchannels` | 4 | | 32 | Implemented |-| Solid Composite | `ec.channel.solidcomposite` | 4 | | 32 | Implemented |++| Remove Color Matting | `ec.channel.removecolormatting` | 2 | GPU | 32 | Implemented |++| Set Channels | `ec.channel.setchannels` | 9 | GPU | 32 | Implemented |++| Set Matte | `ec.channel.setmatte` | 6 | GPU | 32 | Implemented |++| Shift Channels | `ec.channel.shiftchannels` | 4 | GPU | 32 | Implemented |++| Solid Composite | `ec.channel.solidcomposite` | 4 | GPU | 32 | Implemented |## Color Correction| Effect | Id | Params | GPU | 32 | Status ||---|---|---:|:-:|:-:|---|--| Auto Color | `ec.color.autocolor` | 6 | | 32 | Implemented |--| Auto Contrast | `ec.color.autocontrast` | 5 | | 32 | Implemented |--| Auto Levels | `ec.color.autolevels` | 5 | | 32 | Implemented |++| Auto Color | `ec.color.autocolor` | 6 | GPU | 32 | Implemented |++| Auto Contrast | `ec.color.autocontrast` | 5 | GPU | 32 | Implemented |++| Auto Levels | `ec.color.autolevels` | 5 | GPU | 32 | Implemented || Black & White | `ec.color.blackwhite` | 8 | GPU | 32 | Implemented || Brightness & Contrast | `ec.color.brightnesscontrast` | 3 | GPU | 32 | Implemented |--| Broadcast Colors | `ec.color.broadcast` | 3 | | 32 | Implemented |--| CC Color Neutralizer | `ec.color.cccolorneutralizer` | 11 | | 32 | Implemented |--| CC Color Offset | `ec.color.cccoloroffset` | 4 | | 32 | Implemented |--| CC Kernel | `ec.color.cckernel` | 12 | | 32 | Implemented |--| CC Toner | `ec.color.cctoner` | 7 | | 32 | Implemented |--| Change Color | `ec.color.changecolor` | 9 | | 32 | Implemented |--| Change to Color | `ec.color.changetocolor` | 9 | | 32 | Implemented |++| Broadcast Colors | `ec.color.broadcast` | 3 | GPU | 32 | Implemented |++| CC Color Neutralizer | `ec.color.cccolorneutralizer` | 11 | GPU | 32 | Implemented |++| CC Color Offset | `ec.color.cccoloroffset` | 4 | GPU | 32 | Implemented |++| CC Kernel | `ec.color.cckernel` | 12 | GPU | 32 | Implemented |++| CC Toner | `ec.color.cctoner` | 7 | GPU | 32 | Implemented |++| Change Color | `ec.color.changecolor` | 9 | GPU | 32 | Implemented |++| Change to Color | `ec.color.changetocolor` | 9 | GPU | 32 | Implemented || Channel Mixer | `ec.color.channelmixer` | 13 | GPU | 32 | Implemented || Color Balance | `ec.color.colorbalance` | 10 | GPU | 32 | Implemented |--| Color Balance (HLS) | `ec.color.colorbalancehls` | 3 | | 32 | Implemented |++| Color Balance (HLS) | `ec.color.colorbalancehls` | 3 | GPU | 32 | Implemented || Color Link | `ec.color.colorlink` | 6 | | 32 | Implemented || Color Stabilizer | `ec.color.colorstabilizer` | 6 | | 32 | Implemented || Colorama | `ec.color.colorama` | 20 | GPU | 32 | Implemented || Curves | `ec.color.curves` | 0 | GPU | 32 | Implemented |--| Equalize | `ec.color.equalize` | 2 | | 32 | Implemented |++| Equalize | `ec.color.equalize` | 2 | GPU | 32 | Implemented || Exposure | `ec.color.exposure` | 14 | GPU | 32 | Implemented |--| Gamma/Pedestal/Gain | `ec.color.gammapedestalgain` | 10 | | 32 | Implemented |++| Gamma/Pedestal/Gain | `ec.color.gammapedestalgain` | 10 | GPU | 32 | Implemented || Hue/Saturation | `ec.color.huesaturation` | 50 | GPU | 32 | Implemented |--| Leave Color | `ec.color.leavecolor` | 5 | | 32 | Implemented |++| Leave Color | `ec.color.leavecolor` | 5 | GPU | 32 | Implemented || Levels | `ec.color.levels` | 36 | GPU | 32 | Implemented |--| Levels (Individual Controls) | `ec.color.levelsic` | 27 | | 32 | Implemented |++| Levels (Individual Controls) | `ec.color.levelsic` | 27 | GPU | 32 | Implemented || Lumetri Color | `ec.color.lumetri` | 66 | GPU | 32 | Implemented || OCIO CDL Transform | `ec.color.ociocdl` | 12 | | 32 | Implemented || OCIO Color Space Transform | `ec.color.ociocolorspace` | 7 | | 32 | Implemented || OCIO Display Transform | `ec.color.ociodisplay` | 9 | | 32 | Implemented || OCIO File Transform | `ec.color.ociofile` | 4 | | 32 | Implemented || OCIO Look Transform | `ec.color.ociolook` | 6 | | 32 | Implemented |--| PS Arbitrary Map | `ec.color.psarbitrarymap` | 2 | | 32 | Implemented |--| Photo Filter | `ec.color.photofilter` | 4 | | 32 | Implemented |++| PS Arbitrary Map | `ec.color.psarbitrarymap` | 2 | GPU | 32 | Implemented |++| Photo Filter | `ec.color.photofilter` | 4 | GPU | 32 | Implemented || Selective Color | `ec.color.selectivecolor` | 38 | GPU | 32 | Implemented |--| Shadow/Highlight | `ec.color.shadowhighlight` | 14 | | 32 | Implemented |++| Shadow/Highlight | `ec.color.shadowhighlight` | 14 | GPU | 32 | Implemented || Tint | `ec.color.tint` | 3 | GPU | 32 | Implemented || Tritone | `ec.color.tritone` | 4 | GPU | 32 | Implemented || Vibrance | `ec.color.vibrance` | 2 | GPU | 32 | Implemented |--| Video Limiter | `ec.color.videolimiter` | 5 | | 32 | Implemented |++| Video Limiter | `ec.color.videolimiter` | 5 | GPU | 32 | Implemented |## Distort@@@ -236,29 -236,29 +236,29 @@@| Effect | Id | Params | GPU | 32 | Status ||---|---|---:|:-:|:-:|---|--| Advanced Spill Suppressor | `ec.key.advancedspill` | 8 | | 32 | Implemented |++| Advanced Spill Suppressor | `ec.key.advancedspill` | 8 | GPU | 32 | Implemented || CC Simple Wire Removal | `ec.key.ccsimplewireremoval` | 7 | | 32 | Implemented |--| Color Difference Key | `ec.key.colordifference` | 16 | | 32 | Implemented |--| Color Range | `ec.key.colorrange` | 8 | | 32 | Implemented |--| Difference Matte | `ec.key.differencematte` | 6 | | 32 | Implemented |--| Extract | `ec.key.extract` | 6 | | 32 | Implemented |++| Color Difference Key | `ec.key.colordifference` | 16 | GPU | 32 | Implemented |++| Color Range | `ec.key.colorrange` | 8 | GPU | 32 | Implemented |++| Difference Matte | `ec.key.differencematte` | 6 | GPU | 32 | Implemented |++| Extract | `ec.key.extract` | 6 | GPU | 32 | Implemented || Inner/Outer Key | `ec.key.innerouter` | 88 | | 32 | Implemented |--| Key Cleaner | `ec.key.keycleaner` | 4 | | 32 | Implemented |++| Key Cleaner | `ec.key.keycleaner` | 4 | GPU | 32 | Implemented || Key Light | `ec.keying.keylight` | 56 | GPU | 32 | Implemented || Linear Color Key | `ec.key.linearcolor` | 6 | GPU | 32 | Implemented |--| Screen Key | `ec.key.screen` | 11 | | 32 | Implemented |--| Unmult | `ec.key.unmult` | 6 | | 32 | Implemented |++| Screen Key | `ec.key.screen` | 11 | GPU | 32 | Implemented |++| Unmult | `ec.key.unmult` | 6 | GPU | 32 | Implemented |## Matte| Effect | Id | Params | GPU | 32 | Status ||---|---|---:|:-:|:-:|---|--| Matte Choker | `ec.matte.mattechoker` | 7 | | 32 | Implemented |++| Matte Choker | `ec.matte.mattechoker` | 7 | GPU | 32 | Implemented || Mocha shape | `ec.obsolete.mochashape` | 6 | | 32 | Implemented || Refine Hard Matte | `ec.matte.refinehard` | 16 | | 32 | Implemented || Refine Soft Matte | `ec.matte.refinesoft` | 18 | | 32 | Implemented || Roto Brush & Refine Edge | `ec.matte.rotobrush` | 24 | | 32 | Implemented |--| Simple Choker | `ec.matte.simplechoker` | 2 | | 32 | Implemented |++| Simple Choker | `ec.matte.simplechoker` | 2 | GPU | 32 | Implemented |## Noise & Grain@@@ -284,13 -284,13 +284,13 @@@|---|---|---:|:-:|:-:|---|| Basic 3D | `ec.obsolete.basic3d` | 5 | | 32 | Implemented || Basic Text | `ec.obsolete.basictext` | 11 | | 32 | Implemented |--| Color Key | `ec.key.colorkey` | 4 | | 32 | Implemented |++| Color Key | `ec.key.colorkey` | 4 | GPU | 32 | Implemented || Gaussian Blur (Legacy) | `ec.obsolete.gaussianlegacy` | 2 | | 32 | Implemented || Lightning | `ec.obsolete.lightning` | 25 | | 32 | Implemented |--| Luma Key | `ec.key.luma` | 5 | | 32 | Implemented |++| Luma Key | `ec.key.luma` | 5 | GPU | 32 | Implemented || Path Text | `ec.obsolete.pathtext` | 32 | | 32 | Implemented || Reduce Interlace Flicker | `ec.blur.reduceflicker` | 1 | | 32 | Implemented |--| Spill Suppressor | `ec.key.spill` | 3 | | 32 | Implemented |++| Spill Suppressor | `ec.key.spill` | 3 | GPU | 32 | Implemented |## Paint