pub struct JpxImage {
pub width: u32,
pub height: u32,
pub components: u8,
pub data: Vec<u8>,
pub space_override: SpaceOverride,
pub alpha: Option<Vec<u8>>,
}Available on crate feature
jpeg2000 only.Expand description
A decoded JPEG 2000 image.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
components: u8Components per pixel after the conversion action was applied.
data: Vec<u8>Interleaved eight-bit samples, width * height * components bytes.
space_override: SpaceOverrideWhat the conversion table did to the dictionary’s colour space.
alpha: Option<Vec<u8>>The alpha channel, when /SMaskInData 1 captured one.
Trait Implementations§
impl StructuralPartialEq for JpxImage
Auto Trait Implementations§
impl !RefUnwindSafe for JpxImage
impl !UnwindSafe for JpxImage
impl Freeze for JpxImage
impl Send for JpxImage
impl Sync for JpxImage
impl Unpin for JpxImage
impl UnsafeUnpin for JpxImage
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