#[non_exhaustive]pub struct YadifConfig {
pub mode: String,
pub disable_spatial_interlacing: bool,
pub parity: String,
pub deinterlace_all_frames: bool,
/* private fields */
}
Expand description
Yet Another Deinterlacing Filter Configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.mode: String
Specifies the deinterlacing mode to adopt.
The default is send_frame
.
Supported values:
send_frame
: Output one frame for each framesend_field
: Output one frame for each field
disable_spatial_interlacing: bool
Disable spacial interlacing.
The default is false
.
parity: String
The picture field parity assumed for the input interlaced video.
The default is auto
.
Supported values:
tff
: Assume the top field is firstbff
: Assume the bottom field is firstauto
: Enable automatic detection of field parity
deinterlace_all_frames: bool
Deinterlace all frames rather than just the frames identified as
interlaced. The default is false
.
Implementations§
Source§impl YadifConfig
impl YadifConfig
pub fn new() -> Self
Sourcepub fn set_disable_spatial_interlacing<T: Into<bool>>(self, v: T) -> Self
pub fn set_disable_spatial_interlacing<T: Into<bool>>(self, v: T) -> Self
Sets the value of disable_spatial_interlacing.
Sourcepub fn set_parity<T: Into<String>>(self, v: T) -> Self
pub fn set_parity<T: Into<String>>(self, v: T) -> Self
Sets the value of parity.
Sourcepub fn set_deinterlace_all_frames<T: Into<bool>>(self, v: T) -> Self
pub fn set_deinterlace_all_frames<T: Into<bool>>(self, v: T) -> Self
Sets the value of deinterlace_all_frames.
Trait Implementations§
Source§impl Clone for YadifConfig
impl Clone for YadifConfig
Source§fn clone(&self) -> YadifConfig
fn clone(&self) -> YadifConfig
Returns a duplicate 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 Debug for YadifConfig
impl Debug for YadifConfig
Source§impl Default for YadifConfig
impl Default for YadifConfig
Source§fn default() -> YadifConfig
fn default() -> YadifConfig
Returns the “default value” for a type. Read more
Source§impl Message for YadifConfig
impl Message for YadifConfig
Source§impl PartialEq for YadifConfig
impl PartialEq for YadifConfig
impl StructuralPartialEq for YadifConfig
Auto Trait Implementations§
impl Freeze for YadifConfig
impl RefUnwindSafe for YadifConfig
impl Send for YadifConfig
impl Sync for YadifConfig
impl Unpin for YadifConfig
impl UnwindSafe for YadifConfig
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