pub struct J2kSupportInfo {
pub info: Info,
pub transfer_syntax: CompressedTransferSyntax,
pub payload_kind: CompressedPayloadKind,
pub components: Vec<J2kComponentInfo>,
pub file_metadata: Option<J2kFileMetadata>,
}Expand description
Full parsed JPEG 2000 / HTJ2K support metadata.
This preserves the existing compact Info summary while exposing fields
needed to reason about the implemented Part 1 / Part 15 support surfaces.
Fields§
§info: InfoBackward-compatible metadata summary used by shared codec traits.
transfer_syntax: CompressedTransferSyntaxParsed compressed transfer syntax.
payload_kind: CompressedPayloadKindParsed raw codestream or file-wrapper shape.
components: Vec<J2kComponentInfo>Exact per-component SIZ metadata in codestream order.
file_metadata: Option<J2kFileMetadata>JP2/JPH file-wrapper metadata when the input is a still-image file.
Implementations§
Source§impl J2kSupportInfo
impl J2kSupportInfo
Sourcepub fn component_count(&self) -> u16
pub fn component_count(&self) -> u16
Return the exact codestream component count.
Sourcepub fn has_signed_components(&self) -> bool
pub fn has_signed_components(&self) -> bool
Return whether any component uses signed sample values.
Sourcepub fn has_mixed_bit_depths(&self) -> bool
pub fn has_mixed_bit_depths(&self) -> bool
Return whether the codestream uses mixed component precision.
Sourcepub fn has_component_subsampling(&self) -> bool
pub fn has_component_subsampling(&self) -> bool
Return whether component sampling factors differ from full resolution.
Trait Implementations§
Source§impl Debug for J2kSupportInfo
impl Debug for J2kSupportInfo
impl Eq for J2kSupportInfo
Source§impl PartialEq for J2kSupportInfo
impl PartialEq for J2kSupportInfo
impl StructuralPartialEq for J2kSupportInfo
Auto Trait Implementations§
impl Freeze for J2kSupportInfo
impl RefUnwindSafe for J2kSupportInfo
impl Send for J2kSupportInfo
impl Sync for J2kSupportInfo
impl Unpin for J2kSupportInfo
impl UnsafeUnpin for J2kSupportInfo
impl UnwindSafe for J2kSupportInfo
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