pub enum VideoResize {
Stretch,
Letterbox {
fill: [f32; 3],
},
CenterCrop,
}Expand description
How a cropped source region maps to the requested output extent.
Variants§
Stretch
Stretch the source region to the output extent.
Letterbox
Preserve aspect with a centered letterbox; the fill is given in output-channel units before normalization.
CenterCrop
Preserve aspect and center-crop the overflow.
Trait Implementations§
Source§impl Clone for VideoResize
impl Clone for VideoResize
impl Copy for VideoResize
Source§impl Debug for VideoResize
impl Debug for VideoResize
Source§impl PartialEq for VideoResize
impl PartialEq for VideoResize
impl StructuralPartialEq for VideoResize
Auto Trait Implementations§
impl Forget for VideoResize
impl Freeze for VideoResize
impl Move for VideoResize
impl RefUnwindSafe for VideoResize
impl Send for VideoResize
impl Sync for VideoResize
impl Unpin for VideoResize
impl UnsafeUnpin for VideoResize
impl UnwindSafe for VideoResize
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