pub struct J2kFileWrapOptions<'a> {
pub payload_kind: CompressedPayloadKind,
pub color: J2kFileColorSpec<'a>,
pub color_specs: &'a [J2kFileColorSpec<'a>],
pub metadata: J2kFileBoxMetadata<'a>,
}Expand description
Options for wrapping a raw JPEG 2000 / HTJ2K codestream as a JP2/JPH file.
Fields§
§payload_kind: CompressedPayloadKindDesired file wrapper.
color: J2kFileColorSpec<'a>Color metadata to place in the JP2 Header box.
color_specs: &'a [J2kFileColorSpec<'a>]Explicit Colour Specification boxes to place in the JP2 Header box.
When non-empty, these are written in order and Self::color is used
only for legacy single-COLR callers.
metadata: J2kFileBoxMetadata<'a>Optional JP2/JPH file metadata boxes to place in the JP2 Header box.
Implementations§
Source§impl J2kFileWrapOptions<'_>
impl J2kFileWrapOptions<'_>
Source§impl<'a> J2kFileWrapOptions<'a>
impl<'a> J2kFileWrapOptions<'a>
Sourcepub const fn with_color(self, color: J2kFileColorSpec<'a>) -> Self
pub const fn with_color(self, color: J2kFileColorSpec<'a>) -> Self
Return options with explicit color metadata.
Sourcepub const fn with_color_specs(
self,
color_specs: &'a [J2kFileColorSpec<'a>],
) -> Self
pub const fn with_color_specs( self, color_specs: &'a [J2kFileColorSpec<'a>], ) -> Self
Return options with explicit ordered JP2/JPH Colour Specification boxes.
Sourcepub const fn with_metadata(self, metadata: J2kFileBoxMetadata<'a>) -> Self
pub const fn with_metadata(self, metadata: J2kFileBoxMetadata<'a>) -> Self
Return options with explicit JP2/JPH metadata boxes.
Trait Implementations§
Source§impl<'a> Clone for J2kFileWrapOptions<'a>
impl<'a> Clone for J2kFileWrapOptions<'a>
Source§fn clone(&self) -> J2kFileWrapOptions<'a>
fn clone(&self) -> J2kFileWrapOptions<'a>
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<'a> Copy for J2kFileWrapOptions<'a>
Source§impl<'a> Debug for J2kFileWrapOptions<'a>
impl<'a> Debug for J2kFileWrapOptions<'a>
impl<'a> Eq for J2kFileWrapOptions<'a>
Source§impl<'a> PartialEq for J2kFileWrapOptions<'a>
impl<'a> PartialEq for J2kFileWrapOptions<'a>
impl<'a> StructuralPartialEq for J2kFileWrapOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for J2kFileWrapOptions<'a>
impl<'a> RefUnwindSafe for J2kFileWrapOptions<'a>
impl<'a> Send for J2kFileWrapOptions<'a>
impl<'a> Sync for J2kFileWrapOptions<'a>
impl<'a> Unpin for J2kFileWrapOptions<'a>
impl<'a> UnsafeUnpin for J2kFileWrapOptions<'a>
impl<'a> UnwindSafe for J2kFileWrapOptions<'a>
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