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

19 lines
528 B
Cython
Raw Normal View History

2026-06-16 17:09:34 +00:00
from libc.stdint cimport int32_t, uint8_t
2026-02-06 22:23:20 +01:00
from av.packet cimport Packet
from av.stream cimport Stream
from .frame cimport VideoFrame
cdef class VideoStream(Stream):
2026-06-16 17:09:34 +00:00
# Display matrix (9 int32, native-endian) written as AV_PKT_DATA_DISPLAYMATRIX
# coded side data at mux time, applied only when _has_display_matrix is set.
cdef int32_t _display_matrix[9]
cdef uint8_t _has_display_matrix
cdef _apply_display_matrix(self)
2026-02-06 22:23:20 +01:00
cpdef encode(self, VideoFrame frame=?)
cpdef decode(self, Packet packet=?)