pub struct EncodeRoiRegion {
pub component: u16,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub shift: u8,
}Expand description
Rectangular region-of-interest request for JPEG 2000 maxshift encoding.
The rectangle is expressed in full-resolution reference-grid pixels. For
sampled components, the encoder maps the rectangle to that component’s SIZ
grid before selecting wavelet coefficients. All regions for the same
component must use the same non-zero shift, because JPEG 2000 RGN stores
one maxshift value per component.
Fields§
§component: u16Component index to which the ROI applies.
x: u32Left edge in reference-grid pixels.
y: u32Top edge in reference-grid pixels.
width: u32Width in reference-grid pixels.
height: u32Height in reference-grid pixels.
shift: u8Maxshift value to write in the component’s RGN marker.
Trait Implementations§
Source§impl Clone for EncodeRoiRegion
impl Clone for EncodeRoiRegion
Source§fn clone(&self) -> EncodeRoiRegion
fn clone(&self) -> EncodeRoiRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncodeRoiRegion
Auto Trait Implementations§
impl Freeze for EncodeRoiRegion
impl RefUnwindSafe for EncodeRoiRegion
impl Send for EncodeRoiRegion
impl Sync for EncodeRoiRegion
impl Unpin for EncodeRoiRegion
impl UnsafeUnpin for EncodeRoiRegion
impl UnwindSafe for EncodeRoiRegion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more