#[non_exhaustive]pub struct Crop {
pub top_pixels: i32,
pub bottom_pixels: i32,
pub left_pixels: i32,
pub right_pixels: i32,
/* private fields */
}
Expand description
Video cropping configuration for the input video. The cropped input video is scaled to match the output resolution.
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.top_pixels: i32
The number of pixels to crop from the top. The default is 0.
bottom_pixels: i32
The number of pixels to crop from the bottom. The default is 0.
left_pixels: i32
The number of pixels to crop from the left. The default is 0.
right_pixels: i32
The number of pixels to crop from the right. The default is 0.
Implementations§
Source§impl Crop
impl Crop
pub fn new() -> Self
Sourcepub fn set_top_pixels<T: Into<i32>>(self, v: T) -> Self
pub fn set_top_pixels<T: Into<i32>>(self, v: T) -> Self
Sets the value of top_pixels.
Sourcepub fn set_bottom_pixels<T: Into<i32>>(self, v: T) -> Self
pub fn set_bottom_pixels<T: Into<i32>>(self, v: T) -> Self
Sets the value of bottom_pixels.
Sourcepub fn set_left_pixels<T: Into<i32>>(self, v: T) -> Self
pub fn set_left_pixels<T: Into<i32>>(self, v: T) -> Self
Sets the value of left_pixels.
Sourcepub fn set_right_pixels<T: Into<i32>>(self, v: T) -> Self
pub fn set_right_pixels<T: Into<i32>>(self, v: T) -> Self
Sets the value of right_pixels.
Trait Implementations§
impl StructuralPartialEq for Crop
Auto Trait Implementations§
impl Freeze for Crop
impl RefUnwindSafe for Crop
impl Send for Crop
impl Sync for Crop
impl Unpin for Crop
impl UnwindSafe for Crop
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