// 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.
struct ModularOptions { /// Used in both encode and decode:
// Stop encoding/decoding when reaching a (non-meta) channel that has a // dimension bigger than max_chan_size.
size_t max_chan_size = 0xFFFFFF;
// Used during decoding for validation of transforms (sqeeezing) scheme.
size_t group_dim = 0x1FFFFFFF;
/// Encode options: // Fraction of pixels to look at to learn a MA tree // Number of iterations to do to learn a MA tree // (if zero there is no MA context model) float nb_repeats = .5f;
// Maximum number of (previous channel) properties to use in the MA trees int max_properties = 0; // no previous channels
// Predictor to use for each channel.
Predictor predictor = kUndefinedPredictor;
int wp_mode = 0;
float fast_decode_multiplier = 1.01f;
// Forces the encoder to produce a tree that is compatible with the WP-only // decode path (or with the no-wp path, or the gradient-only path). enumclass TreeMode { kGradientOnly, kWPOnly, kNoWP, kDefault };
TreeMode wp_tree_mode = TreeMode::kDefault;
// Skip fast paths in the encoder. bool skip_encoder_fast_path = false;
// Kind of tree to use. // TODO(veluca): add tree kinds for JPEG recompression with CfL enabled, // general AC metadata, different DC qualities, and others. enumclass TreeKind {
kTrivialTreeNoPredictor,
kLearn,
kJpegTranscodeACMeta,
kFalconACMeta,
kACMeta,
kWPFixedDC,
kGradientFixedDC,
};
TreeKind tree_kind = TreeKind::kLearn;
HistogramParams histogram_params;
// Ignore the image and just pretend all tokens are zeroes bool zero_tokens = false;
};
} // namespace jxl
#endif// LIB_JXL_MODULAR_OPTIONS_H_
Messung V0.5
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet)
¤
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.