Struct turbojpeg_sys::tjregion
source · #[repr(C)]pub struct tjregion {
pub x: c_int,
pub y: c_int,
pub w: c_int,
pub h: c_int,
}
Expand description
Cropping region
Fields§
§x: c_int
The left boundary of the cropping region. This must be evenly divisible by the MCU block width (see #tjMCUWidth.)
y: c_int
The upper boundary of the cropping region. For lossless transformation, this must be evenly divisible by the MCU block height (see #tjMCUHeight.)
w: c_int
The width of the cropping region. Setting this to 0 is the equivalent of setting it to the width of the source JPEG image - x.
h: c_int
The height of the cropping region. Setting this to 0 is the equivalent of setting it to the height of the source JPEG image - y.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for tjregion
impl Send for tjregion
impl Sync for tjregion
impl Unpin for tjregion
impl UnwindSafe for tjregion
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