pub struct RawBitmap {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub bit_depth: u8,
pub signed: bool,
pub component_signed: Vec<bool>,
pub num_components: u16,
pub bytes_per_sample: u8,
}Expand description
Raw decoded pixel data at native bit depth without 8-bit scaling.
Samples are interleaved. Samples above eight bits use little-endian packed
storage with Self::bytes_per_sample bytes per sample.
Fields§
§data: Vec<u8>The raw pixel data at native bit depth.
width: u32The width of the image in pixels.
height: u32The height of the image in pixels.
bit_depth: u8The original bit depth per sample.
signed: boolWhether every component in this packed bitmap is signed.
component_signed: Vec<bool>Per-component signedness in codestream/component order.
num_components: u16The number of components.
bytes_per_sample: u8Bytes per sample in the packed little-endian native representation.
Auto Trait Implementations§
impl Freeze for RawBitmap
impl RefUnwindSafe for RawBitmap
impl Send for RawBitmap
impl Sync for RawBitmap
impl Unpin for RawBitmap
impl UnsafeUnpin for RawBitmap
impl UnwindSafe for RawBitmap
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> 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