motion ¶
Classes:
-
MotionVectors
–Class for storing and managing motion vectors for a video clip.
MotionVectors ¶
MotionVectors()
Bases: vs_object
Class for storing and managing motion vectors for a video clip.
Methods:
-
clear
–Clear all stored motion vectors and reset the instance.
-
set_vector
–Store a motion vector.
Attributes:
-
analysis_data
(dict[str, Any]
) –Dictionary containing motion vector analysis data.
-
has_vectors
(bool
) –Check if motion vectors are available.
-
motion_vectors
(dict[MVDirection, dict[int, ConstantFormatVideoNode]]
) –Dictionary containing both backward and forward motion vectors.
-
mv_multi
(ConstantFormatVideoNode
) –Multi-vector clip.
-
scaled
(bool
) –Whether motion vectors have been scaled.
-
tr
(int
) –Temporal radius of the motion vectors.
Source code
32 33 34 35 36 |
|
analysis_data instance-attribute
¶
Dictionary containing motion vector analysis data.
motion_vectors instance-attribute
¶
motion_vectors: dict[MVDirection, dict[int, ConstantFormatVideoNode]]
Dictionary containing both backward and forward motion vectors.
clear ¶
clear() -> None
Clear all stored motion vectors and reset the instance.
Source code
41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
set_vector ¶
set_vector(vector: VideoNode, direction: MVDirection, delta: int) -> None
Store a motion vector.
Parameters:
-
vector
¶VideoNode
) –Motion vector clip to store.
-
direction
¶MVDirection
) –Direction of the motion vector (forward or backward).
-
delta
¶int
) –Frame distance for the motion vector.
Source code
66 67 68 69 70 71 72 73 74 75 76 |
|