File: streams.pxd

package info (click to toggle)
python-av 16.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,684 kB
  • sloc: python: 7,607; sh: 182; ansic: 174; makefile: 135
file content (21 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cimport libav as lib

from av.stream cimport Stream

from .core cimport Container


cdef class StreamContainer:
    cdef list _streams

    # For the different types.
    cdef readonly tuple video
    cdef readonly tuple audio
    cdef readonly tuple subtitles
    cdef readonly tuple attachments
    cdef readonly tuple data
    cdef readonly tuple other

    cdef add_stream(self, Stream stream)
    cdef int _get_best_stream_index(self, Container container, lib.AVMediaType type_enum, Stream related) noexcept