| 1 |
cimport libav as lib |
| 2 |
|
| 3 |
from av.codec.context cimport CodecContext |
| 4 |
from av.container.core cimport Container |
| 5 |
from av.frame cimport Frame |
| 6 |
from av.index cimport IndexEntries |
| 7 |
from av.packet cimport Packet |
| 8 |
|
| 9 |
|
| 10 |
cdef class Stream: |
| 11 |
cdef lib.AVStream *ptr |
| 12 |
|
| 13 |
# Stream attributes. |
| 14 |
cdef readonly Container container |
| 15 |
cdef readonly dict metadata |
| 16 |
|
| 17 |
# CodecContext attributes. |
| 18 |
cdef readonly CodecContext codec_context |
| 19 |
|
| 20 |
cdef readonly IndexEntries index_entries |
| 21 |
|
| 22 |
# Private API. |
| 23 |
cdef _init(self, Container, lib.AVStream*, CodecContext) |
| 24 |
cdef _finalize_for_output(self) |
| 25 |
cdef _set_id(self, value) |
| 26 |
|
| 27 |
|
| 28 |
cdef Stream wrap_stream(Container, lib.AVStream*, CodecContext) |
| 29 |
|
| 30 |
|
| 31 |
cdef class DataStream(Stream): |
| 32 |
pass |
| 33 |
|
| 34 |
cdef class AttachmentStream(Stream): |
| 35 |
pass |