pub fn parse_prefilter(s: &str) -> Result<PrefilterMode, Error>Expand description
Parses a --prefilter-style string into a PrefilterMode.
"none" or an empty string means PrefilterMode::None.
"nlm" or "nlm:<strength_scale>" builds
PrefilterMode::NlmSpatial. strength_scale multiplies the main
pass strength for the pilot pass. Bare "nlm" uses
DEFAULT_PILOT_STRENGTH_SCALE.
"bilateral:<sigma_s>,<sigma_r>" builds PrefilterMode::Bilateral.
This never produces PrefilterMode::External, since that mode has
no string form: it requires the caller to supply a reference frame
through [super::NlmDenoiser::push_frame_with_reference].