#[repr(u32)]pub enum EfFit {
Stretch = 0,
Letterbox = 1,
}Expand description
How a source is fit into the model input. C ef_fit in detect.h.
Variants§
Stretch = 0
Stretch the source to fill the model input.
Letterbox = 1
Keep the aspect ratio and pad the rest (a letterbox).
Trait Implementations§
impl Copy for EfFit
impl Eq for EfFit
impl StructuralPartialEq for EfFit
Auto Trait Implementations§
impl Freeze for EfFit
impl RefUnwindSafe for EfFit
impl Send for EfFit
impl Sync for EfFit
impl Unpin for EfFit
impl UnsafeUnpin for EfFit
impl UnwindSafe for EfFit
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