[][src]Enum gstreamer_video::VideoInterlaceMode

#[non_exhaustive]pub enum VideoInterlaceMode {
    Progressive,
    Interleaved,
    Mixed,
    Fields,
    Alternate,
    // some variants omitted
}

The possible values of the VideoInterlaceMode describing the interlace mode of the stream.

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.
Progressive

all frames are progressive

Interleaved

2 fields are interleaved in one video frame. Extra buffer flags describe the field order.

Mixed

frames contains both interlaced and progressive video, the buffer flags describe the frame and fields.

Fields

2 fields are stored in one buffer, use the frame ID to get access to the required field. For multiview (the 'views' property > 1) the fields of view N can be found at frame ID (N * 2) and (N * 2) + 1. Each field has only half the amount of lines as noted in the height property. This mode requires multiple GstVideoMeta metadata to describe the fields.

Alternate

1 field is stored in one buffer, GST_VIDEO_BUFFER_FLAG_TF or GST_VIDEO_BUFFER_FLAG_BF indicates if the buffer is carrying the top or bottom field, respectively. The top and bottom buffers are expected to alternate in the pipeline, with this mode (Since: 1.16).

Implementations

impl VideoInterlaceMode[src]

pub fn to_str<'a>(self) -> &'a str[src]

Trait Implementations

impl Clone for VideoInterlaceMode[src]

impl Copy for VideoInterlaceMode[src]

impl Debug for VideoInterlaceMode[src]

impl Display for VideoInterlaceMode[src]

impl Eq for VideoInterlaceMode[src]

impl FromStr for VideoInterlaceMode[src]

type Err = BoolError

The associated error which can be returned from parsing.

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

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

impl Hash for VideoInterlaceMode[src]

impl Ord for VideoInterlaceMode[src]

impl PartialEq<VideoInterlaceMode> for VideoInterlaceMode[src]

impl PartialOrd<VideoInterlaceMode> for VideoInterlaceMode[src]

impl SetValue for VideoInterlaceMode[src]

impl StaticType for VideoInterlaceMode[src]

impl StructuralEq for VideoInterlaceMode[src]

impl StructuralPartialEq for VideoInterlaceMode[src]

Auto Trait Implementations

impl RefUnwindSafe for VideoInterlaceMode

impl Send for VideoInterlaceMode

impl Sync for VideoInterlaceMode

impl Unpin for VideoInterlaceMode

impl UnwindSafe for VideoInterlaceMode

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> ToString for T where
    T: Display + ?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.