pub struct CropRect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
A crop rectangle for video frames. Values are normalized (0.0 to 1.0) relative to the video dimensions.
Fields§
§x: f32Left edge (0.0 = leftmost).
y: f32Top edge (0.0 = topmost).
width: f32Width (1.0 = full width).
height: f32Height (1.0 = full height).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CropRect
impl<'de> Deserialize<'de> for CropRect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for CropRect
impl StructuralPartialEq for CropRect
Auto Trait Implementations§
impl Freeze for CropRect
impl RefUnwindSafe for CropRect
impl Send for CropRect
impl Sync for CropRect
impl Unpin for CropRect
impl UnwindSafe for CropRect
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