pub struct Htj2k97CodeBlockOptions {
pub bit_depth: u8,
pub guard_bits: u8,
pub code_block_width_exp: u8,
pub code_block_height_exp: u8,
pub irreversible_quantization_scale: f32,
pub irreversible_quantization_subband_scales: IrreversibleQuantizationSubbandScales,
}Expand description
Encode parameters needed to quantize 9/7 output directly into HTJ2K code-block coefficient layout.
Fields§
§bit_depth: u8Component precision in bits.
guard_bits: u8JPEG 2000 guard bits used for QCD and code-block bitplane counts.
code_block_width_exp: u8Code-block width exponent minus two.
code_block_height_exp: u8Code-block height exponent minus two.
irreversible_quantization_scale: f32Multiplier applied to irreversible 9/7 scalar quantization step sizes.
irreversible_quantization_subband_scales: IrreversibleQuantizationSubbandScalesPer-subband multipliers applied on top of
irreversible_quantization_scale.
Trait Implementations§
Source§impl Clone for Htj2k97CodeBlockOptions
impl Clone for Htj2k97CodeBlockOptions
Source§fn clone(&self) -> Htj2k97CodeBlockOptions
fn clone(&self) -> Htj2k97CodeBlockOptions
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 Htj2k97CodeBlockOptions
Source§impl Debug for Htj2k97CodeBlockOptions
impl Debug for Htj2k97CodeBlockOptions
Source§impl PartialEq for Htj2k97CodeBlockOptions
impl PartialEq for Htj2k97CodeBlockOptions
Source§fn eq(&self, other: &Htj2k97CodeBlockOptions) -> bool
fn eq(&self, other: &Htj2k97CodeBlockOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Htj2k97CodeBlockOptions
Auto Trait Implementations§
impl Freeze for Htj2k97CodeBlockOptions
impl RefUnwindSafe for Htj2k97CodeBlockOptions
impl Send for Htj2k97CodeBlockOptions
impl Sync for Htj2k97CodeBlockOptions
impl Unpin for Htj2k97CodeBlockOptions
impl UnsafeUnpin for Htj2k97CodeBlockOptions
impl UnwindSafe for Htj2k97CodeBlockOptions
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