| 1 |
from libc.stdint cimport int32_t, uint8_t |
| 2 |
|
| 3 |
from av.packet cimport Packet |
| 4 |
from av.stream cimport Stream |
| 5 |
|
| 6 |
from .frame cimport VideoFrame |
| 7 |
|
| 8 |
|
| 9 |
cdef class VideoStream(Stream): |
| 10 |
# Display matrix (9 int32, native-endian) written as AV_PKT_DATA_DISPLAYMATRIX |
| 11 |
# coded side data at mux time, applied only when _has_display_matrix is set. |
| 12 |
cdef int32_t _display_matrix[9] |
| 13 |
cdef uint8_t _has_display_matrix |
| 14 |
|
| 15 |
cdef _apply_display_matrix(self) |
| 16 |
|
| 17 |
cpdef encode(self, VideoFrame frame=?) |
| 18 |
cpdef decode(self, Packet packet=?) |