pub enum GpuTransition {
Fade,
Dissolve,
Wipe {
angle: f32,
},
Dip {
color: [f32; 3],
},
}Expand description
The ff-render transition node an XfadeTransition renders as.
Carries the node’s static geometry only. progress and clip B are supplied per
frame by the caller, so this stays comparable and cheap to hand around.
Variants§
Fade
Linear cross-blend (ff_render::FadeTransitionNode).
Dissolve
Per-pixel threshold reveal (ff_render::DissolveTransitionNode).
Wipe
Directional wipe (ff_render::WipeTransitionNode), angle in radians.
The angle points at the edge clip B grows from, which is the opposite of the
transition’s name: wiperight sweeps its edge rightward and so reveals B from
the left (angle = PI). The model names a direction and ff_render wants an
angle, so the conversion — and its inversion — happen here rather than being
passed through raw (RK-020).
Dip
Two-phase dip through a solid colour (ff_render::DipToColorNode).
color is RGB and normally within [0, 1], but the FFmpeg dips deliberately
fall outside it — see this module’s DIP_BLACK. Nothing clamps it until the
node’s final write, and rounding it back into range would put the middle of the
dip up to 18.6 away from the export.
Trait Implementations§
Source§impl Clone for GpuTransition
impl Clone for GpuTransition
Source§fn clone(&self) -> GpuTransition
fn clone(&self) -> GpuTransition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more