pub struct BrotliEncoderParams {Show 22 fields
pub dist: BrotliDistanceParams,
pub mode: BrotliEncoderMode,
pub quality: i32,
pub q9_5: bool,
pub lgwin: i32,
pub lgblock: i32,
pub size_hint: usize,
pub disable_literal_context_modeling: i32,
pub hasher: BrotliHasherParams,
pub log_meta_block: bool,
pub stride_detection_quality: u8,
pub high_entropy_detection_quality: u8,
pub cdf_adaptation_detection: u8,
pub prior_bitmask_detection: u8,
pub literal_adaptation: [(u16, u16); 4],
pub large_window: bool,
pub avoid_distance_prefix_search: bool,
pub catable: bool,
pub use_dictionary: bool,
pub appendable: bool,
pub magic_number: bool,
pub favor_cpu_efficiency: bool,
}Fields§
§dist: BrotliDistanceParams§mode: BrotliEncoderModeif this brotli file is generic, font or specifically text
quality: i32quality param between 0 and 11 (11 is smallest but takes longest to encode)
q9_5: bool§lgwin: i32log of how big the ring buffer should be for copying prior data
lgblock: i32log of how often metablocks should be serialized
size_hint: usizehow big the source file is (or 0 if no hint is provided)
disable_literal_context_modeling: i32avoid serializing out priors for literal sections in the favor of decode speed
hasher: BrotliHasherParams§log_meta_block: boolproduce an IR of the compression file
stride_detection_quality: u8attempt to detect how many bytes before the current byte generates the best prediction of it
- 0 = off (stride 1 always)
- 1 = on per 16th of a file
- 2 = on per block type switch
high_entropy_detection_quality: u8if nonzero, will search for high entropy strings and log them differently to the IR
cdf_adaptation_detection: u8if nonzero it will search for the temporal locality and effectiveness of the priors for literals. The best adaptation and forgetfulness will be logged per metablock to the IR
prior_bitmask_detection: u8whether to search for whether the previous byte or the context_map are better predictors on a per-context-map basis
literal_adaptation: [(u16, u16); 4]for prior bitmask detection: stride_low, stride_speed, cm_low, cm_speed
large_window: bool§avoid_distance_prefix_search: boolavoid search for the best ndirect vs npostfix parameters for distance
catable: boolconstruct brotli in such a way that it may be concatenated with another brotli file using appropriate bit ops
use_dictionary: boolcan use the dictionary (default yes unless catable is set)
appendable: boolconstruct brotli in such a way that another concatable brotli file may be appended
magic_number: boolinclude a magic number and version number and size_hint at the beginning
favor_cpu_efficiency: boolprefer to compute the map of previously seen strings just once for all the threads at the beginning, since they overlap significantly
Trait Implementations§
Source§impl Clone for BrotliEncoderParams
impl Clone for BrotliEncoderParams
Source§fn clone(&self) -> BrotliEncoderParams
fn clone(&self) -> BrotliEncoderParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more