#[non_exhaustive]pub struct InterCodingOptions {
pub intra_pick: bool,
pub auto_loop_filter: bool,
pub fitted_token_prob_updates: bool,
pub effort: Option<EncodeEffort>,
pub threads: usize,
pub search_token_probs: Option<TokenProbUpdates>,
}Expand description
Orthogonal per-frame quality/size feature toggles for the generic
inter front door
encode_p_frame_multi_ref_with_refresh_and_coding_options.
Each flag switches on one already-proven inter encoder feature; the
all-false default reproduces
encode_p_frame_multi_ref_with_refresh byte-for-byte. This struct
replaces the combinatorial _intra_pick / _auto_loop_filter /
_fitted_token_prob_updates function-name ladder for callers (like
the lagged stream driver) that need the features combined.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.intra_pick: bool§11 intra-within-inter picker: every MB additionally scores the
16 whole-block (y_mode, uv_mode) intra candidates against the
best inter pick — the
encode_p_frame_multi_ref_with_refresh_and_intra_pick
behaviour.
auto_loop_filter: boolRD-select the §9.4 loop_filter_level / sharpness per frame
(ignoring params.loop_filter_level) — the
encode_p_frame_multi_ref_auto_loop_filter behaviour, but
composable with any refresh ladder and the other toggles.
fitted_token_prob_updates: boolTwo-pass §13.4 token_prob_update() fit (defaults pass →
fit_token_prob_updates → fitted pass → smaller wire ships).
effort: Option<EncodeEffort>The rate-distortion search at an EncodeEffort level. None
(the default) is the original exhaustive search — the bytes of the
option-less entry points, kept for compatibility; it is both
slower and less rate-efficient than any level.
threads: usizeThread budget for the encode. 0 and 1 both mean serial (the
default); with n > 1 the macroblock search runs as a
macroblock-row wavefront on up to n scoped threads that end
with the call. The output bytes are the same for every budget.
search_token_probs: Option<TokenProbUpdates>§13.4 updates the search prices tokens against instead of the
§13.5 defaults — typically the
InterEncoded::token_prob_updates of the previous frame. With
an effort level and
fitted_token_prob_updates
they only steer the search and the frame ships its own fit;
without the fit they are shipped as given. (The two-pass fit of
the original search — fitted_token_prob_updates without an
effort level — ignores them.)
Implementations§
Source§impl InterCodingOptions
impl InterCodingOptions
Sourcepub fn with_effort(self, v: EncodeEffort) -> Self
pub fn with_effort(self, v: EncodeEffort) -> Self
Select the rate-distortion search at effort level v.
Sourcepub fn with_threads(self, v: usize) -> Self
pub fn with_threads(self, v: usize) -> Self
Set threads.
Sourcepub fn with_search_token_probs(self, v: Option<TokenProbUpdates>) -> Self
pub fn with_search_token_probs(self, v: Option<TokenProbUpdates>) -> Self
Set search_token_probs.
Sourcepub fn with_intra_pick(self, v: bool) -> Self
pub fn with_intra_pick(self, v: bool) -> Self
Set intra_pick.
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.