| 1 |
cimport libav as lib |
| 2 |
|
| 3 |
from av.filter.context cimport FilterContext |
| 4 |
from av.filter.filter cimport Filter |
| 5 |
from av.filter.graph cimport Graph |
| 6 |
from av.filter.link cimport FilterContextPad, FilterLink |
| 7 |
|
| 8 |
|
| 9 |
cdef class FilterLink: |
| 10 |
cdef object _graph |
| 11 |
cdef lib.AVFilterLink *ptr |
| 12 |
|
| 13 |
cdef FilterContextPad _input |
| 14 |
cdef FilterContextPad _output |
| 15 |
|
| 16 |
|
| 17 |
cdef FilterLink wrap_filter_link(Graph graph, lib.AVFilterLink *ptr) |
| 18 |
|
| 19 |
cdef class FilterPad: |
| 20 |
cdef readonly Filter filter |
| 21 |
cdef readonly FilterContext context |
| 22 |
cdef readonly bint is_input |
| 23 |
cdef readonly int index |
| 24 |
|
| 25 |
cdef const lib.AVFilterPad *base_ptr |
| 26 |
|
| 27 |
|
| 28 |
cdef class FilterContextPad(FilterPad): |
| 29 |
cdef FilterLink _link |
| 30 |
|
| 31 |
|
| 32 |
cdef tuple alloc_filter_pads(Filter, const lib.AVFilterPad *ptr, bint is_input, FilterContext context=?) |