Skip to main content

Crate zoomvtools

Crate zoomvtools 

Source
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.
AnalyseOptions
Options used to construct Analyse.
AnalyseResult
Output of Analyse::analyse_frame.
BlockFPS
Block-based frame-rate conversion filter.
BlockFPSOptions
Options used to construct BlockFPS.
Compensate
Motion-compensation filter state.
CompensateOptions
Options used to construct Compensate.
Degrain
Temporal denoiser driven by motion-compensated references.
DegrainOptions
Options used to construct Degrain.
FakeBlockData
Decoded block entry from a packed vector stream.
FakeGroupOfPlanes
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.
FlowBlur
Motion-compensated temporal blur filter.
FlowBlurOptions
Options used to construct FlowBlur.
FlowFPS
Frame-rate conversion filter built on motion interpolation.
FlowFPSOptions
Options used to construct FlowFPS.
FlowInter
Two-way motion-interpolation filter.
FlowInterExtraVectors
Additional motion fields used by the extra-vector interpolation path.
FlowInterOptions
Options used to construct FlowInter.
FlowOptions
Options used to construct Flow.
Frame
Owned frame data stored as up to three Y/U/V planes.
FramePlane
Owned storage for a single frame plane and its stride metadata.
FramePlanes
Borrowed Y/U/V plane slices without stride metadata.
FramePlanesMut
Mutable borrowed Y/U/V plane slices stored behind stable raw pointers.
FrameView
Borrowed frame planes paired with per-plane pitch information.
Framerate
Rational frame rate.
MVAnalysisData
Serialized analysis metadata that describes a motion-vector clip’s geometry.
MVPlaneSet
Set of planes enabled for analysis or mask generation.
Mask
Motion-derived mask generator.
MaskOptions
Options used to construct Mask.
MotionFlags
Motion-vector flags stored alongside analysis metadata.
MotionVector
One motion vector and its matching cost.
MvsOutput
Search output for one analysis plane.
PlaneRef
Borrowed reference to one frame plane.
Recalculate
Motion-vector refinement filter state.
RecalculateOptions
Options used to construct Recalculate.
RecalculateResult
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.
SuperClipInfo
Metadata recovered from a Super clip.
SuperOptions
Options used to construct Super.
SuperPelClip
Optional refined subpixel clip passed to Super::render_frame.
VideoFormat
Static pixel-format metadata shared by all frames in a clip.
VideoInfo
Clip-wide video metadata.

Enums§

ColorFamily
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.
DivideMode
Block-division mode used to split vectors into smaller subblocks.
FlowMode
Output sampling mode used by Flow.
MaskKind
Mask output mode used by the Mask filter family.
PenaltyScaling
Penalty scaling applied to motion-vector predictors across levels.
PlaneSelection
Plane selection used by plane-restricted filters.
ReduceFilter
Reduction filter used when building lower-resolution search levels.
SampleType
Supported sample storage types.
SceneChangeBehavior
Frame source used when scene-change detection marks vectors unusable.
SearchType
Search pattern used to locate matching motion blocks.
Subpel
Subpixel precision used when building and refining motion vectors.
SubpelMethod
Interpolation kernel used to generate subpixel reference samples.

Constants§

MAX_RADIUS
Largest supported Degrain radius.
MAX_REFS_SIZE
Maximum number of reference vector clips accepted by Degrain.
MV_DEFAULT_SCD1
Default thscd1 scene-change threshold used by motion-vector filters.
MV_DEFAULT_SCD2
Default thscd2 scene-change percentage used by motion-vector filters.
PROP_MVANALYSISDATA
Frame property key for serialized MVAnalysisData metadata.
PROP_VECTORS
Frame property key for packed motion-vector block data.

Traits§

Pixel
Represents a pixel that can be u8 or u16

Type Aliases§

PlaneSizeTuple
Per-plane stride tuple in Y/U/V order.