Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
45
venv/lib/python3.12/site-packages/av/subtitles/subtitle.pyi
Normal file
45
venv/lib/python3.12/site-packages/av/subtitles/subtitle.pyi
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
from typing import Iterator, Literal
|
||||
|
||||
class SubtitleSet:
|
||||
format: int
|
||||
start_display_time: int
|
||||
end_display_time: int
|
||||
pts: int
|
||||
rects: tuple[Subtitle, ...]
|
||||
|
||||
@staticmethod
|
||||
def create(
|
||||
text: bytes,
|
||||
start: int,
|
||||
end: int,
|
||||
pts: int = 0,
|
||||
subtitle_format: int = 1,
|
||||
) -> SubtitleSet: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[Subtitle]: ...
|
||||
def __getitem__(self, i: int) -> Subtitle: ...
|
||||
|
||||
class Subtitle: ...
|
||||
|
||||
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 AssSubtitle(Subtitle):
|
||||
type: Literal[b"ass", b"text"]
|
||||
@property
|
||||
def ass(self) -> bytes: ...
|
||||
@property
|
||||
def dialogue(self) -> bytes: ...
|
||||
@property
|
||||
def text(self) -> bytes: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue