Skip to main content

JpegToHtj2kEncodeOptions

Struct JpegToHtj2kEncodeOptions 

Source
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: u8

Number of wavelet decomposition levels.

§reversible: bool

Whether to emit reversible/lossless coding.

§code_block_width_exp: u8

Code-block width exponent minus two.

§code_block_height_exp: u8

Code-block height exponent minus two.

§guard_bits: u8

JPEG 2000 guard bits.

§use_ht_block_coding: bool

Whether to encode HTJ2K code blocks instead of classic EBCOT.

§progression_order: J2kProgressionOrder

Packet progression order.

§write_tlm: bool

Whether to write a TLM marker segment.

§write_plt: bool

Whether to write PLT packet-length marker segments.

§write_plm: bool

Whether to write PLM packet-length marker segments.

§write_ppm: bool

Whether to write PPM packed packet-header marker segments.

§write_ppt: bool

Whether to write PPT packed packet-header marker segments.

§write_sop: bool

Whether to write SOP marker segments before packets.

§write_eph: bool

Whether to write EPH markers after packet headers.

§use_mct: bool

Whether to apply JPEG 2000 multi-component transform.

§num_layers: u8

Number of cumulative quality layers.

§quality_layer_byte_targets: Vec<u64>

Optional cumulative packet-body byte targets for each quality layer.

§validate_high_throughput_codestream: bool

Whether native HTJ2K validation is enabled after encode.

§irreversible_quantization_scale: f32

Global irreversible 9/7 quantization scale.

§irreversible_quantization_subband_scales: IrreversibleQuantizationSubbandScales

Per-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

Source§

fn clone(&self) -> JpegToHtj2kEncodeOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JpegToHtj2kEncodeOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for JpegToHtj2kEncodeOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for JpegToHtj2kEncodeOptions

Source§

fn eq(&self, other: &JpegToHtj2kEncodeOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for JpegToHtj2kEncodeOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.