#[non_exhaustive]pub struct PreprocessingConfig {
pub color: Option<Color>,
pub denoise: Option<Denoise>,
pub deblock: Option<Deblock>,
pub audio: Option<Audio>,
pub crop: Option<Crop>,
pub pad: Option<Pad>,
pub deinterlace: Option<Deinterlace>,
/* private fields */
}
Expand description
Preprocessing configurations.
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.color: Option<Color>
Color preprocessing configuration.
denoise: Option<Denoise>
Denoise preprocessing configuration.
deblock: Option<Deblock>
Deblock preprocessing configuration.
audio: Option<Audio>
Audio preprocessing configuration.
crop: Option<Crop>
Specify the video cropping configuration.
pad: Option<Pad>
Specify the video pad filter configuration.
deinterlace: Option<Deinterlace>
Specify the video deinterlace configuration.
Implementations§
Source§impl PreprocessingConfig
impl PreprocessingConfig
pub fn new() -> Self
Sourcepub fn set_or_clear_color<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_color<T>(self, v: Option<T>) -> Self
Sets or clears the value of color.
Sourcepub fn set_denoise<T>(self, v: T) -> Self
pub fn set_denoise<T>(self, v: T) -> Self
Sets the value of denoise.
Sourcepub fn set_or_clear_denoise<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_denoise<T>(self, v: Option<T>) -> Self
Sets or clears the value of denoise.
Sourcepub fn set_deblock<T>(self, v: T) -> Self
pub fn set_deblock<T>(self, v: T) -> Self
Sets the value of deblock.
Sourcepub fn set_or_clear_deblock<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_deblock<T>(self, v: Option<T>) -> Self
Sets or clears the value of deblock.
Sourcepub fn set_or_clear_audio<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_audio<T>(self, v: Option<T>) -> Self
Sets or clears the value of audio.
Sourcepub fn set_or_clear_crop<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_crop<T>(self, v: Option<T>) -> Self
Sets or clears the value of crop.
Sourcepub fn set_or_clear_pad<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_pad<T>(self, v: Option<T>) -> Self
Sets or clears the value of pad.
Sourcepub fn set_deinterlace<T>(self, v: T) -> Selfwhere
T: Into<Deinterlace>,
pub fn set_deinterlace<T>(self, v: T) -> Selfwhere
T: Into<Deinterlace>,
Sets the value of deinterlace.
Sourcepub fn set_or_clear_deinterlace<T>(self, v: Option<T>) -> Selfwhere
T: Into<Deinterlace>,
pub fn set_or_clear_deinterlace<T>(self, v: Option<T>) -> Selfwhere
T: Into<Deinterlace>,
Sets or clears the value of deinterlace.
Trait Implementations§
Source§impl Clone for PreprocessingConfig
impl Clone for PreprocessingConfig
Source§fn clone(&self) -> PreprocessingConfig
fn clone(&self) -> PreprocessingConfig
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 PreprocessingConfig
impl Debug for PreprocessingConfig
Source§impl Default for PreprocessingConfig
impl Default for PreprocessingConfig
Source§fn default() -> PreprocessingConfig
fn default() -> PreprocessingConfig
Returns the “default value” for a type. Read more
Source§impl Message for PreprocessingConfig
impl Message for PreprocessingConfig
Source§impl PartialEq for PreprocessingConfig
impl PartialEq for PreprocessingConfig
impl StructuralPartialEq for PreprocessingConfig
Auto Trait Implementations§
impl Freeze for PreprocessingConfig
impl RefUnwindSafe for PreprocessingConfig
impl Send for PreprocessingConfig
impl Sync for PreprocessingConfig
impl Unpin for PreprocessingConfig
impl UnwindSafe for PreprocessingConfig
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