pub struct JpegToHtj2kEncodeOptions {Show 24 fields
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,
pub progression_order: J2kProgressionOrder,
pub write_tlm: bool,
pub write_plt: bool,
pub write_plm: bool,
pub write_ppm: bool,
pub write_ppt: bool,
pub write_sop: bool,
pub write_eph: bool,
pub use_mct: bool,
pub num_layers: u8,
pub quality_layer_byte_targets: Vec<u64>,
pub validate_high_throughput_codestream: bool,
pub irreversible_quantization_scale: f32,
pub irreversible_quantization_subband_scales: IrreversibleQuantizationSubbandScales,
pub component_sampling: Option<Vec<(u8, u8)>>,
pub tile_size: Option<(u32, u32)>,
pub tile_part_packet_limit: Option<u16>,
pub precinct_exponents: Vec<(u8, u8)>,
}Expand description
HTJ2K encode options used after JPEG coefficient-domain wavelet bands are produced.
Fields§
§num_decomposition_levels: u8Number of wavelet decomposition levels.
reversible: boolWhether to emit reversible/lossless coding.
code_block_width_exp: u8Code-block width exponent minus two.
code_block_height_exp: u8Code-block height exponent minus two.
guard_bits: u8JPEG 2000 guard bits.
use_ht_block_coding: boolWhether to encode HTJ2K code blocks instead of classic EBCOT.
progression_order: J2kProgressionOrderPacket progression order.
write_tlm: boolWhether to write a TLM marker segment.
write_plt: boolWhether to write PLT packet-length marker segments.
write_plm: boolWhether to write PLM packet-length marker segments.
write_ppm: boolWhether to write PPM packed packet-header marker segments.
write_ppt: boolWhether to write PPT packed packet-header marker segments.
write_sop: boolWhether to write SOP marker segments before packets.
write_eph: boolWhether to write EPH markers after packet headers.
use_mct: boolWhether to apply JPEG 2000 multi-component transform.
num_layers: u8Number of cumulative quality layers.
quality_layer_byte_targets: Vec<u64>Optional cumulative packet-body byte targets for each quality layer.
validate_high_throughput_codestream: boolWhether native HTJ2K validation is enabled after encode.
irreversible_quantization_scale: f32Global irreversible 9/7 quantization scale.
irreversible_quantization_subband_scales: IrreversibleQuantizationSubbandScalesPer-subband irreversible 9/7 quantization scales.
component_sampling: Option<Vec<(u8, u8)>>Optional per-component SIZ sampling factors (XRsiz, YRsiz).
tile_size: Option<(u32, u32)>Optional tile size for multi-tile codestreams.
tile_part_packet_limit: Option<u16>Optional maximum number of complete packets to place in each tile-part.
precinct_exponents: Vec<(u8, u8)>Optional precinct exponents in COD order.
Trait Implementations§
Source§impl Clone for JpegToHtj2kEncodeOptions
impl Clone for JpegToHtj2kEncodeOptions
Source§fn clone(&self) -> JpegToHtj2kEncodeOptions
fn clone(&self) -> JpegToHtj2kEncodeOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JpegToHtj2kEncodeOptions
impl Debug for JpegToHtj2kEncodeOptions
Source§impl Default for JpegToHtj2kEncodeOptions
impl Default for JpegToHtj2kEncodeOptions
Source§impl PartialEq for JpegToHtj2kEncodeOptions
impl PartialEq for JpegToHtj2kEncodeOptions
Source§fn eq(&self, other: &JpegToHtj2kEncodeOptions) -> bool
fn eq(&self, other: &JpegToHtj2kEncodeOptions) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JpegToHtj2kEncodeOptions
Auto Trait Implementations§
impl Freeze for JpegToHtj2kEncodeOptions
impl RefUnwindSafe for JpegToHtj2kEncodeOptions
impl Send for JpegToHtj2kEncodeOptions
impl Sync for JpegToHtj2kEncodeOptions
impl Unpin for JpegToHtj2kEncodeOptions
impl UnsafeUnpin for JpegToHtj2kEncodeOptions
impl UnwindSafe for JpegToHtj2kEncodeOptions
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