Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion av/filter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .filter import Filter, FilterFlags, filter_descriptor, filters_available
from .filter import Filter, filter_descriptor, filters_available
from .graph import Graph
from .loudnorm import stats
4 changes: 0 additions & 4 deletions av/filter/filter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ class Filter:
descriptor: Descriptor
options: tuple[Option, ...] | None
flags: int
dynamic_inputs: bool
dynamic_outputs: bool
timeline_support: bool
slice_threads: bool
command_support: bool

def __init__(self, name: str) -> None: ...
Expand Down
24 changes: 0 additions & 24 deletions av/filter/filter.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ cdef Filter wrap_filter(const lib.AVFilter *ptr):
return filter_


cpdef enum FilterFlags:
DYNAMIC_INPUTS = lib.AVFILTER_FLAG_DYNAMIC_INPUTS
DYNAMIC_OUTPUTS = lib.AVFILTER_FLAG_DYNAMIC_OUTPUTS
SLICE_THREADS = lib.AVFILTER_FLAG_SLICE_THREADS
SUPPORT_TIMELINE_GENERIC = lib.AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
SUPPORT_TIMELINE_INTERNAL = lib.AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL


cdef class Filter:
def __cinit__(self, name):
if name is _cinit_sentinel:
Expand Down Expand Up @@ -55,22 +47,6 @@ cdef class Filter:
def flags(self):
return self.ptr.flags

@property
def dynamic_inputs(self):
return bool(self.ptr.flags & lib.AVFILTER_FLAG_DYNAMIC_INPUTS)

@property
def dynamic_outputs(self):
return bool(self.ptr.flags & lib.AVFILTER_FLAG_DYNAMIC_OUTPUTS)

@property
def timeline_support(self):
return bool(self.ptr.flags & lib.AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC)

@property
def slice_threads(self):
return bool(self.ptr.flags & lib.AVFILTER_FLAG_SLICE_THREADS)

@property
def command_support(self):
return self.ptr.process_command != NULL
Expand Down
7 changes: 0 additions & 7 deletions include/libavfilter/avfilter.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ cdef extern from "libavfilter/avfilter.h" nogil:
const AVFilterPad *outputs
int (*process_command)(AVFilterContext *, const char *cmd, const char *arg, char *res, int res_len, int flags)

cdef enum:
AVFILTER_FLAG_DYNAMIC_INPUTS
AVFILTER_FLAG_DYNAMIC_OUTPUTS
AVFILTER_FLAG_SLICE_THREADS
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL

cdef AVFilter* avfilter_get_by_name(const char *name)
cdef const AVFilter* av_filter_iterate(void **opaque)

Expand Down
7 changes: 0 additions & 7 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ def test_filter_descriptor(self) -> None:
f = Filter("testsrc")
assert f.name == "testsrc"
assert f.description == "Generate test pattern."
assert not f.dynamic_inputs
assert not f.dynamic_outputs

def test_dynamic_filter_descriptor(self):
f = Filter("split")
assert not f.dynamic_inputs
assert f.dynamic_outputs

def test_generator_graph(self):
graph = Graph()
Expand Down
Loading