use crate::api::JxlCms;
pub enum JxlProgressiveMode {
Eager,
Pass,
FullFrame,
}
#[non_exhaustive]
pub struct JxlDecoderOptions {
pub adjust_orientation: bool,
pub render_spot_colors: bool,
pub coalescing: bool,
pub desired_intensity_target: Option<f32>,
pub skip_preview: bool,
pub progressive_mode: JxlProgressiveMode,
pub xyb_output_linear: bool,
pub enable_output: bool,
pub cms: Option<Box<dyn JxlCms>>,
pub pixel_limit: Option<usize>,
pub high_precision: bool,
pub premultiply_output: bool,
}
impl Default for JxlDecoderOptions {
fn default() -> Self {
Self {
adjust_orientation: true,
render_spot_colors: true,
coalescing: true,
skip_preview: true,
desired_intensity_target: None,
progressive_mode: JxlProgressiveMode::Pass,
xyb_output_linear: true,
enable_output: true,
cms: None,
pixel_limit: None,
high_precision: false,
premultiply_output: false,
}
}
}