pub struct J2kCodestreamHeaderMetadata {
pub dimensions: (u32, u32),
pub components: u16,
pub bit_depth: u8,
pub tile_size: (u32, u32),
pub tile_count: (u32, u32),
pub component_info: Vec<J2kCodestreamComponentHeader>,
pub resolution_levels: u8,
pub has_mct: bool,
pub reversible: bool,
pub high_throughput: bool,
}Expand description
Parsed JPEG 2000 codestream metadata from the main header.
Fields§
§dimensions: (u32, u32)Reference-grid image dimensions derived from SIZ.
components: u16Number of codestream components.
bit_depth: u8Maximum component precision in bits.
tile_size: (u32, u32)Reference tile width and height.
tile_count: (u32, u32)Number of reference tiles horizontally and vertically.
component_info: Vec<J2kCodestreamComponentHeader>Per-component SIZ precision and sampling metadata.
resolution_levels: u8Number of resolution levels from COD.
has_mct: boolWhether COD enables a multi-component transform.
reversible: boolWhether COD selects the reversible 5/3 transform.
high_throughput: boolWhether the codestream advertises high-throughput block coding.
Trait Implementations§
Source§impl Clone for J2kCodestreamHeaderMetadata
impl Clone for J2kCodestreamHeaderMetadata
Source§fn clone(&self) -> J2kCodestreamHeaderMetadata
fn clone(&self) -> J2kCodestreamHeaderMetadata
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 moreSource§impl Debug for J2kCodestreamHeaderMetadata
impl Debug for J2kCodestreamHeaderMetadata
impl Eq for J2kCodestreamHeaderMetadata
Source§impl PartialEq for J2kCodestreamHeaderMetadata
impl PartialEq for J2kCodestreamHeaderMetadata
Source§fn eq(&self, other: &J2kCodestreamHeaderMetadata) -> bool
fn eq(&self, other: &J2kCodestreamHeaderMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for J2kCodestreamHeaderMetadata
Auto Trait Implementations§
impl Freeze for J2kCodestreamHeaderMetadata
impl RefUnwindSafe for J2kCodestreamHeaderMetadata
impl Send for J2kCodestreamHeaderMetadata
impl Sync for J2kCodestreamHeaderMetadata
impl Unpin for J2kCodestreamHeaderMetadata
impl UnsafeUnpin for J2kCodestreamHeaderMetadata
impl UnwindSafe for J2kCodestreamHeaderMetadata
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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