Skip to main content

Module params

Module params 

Source
Expand description

Turns a VapourSynth clip’s format and a filter’s script arguments into the option types av-denoise-core denoises with.

Everything here is a pure function over plain values, with no VapourSynth core and no GPU, so the whole accept/reject matrix is unit-testable. Format itself cannot be built outside a running core, so layout_from_format takes a RawFormat of the plain fields it needs instead. The caller in filter.rs does the short extraction from a real Format.

Structs§

RawFormat
The handful of format fields layout_from_format actually reads.
RawParams
The raw script arguments a filter function receives, before they are validated and folded into a PlaneOptions.

Enums§

AlgorithmKind
Which denoising algorithm a filter function runs.

Functions§

layout_from_format
Validates a clip’s format and turns it into a FrameLayout.
plane_options_from
Validates raw against layout and builds the PlaneOptions a PlanarDenoiser is created from.