Skip to content

Commit eaa675d

Browse files
committed
Remove FilterFlags
1 parent 3de331d commit eaa675d

File tree

5 files changed

+1
-43
lines changed

5 files changed

+1
-43
lines changed

av/filter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from .filter import Filter, FilterFlags, filter_descriptor, filters_available
1+
from .filter import Filter, filter_descriptor, filters_available
22
from .graph import Graph
33
from .loudnorm import stats

av/filter/filter.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ class Filter:
77
descriptor: Descriptor
88
options: tuple[Option, ...] | None
99
flags: int
10-
dynamic_inputs: bool
11-
dynamic_outputs: bool
12-
timeline_support: bool
13-
slice_threads: bool
1410
command_support: bool
1511

1612
def __init__(self, name: str) -> None: ...

av/filter/filter.pyx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ cdef Filter wrap_filter(const lib.AVFilter *ptr):
1313
return filter_
1414

1515

16-
cpdef enum FilterFlags:
17-
DYNAMIC_INPUTS = lib.AVFILTER_FLAG_DYNAMIC_INPUTS
18-
DYNAMIC_OUTPUTS = lib.AVFILTER_FLAG_DYNAMIC_OUTPUTS
19-
SLICE_THREADS = lib.AVFILTER_FLAG_SLICE_THREADS
20-
SUPPORT_TIMELINE_GENERIC = lib.AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
21-
SUPPORT_TIMELINE_INTERNAL = lib.AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
22-
23-
2416
cdef class Filter:
2517
def __cinit__(self, name):
2618
if name is _cinit_sentinel:
@@ -55,22 +47,6 @@ cdef class Filter:
5547
def flags(self):
5648
return self.ptr.flags
5749

58-
@property
59-
def dynamic_inputs(self):
60-
return bool(self.ptr.flags & lib.AVFILTER_FLAG_DYNAMIC_INPUTS)
61-
62-
@property
63-
def dynamic_outputs(self):
64-
return bool(self.ptr.flags & lib.AVFILTER_FLAG_DYNAMIC_OUTPUTS)
65-
66-
@property
67-
def timeline_support(self):
68-
return bool(self.ptr.flags & lib.AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC)
69-
70-
@property
71-
def slice_threads(self):
72-
return bool(self.ptr.flags & lib.AVFILTER_FLAG_SLICE_THREADS)
73-
7450
@property
7551
def command_support(self):
7652
return self.ptr.process_command != NULL

include/libavfilter/avfilter.pxd

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ cdef extern from "libavfilter/avfilter.h" nogil:
2424
const AVFilterPad *outputs
2525
int (*process_command)(AVFilterContext *, const char *cmd, const char *arg, char *res, int res_len, int flags)
2626

27-
cdef enum:
28-
AVFILTER_FLAG_DYNAMIC_INPUTS
29-
AVFILTER_FLAG_DYNAMIC_OUTPUTS
30-
AVFILTER_FLAG_SLICE_THREADS
31-
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
32-
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
33-
3427
cdef AVFilter* avfilter_get_by_name(const char *name)
3528
cdef const AVFilter* av_filter_iterate(void **opaque)
3629

tests/test_filters.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ def test_filter_descriptor(self) -> None:
5050
f = Filter("testsrc")
5151
assert f.name == "testsrc"
5252
assert f.description == "Generate test pattern."
53-
assert not f.dynamic_inputs
54-
assert not f.dynamic_outputs
55-
56-
def test_dynamic_filter_descriptor(self):
57-
f = Filter("split")
58-
assert not f.dynamic_inputs
59-
assert f.dynamic_outputs
6053

6154
def test_generator_graph(self):
6255
graph = Graph()

0 commit comments

Comments
 (0)