Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

Merge M13.9 gpu stylize and distort (fx_stylize)

Brandon Thomas0fbde2f4ec2a
diff --cc crates/effects/src/catalog.rs
index ed1d65d55,3a1c3a1b4..7a01309ae
--- a/crates/effects/src/catalog.rs
+++ b/crates/effects/src/catalog.rs
@@@ -87,7 -87,7 +87,8 @@@ const CPU_ONLY_CONTROLS: &[(&str, &[&st
),
("ec.noise.addgrain", &["viewingMode", "preset", "color/redBalance", "color/greenBalance", "color/blueBalance", "previewRegion/"]),
("ec.blur.cameralens", &["irisProperties/diffractionFringe", "blurMap/blurMapLayer"]),
+ ("ec.noise.removegrain", &["temporalFiltering/enabled"]),
+ ("ec.distort.liquify", &["viewFreezeAreaMask", "viewMesh"]),
];
/// Whether the GPU kernel of effect `id` covers the instance's current settings (see
diff --cc crates/effects/src/lib.rs
index 2b296a365,a848866d0..078612615
--- a/crates/effects/src/lib.rs
+++ b/crates/effects/src/lib.rs
@@@ -67,12 -67,12 +67,13 @@@ use std::sync::OnceLock
pub use card3d::{CompLight, CompScene};
pub use color_fx::{
- HUESAT_CHANNELS, LEVELS_CHANNELS, exposure_settings, fill_uses_masks, huesat_ranges_identity, levels_channel_ids, levels_channels_identity, levels_clip,
+ HUESAT_CHANNELS, HUESAT_RANGES, LEVELS_CHANNELS, PHOTO_FILTER_CUSTOM, PHOTO_FILTERS, exposure_settings, fill_uses_masks, huesat_ranges_identity,
+ levels_channel_ids, levels_channel_settings, levels_channels_identity, levels_clip,
};
-pub use color2::Curve;
+pub use color2::{Curve, auto_correct_settings, equalize_tables, luma_clip_points, shadow_highlight_amounts};
pub use distort::transform_shutter;
- pub use distort2::parse_mesh;
+ pub use distort2::{MAGNIFY_MODES, parse_mesh};
+ pub use distort4::liquify_mesh;
use effectcraft_keyframe::Value;
use effectcraft_project::build::Ids;
use effectcraft_project::{GroupKind, ParamUi, PropGroup, Property};
@@@ -814,71 -809,40 +816,101 @@@ pub const GPU_EFFECTS: &[&str] = &
"ec.key.linearcolor",
"ec.keying.keylight",
// effectcraft-gpu fx_key (keying, matte, channel)
+ "ec.key.colorkey",
+ "ec.key.luma",
+ "ec.key.colorrange",
+ "ec.key.extract",
+ "ec.key.differencematte",
+ "ec.key.colordifference",
+ "ec.key.screen",
+ "ec.key.spill",
+ "ec.key.advancedspill",
+ "ec.key.keycleaner",
+ "ec.key.unmult",
+ "ec.matte.simplechoker",
+ "ec.matte.mattechoker",
+ "ec.channel.setmatte",
+ "ec.channel.setchannels",
+ "ec.channel.shiftchannels",
+ "ec.channel.removecolormatting",
+ "ec.channel.arithmetic",
+ "ec.channel.solidcomposite",
+ "ec.channel.combiner",
+ "ec.channel.blend",
+ "ec.channel.calculations",
+ "ec.channel.compoundarithmetic",
//
+ // effectcraft-gpu fx_tone (colour correction)
+ "ec.color.levelsic",
+ "ec.color.gammapedestalgain",
+ "ec.color.photofilter",
+ "ec.color.changecolor",
+ "ec.color.changetocolor",
+ "ec.color.leavecolor",
+ "ec.color.broadcast",
+ "ec.color.colorbalancehls",
+ "ec.color.videolimiter",
+ "ec.color.psarbitrarymap",
+ "ec.color.cctoner",
+ "ec.color.cccoloroffset",
+ "ec.color.cckernel",
+ "ec.color.autolevels",
+ "ec.color.autocontrast",
+ "ec.color.autocolor",
+ "ec.color.equalize",
+ "ec.color.shadowhighlight",
+ "ec.color.cccolorneutralizer",
+ "ec.color.colorstabilizer",
// effectcraft-gpu fx_stylize (stylize, distort)
- //
+ "ec.stylize.posterize",
+ "ec.stylize.threshold",
+ "ec.stylize.ccthreshold",
+ "ec.stylize.ccthresholdrgb",
+ "ec.stylize.strobe",
+ "ec.stylize.ccvignette",
+ "ec.stylize.scatter",
+ "ec.stylize.brushstrokes",
+ "ec.stylize.roughenedges",
+ "ec.stylize.texturize",
+ "ec.stylize.motiontile",
+ "ec.stylize.cckaleida",
+ "ec.stylize.ccrepetile",
+ "ec.distort.mirror",
+ "ec.distort.offset",
+ "ec.distort.polar",
+ "ec.distort.spherize",
+ "ec.distort.cornerpin",
+ "ec.distort.opticscompensation",
+ "ec.distort.magnify",
+ "ec.distort.ccslant",
+ "ec.distort.ccsmear",
+ "ec.distort.ccsplit",
+ "ec.distort.ccsplit2",
+ "ec.distort.cctiler",
+ "ec.distort.ccgriddler",
+ "ec.distort.liquify",
+ "ec.distort.twirllegacy",
+ "ec.distort.ccripplepulse",
+ "ec.distort.ccpowerpin",
+ "ec.distort.ccflomotion",
// effectcraft-gpu fx_noise (noise, blur, time)
+ "ec.noise.turbulent",
+ "ec.noise.median",
+ "ec.noise.medianlegacy",
+ "ec.noise.dustscratches",
+ "ec.noise.removegrain",
+ "ec.noise.noisealpha",
+ "ec.noise.noisehls",
+ "ec.noise.noisehlsauto",
+ "ec.blur.smart",
+ "ec.blur.bilateral",
+ "ec.blur.sharpen",
+ "ec.blur.unsharp",
+ "ec.blur.compound",
+ "ec.blur.channel",
+ "ec.channel.minimax",
+ "ec.time.echo",
+ "ec.time.posterizetime",
//
];
diff --cc docs/effects.md
index 2cacb2f6c,589c512ce..fe9c624fc
--- 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**: 118 effects also run on the GPU compositor with identical results.
-- **GPU**: 90 effects also run on the GPU compositor with identical results.
++- **GPU**: 150 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).
@@@ -85,32 -85,32 +85,32 @@@ Effects are addressed by id (`ec.<categ
| 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 |
++| Color Stabilizer | `ec.color.colorstabilizer` | 6 | GPU | 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 |