pub struct JpxDecodeOptions {
pub target_resolution: Option<(u32, u32)>,
pub color_space_option: JpxColorSpaceOption,
pub strict: bool,
}Expand description
Options for JPEG 2000 decoding.
Maps to upstream PDFium’s CJPX_Decoder::Create() parameters.
Fields§
§target_resolution: Option<(u32, u32)>Target resolution as (width, height).
When set, the decoder may decode at a lower resolution level that
best matches the target, avoiding full-resolution decode for thumbnail
generation. Maps to upstream’s resolution_levels_to_skip parameter
via hayro-jpeg2000’s target_resolution setting.
color_space_option: JpxColorSpaceOptionColor space handling option.
strict: boolEnable strict decoding mode.
When enabled, the decoder rejects non-conforming streams that would
otherwise be decoded with best-effort. Defaults to false.
Trait Implementations§
Source§impl Clone for JpxDecodeOptions
impl Clone for JpxDecodeOptions
Source§fn clone(&self) -> JpxDecodeOptions
fn clone(&self) -> JpxDecodeOptions
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 JpxDecodeOptions
impl Debug for JpxDecodeOptions
Source§impl Default for JpxDecodeOptions
impl Default for JpxDecodeOptions
Source§fn default() -> JpxDecodeOptions
fn default() -> JpxDecodeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JpxDecodeOptions
impl RefUnwindSafe for JpxDecodeOptions
impl Send for JpxDecodeOptions
impl Sync for JpxDecodeOptions
impl Unpin for JpxDecodeOptions
impl UnsafeUnpin for JpxDecodeOptions
impl UnwindSafe for JpxDecodeOptions
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