G2: Fix effect input semantics and control activation

This commit is contained in:
cdinhoo
2026-10-09 17:16:36 +03:00
parent b9d1f79f7d
commit 5f1f346366
12 changed files with 663 additions and 25 deletions
+7 -1
View File
@@ -287,8 +287,14 @@ pub struct LayerPixels {
/// Services the renderer offers effects that look beyond their own pixels.
pub trait EffectHost: Sync {
/// Pixels entering the effect stack, in effect space, before any effects. For an
/// adjustment layer this is the composition below it, in the effect working space.
fn original(&self) -> Option<&Buf> {
None
}
/// Layer `id` of the same composition at the current comp time. `masks_and_effects`
/// selects "Effects & Masks" over "Source". `None` for missing/self/recursive references.
/// selects "Effects & Masks" over "Source". `None` for missing/recursive references; own Source reads are supported.
fn layer(&self, id: u64, masks_and_effects: bool) -> Option<LayerPixels>;
/// `frames` stereo sample frames (interleaved L R …) of layer `id`'s audio starting at comp
/// time `start` seconds, at `rate` Hz. `None` when the layer has no audio.