Expand description
Host-neutral motion-vector analysis and interpolation filters.
This crate contains the reusable core of vapoursynth-zoomvtools without any
VapourSynth dependency. Host integrations pass borrowed plane slices through
FrameView and FramePlanesMut, persist vector metadata with
MVAnalysisData, and call filter structs such as Super, Analyse,
Compensate, and Degrain.
Structs§
- Analyse
- Motion-analysis filter state for repeated frame analysis.
- Analyse
Options - Options used to construct
Analyse. - Analyse
Result - Output of
Analyse::analyse_frame. - BlockFPS
- Block-based frame-rate conversion filter.
- BlockFPS
Options - Options used to construct
BlockFPS. - Compensate
- Motion-compensation filter state.
- Compensate
Options - Options used to construct
Compensate. - Degrain
- Temporal denoiser driven by motion-compensated references.
- Degrain
Options - Options used to construct
Degrain. - Fake
Block Data - Decoded block entry from a packed vector stream.
- Fake
Group OfPlanes - Decoded motion-vector pyramid reconstructed from serialized analysis data.
- Finest
- Extracts the finest subpixel plane from a super clip.
- Flow
- One-way motion-warping filter.
- Flow
Blur - Motion-compensated temporal blur filter.
- Flow
Blur Options - Options used to construct
FlowBlur. - FlowFPS
- Frame-rate conversion filter built on motion interpolation.
- FlowFPS
Options - Options used to construct
FlowFPS. - Flow
Inter - Two-way motion-interpolation filter.
- Flow
Inter Extra Vectors - Additional motion fields used by the extra-vector interpolation path.
- Flow
Inter Options - Options used to construct
FlowInter. - Flow
Options - Options used to construct
Flow. - Frame
- Owned frame data stored as up to three Y/U/V planes.
- Frame
Plane - Owned storage for a single frame plane and its stride metadata.
- Frame
Planes - Borrowed Y/U/V plane slices without stride metadata.
- Frame
Planes Mut - Mutable borrowed Y/U/V plane slices stored behind stable raw pointers.
- Frame
View - Borrowed frame planes paired with per-plane pitch information.
- Framerate
- Rational frame rate.
- MVAnalysis
Data - Serialized analysis metadata that describes a motion-vector clip’s geometry.
- MVPlane
Set - Set of planes enabled for analysis or mask generation.
- Mask
- Motion-derived mask generator.
- Mask
Options - Options used to construct
Mask. - Motion
Flags - Motion-vector flags stored alongside analysis metadata.
- Motion
Vector - One motion vector and its matching cost.
- MvsOutput
- Search output for one analysis plane.
- Plane
Ref - Borrowed reference to one frame plane.
- Recalculate
- Motion-vector refinement filter state.
- Recalculate
Options - Options used to construct
Recalculate. - Recalculate
Result - Output of
Recalculate::recalculate_frame. - Resolution
- Frame dimensions in pixels.
- SCDetection
- Scene-change detector backed by scaled MVTools thresholds.
- Super
- Super-clip builder used as input to other motion filters.
- Super
Clip Info - Metadata recovered from a
Superclip. - Super
Options - Options used to construct
Super. - Super
PelClip - Optional refined subpixel clip passed to
Super::render_frame. - Video
Format - Static pixel-format metadata shared by all frames in a clip.
- Video
Info - Clip-wide video metadata.
Enums§
- Color
Family - Supported plane families for host-neutral video descriptions.
- DctMode
- Specifies how block differences (SAD) are calculated between frames. Can use spatial data, DCT coefficients, SATD, or combinations to improve motion estimation.
- Divide
Mode - Block-division mode used to split vectors into smaller subblocks.
- Flow
Mode - Output sampling mode used by
Flow. - Mask
Kind - Mask output mode used by the
Maskfilter family. - Penalty
Scaling - Penalty scaling applied to motion-vector predictors across levels.
- Plane
Selection - Plane selection used by plane-restricted filters.
- Reduce
Filter - Reduction filter used when building lower-resolution search levels.
- Sample
Type - Supported sample storage types.
- Scene
Change Behavior - Frame source used when scene-change detection marks vectors unusable.
- Search
Type - Search pattern used to locate matching motion blocks.
- Subpel
- Subpixel precision used when building and refining motion vectors.
- Subpel
Method - Interpolation kernel used to generate subpixel reference samples.
Constants§
- MAX_
RADIUS - Largest supported
Degrainradius. - MAX_
REFS_ SIZE - Maximum number of reference vector clips accepted by
Degrain. - MV_
DEFAULT_ SCD1 - Default
thscd1scene-change threshold used by motion-vector filters. - MV_
DEFAULT_ SCD2 - Default
thscd2scene-change percentage used by motion-vector filters. - PROP_
MVANALYSISDATA - Frame property key for serialized
MVAnalysisDatametadata. - PROP_
VECTORS - Frame property key for packed motion-vector block data.
Traits§
- Pixel
- Represents a pixel that can be
u8oru16
Type Aliases§
- Plane
Size Tuple - Per-plane stride tuple in Y/U/V order.