pub struct EncodeOptions {
pub num_decomposition_levels: u8,
pub reversible: bool,
pub code_block_width_exp: u8,
pub code_block_height_exp: u8,
pub guard_bits: u8,
pub use_ht_block_coding: bool,
}Expand description
Encoding options for JPEG 2000.
Fields§
§num_decomposition_levels: u8Number of decomposition levels (default: 5).
reversible: boolUse reversible (lossless) transform (default: true).
code_block_width_exp: u8Code-block width exponent minus 2 (default: 4, meaning 2^6=64).
code_block_height_exp: u8Code-block height exponent minus 2 (default: 4, meaning 2^6=64).
guard_bits: u8Number of guard bits (default: 1 for reversible, 2 for irreversible).
use_ht_block_coding: boolEncode using HT block coding (HTJ2K / Part 15) instead of classic EBCOT.
Trait Implementations§
Source§impl Clone for EncodeOptions
impl Clone for EncodeOptions
Source§fn clone(&self) -> EncodeOptions
fn clone(&self) -> EncodeOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 EncodeOptions
impl Debug for EncodeOptions
Auto Trait Implementations§
impl Freeze for EncodeOptions
impl RefUnwindSafe for EncodeOptions
impl Send for EncodeOptions
impl Sync for EncodeOptions
impl Unpin for EncodeOptions
impl UnsafeUnpin for EncodeOptions
impl UnwindSafe for EncodeOptions
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