Debian Codegraph @

av/sidedata/motionvectors.pyi

raw
1 from typing import Any, overload
2
3 import numpy as np
4
5 from .sidedata import SideData
6
7 class MotionVectors(SideData):
8 @overload
9 def __getitem__(self, index: int) -> MotionVector: ...
10 @overload
11 def __getitem__(self, index: slice) -> list[MotionVector]: ...
12 def __len__(self) -> int: ...
13 def to_ndarray(self) -> np.ndarray[Any, Any]: ...
14
15 class MotionVector:
16 source: int
17 w: int
18 h: int
19 src_x: int
20 src_y: int
21 dst_x: int
22 dst_y: int
23 motion_x: int
24 motion_y: int
25 motion_scale: int