pub struct DecodedImage<'a> { /* private fields */ }Expand description
A decoded JPEG2000 image.
Implementations§
Source§impl DecodedImage<'_>
impl DecodedImage<'_>
Sourcepub fn components(&self) -> &[ComponentData]
pub fn components(&self) -> &[ComponentData]
The decoded components of the image.
Sourcepub fn data_u8(&self) -> Vec<u8> ⓘ
pub fn data_u8(&self) -> Vec<u8> ⓘ
Return the decoded image as interleaved unsigned 8-bit sample data.
Sourcepub fn store_u8_into(&self, buf: &mut [u8])
pub fn store_u8_into(&self, buf: &mut [u8])
Store the decoded image as interleaved unsigned 8-bit sample data into buf.
The buffer must have the correct size.
Auto Trait Implementations§
impl<'a> !UnwindSafe for DecodedImage<'a>
impl<'a> Freeze for DecodedImage<'a>
impl<'a> RefUnwindSafe for DecodedImage<'a>
impl<'a> Send for DecodedImage<'a>
impl<'a> Sync for DecodedImage<'a>
impl<'a> Unpin for DecodedImage<'a>
impl<'a> UnsafeUnpin for DecodedImage<'a>
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