Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
23
venv/lib/python3.12/site-packages/av/subtitles/stream.py
Normal file
23
venv/lib/python3.12/site-packages/av/subtitles/stream.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import cython
|
||||
from cython.cimports.av.packet import Packet
|
||||
from cython.cimports.av.stream import Stream
|
||||
|
||||
|
||||
@cython.cclass
|
||||
class SubtitleStream(Stream):
|
||||
def __getattr__(self, name):
|
||||
return getattr(self.codec_context, name)
|
||||
|
||||
@cython.ccall
|
||||
def decode(self, packet: Packet | None = None):
|
||||
"""
|
||||
Decode a :class:`.Packet` and returns a subtitle object.
|
||||
|
||||
:rtype: list[AssSubtitle] | list[BitmapSubtitle]
|
||||
|
||||
.. seealso:: This is a passthrough to :meth:`.CodecContext.decode`.
|
||||
"""
|
||||
if not packet:
|
||||
packet = Packet()
|
||||
|
||||
return self.codec_context.decode(packet)
|
||||
Loading…
Add table
Add a link
Reference in a new issue