| 1 |
cimport libav as lib |
| 2 |
from libc.stdint cimport uint8_t |
| 3 |
|
| 4 |
from av.codec.hwaccel cimport HWAccel |
| 5 |
from av.container.pyio cimport PyIOFile |
| 6 |
from av.container.streams cimport StreamContainer |
| 7 |
from av.dictionary cimport Dictionary |
| 8 |
from av.format cimport ContainerFormat |
| 9 |
from av.stream cimport Stream |
| 10 |
|
| 11 |
# Interrupt callback information, times are in seconds. |
| 12 |
ctypedef struct timeout_info: |
| 13 |
double start_time |
| 14 |
double timeout |
| 15 |
|
| 16 |
|
| 17 |
cdef class Container: |
| 18 |
cdef lib.AVFormatContext *ptr |
| 19 |
cdef readonly object name |
| 20 |
cdef readonly str metadata_encoding |
| 21 |
cdef readonly str metadata_errors |
| 22 |
|
| 23 |
cdef readonly PyIOFile file |
| 24 |
cdef int buffer_size |
| 25 |
cdef readonly object io_open |
| 26 |
cdef readonly object open_files |
| 27 |
|
| 28 |
cdef readonly ContainerFormat format |
| 29 |
|
| 30 |
cdef readonly dict options |
| 31 |
cdef readonly dict container_options |
| 32 |
cdef readonly list stream_options |
| 33 |
|
| 34 |
cdef HWAccel hwaccel |
| 35 |
|
| 36 |
cdef readonly StreamContainer streams |
| 37 |
cdef readonly dict metadata |
| 38 |
|
| 39 |
# Private API. |
| 40 |
cdef uint8_t _myflag # enum: writeable, input_was_opened, started, done |
| 41 |
cdef _assert_open(self) |
| 42 |
cdef int err_check(self, int value) except -1 |
| 43 |
|
| 44 |
# Timeouts |
| 45 |
cdef readonly object open_timeout |
| 46 |
cdef readonly object read_timeout |
| 47 |
cdef timeout_info interrupt_callback_info |
| 48 |
cdef set_timeout(self, object) |
| 49 |
cdef start_timeout(self) |