pub enum ChromaKeyMethod {
Green,
Blue,
Custom(Color),
}Expand description
Which background color a chroma key treats as transparent. Green/
Blue are the two conventional screen colors (mirroring GStreamer’s
alpha element’s method property); Custom covers anything else —
a differently colored backdrop, or a solid-color background that isn’t
a screen at all.
Variants§
Green
Key the conventional pure-green screen color.
Blue
Key the conventional pure-blue screen color.
Custom(Color)
Key an explicitly supplied RGB color.
Trait Implementations§
Source§impl Clone for ChromaKeyMethod
impl Clone for ChromaKeyMethod
Source§fn clone(&self) -> ChromaKeyMethod
fn clone(&self) -> ChromaKeyMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChromaKeyMethod
Source§impl Debug for ChromaKeyMethod
impl Debug for ChromaKeyMethod
impl Eq for ChromaKeyMethod
Source§impl PartialEq for ChromaKeyMethod
impl PartialEq for ChromaKeyMethod
impl StructuralPartialEq for ChromaKeyMethod
Auto Trait Implementations§
impl Freeze for ChromaKeyMethod
impl RefUnwindSafe for ChromaKeyMethod
impl Send for ChromaKeyMethod
impl Sync for ChromaKeyMethod
impl Unpin for ChromaKeyMethod
impl UnsafeUnpin for ChromaKeyMethod
impl UnwindSafe for ChromaKeyMethod
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