Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /autonomi-ai_nos /nos /common /io /video /base.py
| """Simple video reader.""" | |
| from abc import ABC, abstractmethod | |
| from typing import Iterator, Optional, TypeVar | |
| T = TypeVar("T") | |
| class BaseVideoReader(ABC): | |
| def __repr__(self) -> str: | |
| return f"{self.__class__.__name__} [fn={self.filename}]" | |
| def __len__(self) -> int: | |
| raise NotImplementedError() | |
| def __iter__(self) -> Iterator[T]: | |
| raise NotImplementedError() | |
| def __next__(self) -> T: | |
| raise NotImplementedError() | |
| def __getitem__(self, idx: int) -> T: | |
| raise NotImplementedError() | |
| def open(self) -> T: | |
| raise NotImplementedError() | |
| def close(self) -> None: | |
| raise NotImplementedError() | |
| def pos(self) -> Optional[int]: | |
| raise NotImplementedError() | |
| def seek(self, idx: int) -> None: | |
| raise NotImplementedError() | |
| def reset(self) -> None: | |
| self.seek(0) | |
Xet Storage Details
- Size:
- 1.05 kB
- Xet hash:
- e722989ca260145e3f198a41e5bca8dd5ce142ec15936bf27b88cd8905132a01
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.