public class Filter extends Object implements VideoFilter
A filter has an ordered list of input labels, a name, arguments, and an ordered list of output labels. Arguments can be either ordered or named. If both are present, ordered must be emitted first.
Currently filtergraph escaping is not the responsibility of this class. All arguments must be pre-escaped by the time they get to this class.
It is intended that this class is not used directly. Instead, implementers will add a specific implementation of the filter they are implementing. A complete list can be found in FFMPEG Documentation. However, the class is not abstract to not prohibit direct use.
| Constructor and Description |
|---|
Filter(String name)
Create a filter with the specified name with no input/output labels or arguments.
|
| Modifier and Type | Method and Description |
|---|---|
Filter |
addInputLabel(String... label)
Add an input label to the list of input labels for this filter
|
Filter |
addNamedArgument(String name,
String value)
Add a named argument to the set of named arguments for this filter
|
Filter |
addOrderedArgument(String... arg)
Add an ordered argument to the list of arguments for this filter
|
Filter |
addOutputLabel(String... label)
Add an output label to the list of output labels for this filter
|
String |
getExpression()
The expression to be used in the video filter argument to ffmpeg
|
public Filter(String name)
name - The name of the filter.public Filter addInputLabel(String... label)
label - The name of the input label(s)public Filter addOrderedArgument(String... arg)
arg - Any number of ordered argumentspublic Filter addNamedArgument(String name, String value)
name - The name of the argumentvalue - The value for the argumentpublic Filter addOutputLabel(String... label)
label - The name of the input labelpublic String getExpression()
VideoFiltergetExpression in interface VideoFilterCopyright © 2020. All rights reserved.