| 1 |
from typing import Iterator, overload |
| 2 |
|
| 3 |
class IndexEntry: |
| 4 |
pos: int |
| 5 |
timestamp: int |
| 6 |
flags: int |
| 7 |
is_keyframe: bool |
| 8 |
is_discard: bool |
| 9 |
size: int |
| 10 |
min_distance: int |
| 11 |
|
| 12 |
class IndexEntries: |
| 13 |
def __len__(self) -> int: ... |
| 14 |
def __iter__(self) -> Iterator[IndexEntry]: ... |
| 15 |
@overload |
| 16 |
def __getitem__(self, index: int) -> IndexEntry: ... |
| 17 |
@overload |
| 18 |
def __getitem__(self, index: slice) -> list[IndexEntry]: ... |
| 19 |
def search_timestamp( |
| 20 |
self, timestamp, *, backward: bool = True, any_frame: bool = False |
| 21 |
) -> int: ... |