Spaces:
Build error
Build error
File size: 791 Bytes
64772a4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
from typing import Iterator, Literal
class SubtitleSet:
format: int
start_display_time: int
end_display_time: int
pts: int
rects: tuple[Subtitle]
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[Subtitle]: ...
def __getitem__(self, i: int) -> Subtitle: ...
class Subtitle:
type: Literal[b"none", b"bitmap", b"text", b"ass"]
class BitmapSubtitle(Subtitle):
type: Literal[b"bitmap"]
x: int
y: int
width: int
height: int
nb_colors: int
planes: tuple[BitmapSubtitlePlane, ...]
class BitmapSubtitlePlane:
subtitle: BitmapSubtitle
index: int
buffer_size: int
class TextSubtitle(Subtitle):
type: Literal[b"text"]
text: bytes
class AssSubtitle(Subtitle):
type: Literal[b"ass"]
ass: bytes
|