Skip to content

Commit

Permalink
Include a few more definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Nov 29, 2023
1 parent d0b06d6 commit cf8e1fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions av/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ from .codec.codec import *
from .container.core import *
from .container.input import InputContainer
from .container.output import OutputContainer
from .error import *
from .video.format import *
from .video.frame import *
8 changes: 6 additions & 2 deletions av/container/input.pyi
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
from av.frame import Frame
from av.packet import Packet

from .core import Container
from .streams import Stream

class InputContainer(Container):
bit_rate: int
size: int

def demux(self, *args, **kwargs): ...
def decode(self, *args, **kwargs): ...
def close(self): ...
def demux(self, *args, **kwargs) -> Packet: ...
def decode(self, *args, **kwargs) -> Frame: ...
def seek(
self,
offset: int,
Expand Down
1 change: 1 addition & 0 deletions av/error.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ class LookupError(FFmpegError): ...
class HTTPError(FFmpegError): ...
class HTTPClientError(FFmpegError): ...
class UndefinedError(FFmpegError): ...
class InvalidDataError(ValueError): ...

0 comments on commit cf8e1fd

Please sign in to comment.