Struct libspa::param::video::VideoInterlaceMode
source · pub struct VideoInterlaceMode(pub spa_video_interlace_mode);
Tuple Fields§
§0: spa_video_interlace_mode
Implementations§
source§impl VideoInterlaceMode
impl VideoInterlaceMode
sourcepub const Progressive: Self = _
pub const Progressive: Self = _
all frames are progressive
sourcepub const Interleaved: Self = _
pub const Interleaved: Self = _
2 fields are interleaved in one video frame. Extra buffer flags describe the field order.
sourcepub const Mixed: Self = _
pub const Mixed: Self = _
frames contains both interlaced and progressive video, the buffer flags describe the frame fields.
sourcepub const Fields: Self = _
pub const Fields: Self = _
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 spa_data to describe the fields.
sourcepub fn from_raw(raw: spa_video_interlace_mode) -> Self
pub fn from_raw(raw: spa_video_interlace_mode) -> Self
Obtain a VideoInterlaceMode
from a raw spa_video_interlace_mode
variant.
sourcepub fn as_raw(&self) -> spa_video_interlace_mode
pub fn as_raw(&self) -> spa_video_interlace_mode
Get the raw spa_sys::spa_video_interlace_mode
representing this VideoInterlaceMode
.
Trait Implementations§
source§impl Clone for VideoInterlaceMode
impl Clone for VideoInterlaceMode
source§fn clone(&self) -> VideoInterlaceMode
fn clone(&self) -> VideoInterlaceMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for VideoInterlaceMode
impl PartialEq for VideoInterlaceMode
source§fn eq(&self, other: &VideoInterlaceMode) -> bool
fn eq(&self, other: &VideoInterlaceMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VideoInterlaceMode
impl Eq for VideoInterlaceMode
impl StructuralPartialEq for VideoInterlaceMode
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§
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