#[non_exhaustive]pub struct Jpeg2000Packing {
pub reference: f32,
pub binary_scale: i16,
pub decimal_scale: i16,
pub bits: u8,
pub count: u32,
}Expand description
JPEG 2000 packing’s parameters: data representation template 5.40.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reference: f32The reference value R, as written (a 32-bit float).
binary_scale: i16The binary scale factor E.
decimal_scale: i16The decimal scale factor D.
bits: u8The image’s bits per sample, 0 to MAX_BITS. A field of 0 bits has no codestream: it is
R / 10^D at every point with a value, by the regulation (not checked against ecCodes,
which gave R for a field of 0 bits with D = 2).
count: u32How many values are packed: the grid points the bitmap marks, or all of them.
Implementations§
Trait Implementations§
Source§impl Clone for Jpeg2000Packing
impl Clone for Jpeg2000Packing
Source§fn clone(&self) -> Jpeg2000Packing
fn clone(&self) -> Jpeg2000Packing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Jpeg2000Packing
Source§impl Debug for Jpeg2000Packing
impl Debug for Jpeg2000Packing
Source§impl<'de> Deserialize<'de> for Jpeg2000Packing
impl<'de> Deserialize<'de> for Jpeg2000Packing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Jpeg2000Packing
impl PartialEq for Jpeg2000Packing
Source§fn eq(&self, other: &Jpeg2000Packing) -> bool
fn eq(&self, other: &Jpeg2000Packing) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Jpeg2000Packing
impl Serialize for Jpeg2000Packing
impl StructuralPartialEq for Jpeg2000Packing
Auto Trait Implementations§
impl Freeze for Jpeg2000Packing
impl RefUnwindSafe for Jpeg2000Packing
impl Send for Jpeg2000Packing
impl Sync for Jpeg2000Packing
impl Unpin for Jpeg2000Packing
impl UnsafeUnpin for Jpeg2000Packing
impl UnwindSafe for Jpeg2000Packing
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