pub struct KeyframeCodingOptions {
pub auto_loop_filter: bool,
pub fitted_token_prob_updates: bool,
}Expand description
Orthogonal per-frame quality/size feature toggles for the generic
key-frame front door
encode_keyframe_with_reconstruction_and_coding_options.
Each flag switches on one already-proven encoder feature; the
all-false default reproduces
encode_keyframe_with_reconstruction byte-for-byte. This struct
replaces the combinatorial _auto_loop_filter /
_fitted_token_prob_updates function-name ladder for callers (like
the lagged stream driver) that need the features combined.
Fields§
§auto_loop_filter: boolRD-select the §9.4 loop_filter_level / sharpness per frame
(ignoring params.loop_filter_level) — the
encode_keyframe_auto_loop_filter behaviour.
fitted_token_prob_updates: boolTwo-pass §13.4 token_prob_update() fit: pass 1 records the
observed §13.3 branch counts, fit_token_prob_updates derives
the profitable replacements, pass 2 re-encodes against the
merged table, and the smaller wire ships — the
encode_keyframe_with_fitted_token_prob_updates behaviour.
Implementations§
Source§impl KeyframeCodingOptions
impl KeyframeCodingOptions
Sourcepub fn with_auto_loop_filter(self, v: bool) -> Self
pub fn with_auto_loop_filter(self, v: bool) -> Self
Set auto_loop_filter.
Sourcepub fn with_fitted_token_prob_updates(self, v: bool) -> Self
pub fn with_fitted_token_prob_updates(self, v: bool) -> Self
Set fitted_token_prob_updates.