Beta/venv/lib/python3.12/site-packages/av/stream.pxd

36 lines
768 B
Cython
Raw Normal View History

2026-02-06 22:23:20 +01:00
cimport libav as lib
from av.codec.context cimport CodecContext
from av.container.core cimport Container
from av.frame cimport Frame
2026-06-16 17:09:34 +00:00
from av.index cimport IndexEntries
2026-02-06 22:23:20 +01:00
from av.packet cimport Packet
cdef class Stream:
cdef lib.AVStream *ptr
# Stream attributes.
cdef readonly Container container
cdef readonly dict metadata
# CodecContext attributes.
cdef readonly CodecContext codec_context
2026-06-16 17:09:34 +00:00
cdef readonly IndexEntries index_entries
2026-02-06 22:23:20 +01:00
# Private API.
cdef _init(self, Container, lib.AVStream*, CodecContext)
cdef _finalize_for_output(self)
cdef _set_id(self, value)
cdef Stream wrap_stream(Container, lib.AVStream*, CodecContext)
cdef class DataStream(Stream):
pass
cdef class AttachmentStream(Stream):
pass