#[non_exhaustive]pub struct J2kLosslessEncodeOptions {
pub backend: EncodeBackendPreference,
pub block_coding_mode: J2kBlockCodingMode,
pub progression: J2kProgressionOrder,
pub max_decomposition_levels: Option<u8>,
pub reversible_transform: ReversibleTransform,
pub validation: J2kEncodeValidation,
}Expand description
Options controlling JPEG 2000 lossless encoding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.backend: EncodeBackendPreferenceBackend preference for encode stages.
block_coding_mode: J2kBlockCodingModeCode-block coding mode for the codestream.
progression: J2kProgressionOrderPacket progression order.
max_decomposition_levels: Option<u8>Optional explicit lossless decomposition level request.
Requests are clamped to the geometry-safe maximum for the tile.
reversible_transform: ReversibleTransformReversible transform profile.
validation: J2kEncodeValidationValidation policy applied before returning encoded bytes.
Implementations§
Source§impl J2kLosslessEncodeOptions
impl J2kLosslessEncodeOptions
Sourcepub const fn new(
backend: EncodeBackendPreference,
block_coding_mode: J2kBlockCodingMode,
progression: J2kProgressionOrder,
max_decomposition_levels: Option<u8>,
reversible_transform: ReversibleTransform,
validation: J2kEncodeValidation,
) -> Self
pub const fn new( backend: EncodeBackendPreference, block_coding_mode: J2kBlockCodingMode, progression: J2kProgressionOrder, max_decomposition_levels: Option<u8>, reversible_transform: ReversibleTransform, validation: J2kEncodeValidation, ) -> Self
Create JPEG 2000 lossless encode options.
Sourcepub const fn with_backend(self, backend: EncodeBackendPreference) -> Self
pub const fn with_backend(self, backend: EncodeBackendPreference) -> Self
Return options with a different backend preference.
Sourcepub const fn with_accelerated_backend(self) -> Self
pub const fn with_accelerated_backend(self) -> Self
Return options using adaptive accelerated routing.
Sourcepub const fn with_cpu_only_backend(self) -> Self
pub const fn with_cpu_only_backend(self) -> Self
Return options using the portable CPU route.
Sourcepub const fn with_strict_device_backend(self) -> Self
pub const fn with_strict_device_backend(self) -> Self
Return options requiring a strict device route.
Sourcepub const fn with_block_coding_mode(
self,
block_coding_mode: J2kBlockCodingMode,
) -> Self
pub const fn with_block_coding_mode( self, block_coding_mode: J2kBlockCodingMode, ) -> Self
Return options with a different code-block coding mode.
Sourcepub const fn with_progression(self, progression: J2kProgressionOrder) -> Self
pub const fn with_progression(self, progression: J2kProgressionOrder) -> Self
Return options with a different packet progression order.
Sourcepub const fn with_max_decomposition_levels(
self,
max_decomposition_levels: Option<u8>,
) -> Self
pub const fn with_max_decomposition_levels( self, max_decomposition_levels: Option<u8>, ) -> Self
Return options with a different maximum decomposition-level request.
Sourcepub const fn with_reversible_transform(
self,
reversible_transform: ReversibleTransform,
) -> Self
pub const fn with_reversible_transform( self, reversible_transform: ReversibleTransform, ) -> Self
Return options with a different reversible transform.
Sourcepub const fn with_validation(self, validation: J2kEncodeValidation) -> Self
pub const fn with_validation(self, validation: J2kEncodeValidation) -> Self
Return options with a different validation policy.
Trait Implementations§
Source§impl Clone for J2kLosslessEncodeOptions
impl Clone for J2kLosslessEncodeOptions
Source§fn clone(&self) -> J2kLosslessEncodeOptions
fn clone(&self) -> J2kLosslessEncodeOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for J2kLosslessEncodeOptions
Source§impl Debug for J2kLosslessEncodeOptions
impl Debug for J2kLosslessEncodeOptions
Source§impl Default for J2kLosslessEncodeOptions
impl Default for J2kLosslessEncodeOptions
impl Eq for J2kLosslessEncodeOptions
Source§impl Hash for J2kLosslessEncodeOptions
impl Hash for J2kLosslessEncodeOptions
Source§impl PartialEq for J2kLosslessEncodeOptions
impl PartialEq for J2kLosslessEncodeOptions
Source§fn eq(&self, other: &J2kLosslessEncodeOptions) -> bool
fn eq(&self, other: &J2kLosslessEncodeOptions) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for J2kLosslessEncodeOptions
Auto Trait Implementations§
impl Freeze for J2kLosslessEncodeOptions
impl RefUnwindSafe for J2kLosslessEncodeOptions
impl Send for J2kLosslessEncodeOptions
impl Sync for J2kLosslessEncodeOptions
impl Unpin for J2kLosslessEncodeOptions
impl UnsafeUnpin for J2kLosslessEncodeOptions
impl UnwindSafe for J2kLosslessEncodeOptions
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
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>
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>
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