Skip to content
Merged
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
8 changes: 6 additions & 2 deletions av/video/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,19 @@ class VideoFrame(Frame):
) -> VideoFrame: ...
def to_rgb(self, **kwargs: Any) -> VideoFrame: ...
def to_image(self, **kwargs: Any) -> Image.Image: ...
def to_ndarray(self, **kwargs: Any) -> _SupportedNDarray: ...
def to_ndarray(
self, force_channel_last: bool = False, **kwargs: Any
) -> _SupportedNDarray: ...
@staticmethod
def from_image(img: Image.Image) -> VideoFrame: ...
@staticmethod
def from_numpy_buffer(
array: _SupportedNDarray, format: str = "rgb24", width: int = 0
) -> VideoFrame: ...
@staticmethod
def from_ndarray(array: _SupportedNDarray, format: str = "rgb24") -> VideoFrame: ...
def from_ndarray(
array: _SupportedNDarray, format: str = "rgb24", channel_last: bool = False
) -> VideoFrame: ...
@staticmethod
def from_bytes(
data: bytes,
Expand Down
Loading
Loading