// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.
usecrate::api::JxlCms;
pubenum JxlProgressiveMode { /// Renders all pixels in every call to Process.
Eager, /// Renders pixels once passes are completed.
Pass, /// Renders pixels only once the final frame is ready.
FullFrame,
}
#[non_exhaustive] pubstruct 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 cms: Option<Box<dyn JxlCms>>, /// Fail decoding images with more than this number of samples, or with frames with /// more than this number of samples. The limit counts the product of pixels and /// channels, so for example an image with 1 extra channel of size 1024x1024 has 4 /// million samples. pub sample_limit: Option<usize>, /// Use high precision mode for decoding. /// When false (default), uses lower precision settings that match libjxl's default. /// When true, uses higher precision at the cost of performance. /// /// This affects multiple decoder decisions including spline rendering precision /// and potentially intermediate buffer storage (e.g., using f32 vs f16). pub high_precision: bool, /// If true, multiply RGB by alpha before writing to output buffer. /// This produces premultiplied alpha output, which is useful for compositing. /// Default: false (output straight alpha) pub premultiply_output: bool, /// If true, only parse frame headers/TOC and skip section decoding. /// /// This is useful for collecting [`VisibleFrameInfo`](crate::api::VisibleFrameInfo) /// via the regular decoder API without producing pixels. pub scan_frames_only: bool,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.