Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions av/audio/resampler.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class AudioResampler:
layout: AudioLayout
options: dict[str, str]
graph: Graph | None
is_passthrough: bool

def __init__(
self,
Expand Down
4 changes: 4 additions & 0 deletions av/codec/hwaccel.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class HWDeviceType(IntEnum):
mediacodec = cast(int, ...)
vulkan = cast(int, ...)
d3d12va = cast(int, ...)
amf = cast(int, ...)
ohcodec = cast(int, ...)

class HWConfigMethod(IntEnum):
none = cast(int, ...)
Expand Down Expand Up @@ -52,6 +54,8 @@ class HWDevice:

class HWAccel:
options: dict[str, object]
flags: int
allow_software_fallback: bool

@property
def is_hw_owned(self) -> bool: ...
Expand Down
9 changes: 5 additions & 4 deletions av/error.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ def err_check(res: int, filename: str | None = None) -> int: ...
class FFmpegError(Exception):
errno: int | None
strerror: str | None
filename: str
log: tuple[int, tuple[int, str, str] | None]

@property
def filename(self) -> str | None: ...
@property
def log(self) -> tuple[int, str, str] | None: ...
def __init__(
self,
code: int,
message: str,
filename: str | None = None,
log: tuple[int, tuple[int, str, str] | None] | None = None,
log: tuple[int, str, str] | None = None,
) -> None: ...

class LookupError(FFmpegError): ...
Expand Down
6 changes: 6 additions & 0 deletions av/filter/filter.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from .link import FilterPad

class Filter:
name: str
description: str
flags: int

@property
def inputs(self) -> tuple[FilterPad, ...]: ...
@property
def outputs(self) -> tuple[FilterPad, ...]: ...
def __init__(self, name: str) -> None: ...

filters_available: set[str]
4 changes: 4 additions & 0 deletions av/format.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class ContainerFormat:
@property
def long_name(self) -> str: ...
@property
def input(self) -> ContainerFormat | None: ...
@property
def output(self) -> ContainerFormat | None: ...
@property
def is_input(self) -> bool: ...
@property
def is_output(self) -> bool: ...
Expand Down
1 change: 1 addition & 0 deletions av/video/format.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class VideoFormat:
def chroma_height(self, luma_height: int = 0) -> int: ...

class VideoFormatComponent:
index: int
plane: int
bits: int
is_alpha: bool
Expand Down
1 change: 1 addition & 0 deletions av/video/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class VideoFrame(Frame):
) -> VideoFrame: ...
def to_rgb(self, **kwargs: Any) -> VideoFrame: ...
def save(self, filepath: str | Path, **options: Any) -> None: ...
def set_image(self, img: Any) -> None: ...
def to_image(self, **kwargs): ...
def to_ndarray(
self, channel_last: bool = False, **kwargs: Any
Expand Down