pub enum ImageData {
Raw {
bits_per_component: u8,
components: u8,
data: Vec<u8>,
},
Encoded {
filter: String,
data: Vec<u8>,
},
}Expand description
The pixel payload of an image, as far as the byte-level filters could take it.
Variants§
Raw
Fully decoded samples, row-major, bits_per_component per component.
Encoded
A codec payload the byte filters do not decode (DCTDecode, JPXDecode, the fax and
JBIG2 filters); data is that codec’s own bitstream.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ImageData
impl Freeze for ImageData
impl Move for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnsafeUnpin for ImageData
impl UnwindSafe for ImageData
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