[][src]Enum gstreamer_video::VideoAlphaMode

#[non_exhaustive]pub enum VideoAlphaMode {
    Copy,
    Set,
    Mult,
    // some variants omitted
}

Different alpha modes.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Copy

When input and output have alpha, it will be copied. When the input has no alpha, alpha will be set to GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE

Set

set all alpha to GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE

Mult

multiply all alpha with GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE. When the input format has no alpha but the output format has, the alpha value will be set to GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE

Trait Implementations

impl Clone for VideoAlphaMode[src]

impl Copy for VideoAlphaMode[src]

impl Debug for VideoAlphaMode[src]

impl Eq for VideoAlphaMode[src]

impl<'a> FromValue<'a> for VideoAlphaMode[src]

impl<'a> FromValueOptional<'a> for VideoAlphaMode[src]

impl Hash for VideoAlphaMode[src]

impl Ord for VideoAlphaMode[src]

impl PartialEq<VideoAlphaMode> for VideoAlphaMode[src]

impl PartialOrd<VideoAlphaMode> for VideoAlphaMode[src]

impl SetValue for VideoAlphaMode[src]

impl StaticType for VideoAlphaMode[src]

impl StructuralEq for VideoAlphaMode[src]

impl StructuralPartialEq for VideoAlphaMode[src]

Auto Trait Implementations

impl RefUnwindSafe for VideoAlphaMode

impl Send for VideoAlphaMode

impl Sync for VideoAlphaMode

impl Unpin for VideoAlphaMode

impl UnwindSafe for VideoAlphaMode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.