MisterAI's picture
download
raw
631 Bytes
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)

Xet Storage Details

Size:
631 Bytes
·
Xet hash:
7f850e4313e4d656d7603d46d0af2c613dbd6c8ea8c77a1466e7d1294083ebee

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.