Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers /venv /lib /python3.10 /site-packages /av /subtitles /stream.py
| import cython | |
| from cython.cimports.av.packet import Packet | |
| from cython.cimports.av.stream import Stream | |
| class SubtitleStream(Stream): | |
| def __getattr__(self, name): | |
| return getattr(self.codec_context, name) | |
| 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:
- 645 Bytes
- Xet hash:
- 2520766ef1b506a69afe2995ee6e9b42978516e5482882eab8938a56ced0a4e6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.