pub struct Matte {
pub id: Option<String>,
pub content: Box<Node>,
pub by: Box<Node>,
pub uses: Option<MatteUse>,
pub invert: bool,
pub at: Option<f64>,
pub duration: Option<f64>,
pub inset: Option<Inset>,
}Expand description
content shown where by’s picture is: by its alpha (text as a window onto video) or its
luminance. by is never drawn itself. Both are placed in the node’s area.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
content: Box<Node>What is shown.
by: Box<Node>Where it is shown. One picture: not a sequence.
uses: Option<MatteUse>What of by counts: alpha (default) or luma.
invert: boolShows content where by is not instead.
at: Option<f64>Seconds from the parent’s start (an overlay’s: the video’s). Ignored in a sequence.
duration: Option<f64>Length in seconds. Default: the content’s.
inset: Option<Inset>Pixels kept clear inside the parent’s area.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Matte
impl<'de> Deserialize<'de> for Matte
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Matte
Auto Trait Implementations§
impl Forget for Matte
impl Freeze for Matte
impl Move for Matte
impl RefUnwindSafe for Matte
impl Send for Matte
impl Sync for Matte
impl Unpin for Matte
impl UnsafeUnpin for Matte
impl UnwindSafe for Matte
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