pub struct Image {
pub width: u32,
pub height: u32,
pub bit_depth: u8,
pub signed: bool,
pub samples: Vec<i32>,
}Expand description
A decoded single-component image. samples is row-major, width * height
entries, each already DC-level-shifted and clamped to the declared depth.
Fields§
§width: u32§height: u32§bit_depth: u8Bits per sample as declared in SIZ (1..=32 for the GRIB2 subset).
signed: boolWhether samples are signed (SIZ component sign bit).
samples: Vec<i32>width * height samples, row-major.
Implementations§
Trait Implementations§
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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