| 1 |
from fractions import Fraction |
| 2 |
from typing import TypedDict |
| 3 |
|
| 4 |
from av.sidedata.motionvectors import MotionVectors |
| 5 |
|
| 6 |
class SideData(TypedDict, total=False): |
| 7 |
MOTION_VECTORS: MotionVectors |
| 8 |
|
| 9 |
class Frame: |
| 10 |
dts: int | None |
| 11 |
pts: int | None |
| 12 |
duration: int |
| 13 |
time_base: Fraction | None |
| 14 |
side_data: SideData |
| 15 |
opaque: object |
| 16 |
@property |
| 17 |
def time(self) -> float | None: ... |
| 18 |
@property |
| 19 |
def is_corrupt(self) -> bool: ... |
| 20 |
@property |
| 21 |
def key_frame(self) -> bool: ... |
| 22 |
def make_writable(self) -> None: ... |