Beta/venv/lib/python3.12/site-packages/av/sidedata/motionvectors.pyi

26 lines
536 B
Python
Raw Normal View History

2026-06-16 17:09:34 +00:00
from typing import Any, overload
2026-02-06 22:23:20 +01:00
import numpy as np
from .sidedata import SideData
2026-06-16 17:09:34 +00:00
class MotionVectors(SideData):
2026-02-06 22:23:20 +01:00
@overload
2026-06-16 17:09:34 +00:00
def __getitem__(self, index: int) -> MotionVector: ...
2026-02-06 22:23:20 +01:00
@overload
2026-06-16 17:09:34 +00:00
def __getitem__(self, index: slice) -> list[MotionVector]: ...
2026-02-06 22:23:20 +01:00
def __len__(self) -> int: ...
def to_ndarray(self) -> np.ndarray[Any, Any]: ...
class MotionVector:
source: int
w: int
h: int
src_x: int
src_y: int
dst_x: int
dst_y: int
motion_x: int
motion_y: int
motion_scale: int