pub struct DipToColorNode {
pub progress: f32,
pub color: [f32; 3],
pub to_rgba: Vec<u8>,
pub to_width: u32,
pub to_height: u32,
}Expand description
Two-phase transition: clip A fades to a solid color, then the colour fades to
clip B. progress = 0.5 is the fully solid dip (a fade-to-black/white/brand dip).
Fields§
§progress: f32Transition progress [0, 1]: 0 = clip A, 1 = clip B, with color solid across
the middle (see this module’s DIP_PHASE).
color: [f32; 3]Dip colour in RGB, normally [0, 1].
Values outside that range are meaningful and are not clamped until the final
write: reproducing FFmpeg’s fadeblack / fadewhite needs the dip endpoint to
be the luma level 0 / 255 expanded out of limited range, which lands just outside
[0, 1]. avio’s map_transition is what supplies those values.
to_rgba: Vec<u8>Clip B as RGBA bytes (to_width × to_height × 4).
to_width: u32Width of to_rgba.
to_height: u32Height of to_rgba.
Implementations§
Trait Implementations§
Source§impl RenderNode for DipToColorNode
Available on crate feature wgpu only.
impl RenderNode for DipToColorNode
Available on crate feature
wgpu only.Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Number of input textures required by this node (default: 1).
Source§fn process(
&self,
inputs: &[&Texture],
outputs: &[&Texture],
ctx: &RenderContext,
)
fn process( &self, inputs: &[&Texture], outputs: &[&Texture], ctx: &RenderContext, )
Run the GPU render pass. Read more
Source§fn pass_count(&self) -> usize
fn pass_count(&self) -> usize
Number of render passes (default: 1). Multi-pass nodes (e.g. gaussian
blur) return 2 or more.
Source§impl RenderNodeCpu for DipToColorNode
impl RenderNodeCpu for DipToColorNode
Auto Trait Implementations§
impl Freeze for DipToColorNode
impl RefUnwindSafe for DipToColorNode
impl Send for DipToColorNode
impl Sync for DipToColorNode
impl Unpin for DipToColorNode
impl UnsafeUnpin for DipToColorNode
impl UnwindSafe for DipToColorNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more