pub struct Crop {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
A rectangle in pixels: a source crop in input pixels, or a placement in output pixels.
Fractional values are kept as is: libplacebo resamples sub-pixel windows, so keyframed crops
(Grade::crops, from ffcine-reframe) move smoothly instead of stepping a pixel at a time.
Fields§
§x: f32§y: f32§width: f32§height: f32Trait Implementations§
impl Copy for Crop
impl StructuralPartialEq for Crop
Auto Trait Implementations§
impl Forget for Crop
impl Freeze for Crop
impl RefUnwindSafe for Crop
impl Send for Crop
impl Sync for Crop
impl Unpin for Crop
impl UnsafeUnpin 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