Class FilterInOutList
Represents a collection of filter graph input and output entries.
Implements
Inherited Members
Namespace: FFmpeg.Filters
Assembly: FFmpeg.dll
Syntax
public class FilterInOutList : IDisposable, IReadOnlyList<FilterInOutEntry>, IReadOnlyCollection<FilterInOutEntry>, IEnumerable<FilterInOutEntry>, IEnumerable
Remarks
FilterInOutList wraps FFmpeg's linked list of
AVFilterInOut structures. It is typically used to specify
named inputs and outputs when parsing filter graph descriptions.
Constructors
View SourceFilterInOutList()
Initializes an empty FilterInOutList.
Declaration
public FilterInOutList()
Properties
View SourceCount
Gets the number of entries in the list.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the entry at the specified index.
Declaration
public FilterInOutEntry this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the entry to retrieve. |
Property Value
| Type | Description |
|---|---|
| FilterInOutEntry | The entry at the specified index. |
Exceptions
| Type | Condition |
|---|---|
| IndexOutOfRangeException |
|
Methods
View SourceAdd(string, FilterContext, int)
Adds a new filter input or output entry to the list.
Declaration
public FilterInOutEntry Add(string linkName, FilterContext filter, int filterPadIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| string | linkName | The name of the filter graph link. |
| FilterContext | filter | The filter associated with the link. |
| int | filterPadIndex | The zero-based index of the filter pad. |
Returns
| Type | Description |
|---|---|
| FilterInOutEntry | The newly created FilterInOutEntry. |
Clear()
Removes all entries from the list and releases the associated unmanaged resources.
Declaration
public void Clear()
Dispose()
Releases the unmanaged resources used by this list.
Declaration
public void Dispose()
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
~FilterInOutList()
Declaration
protected ~FilterInOutList()
GetEnumerator()
Returns an enumerator that iterates through the entries in the list.
Declaration
public IEnumerator<FilterInOutEntry> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<FilterInOutEntry> | An enumerator for the collection. |