AVFilterGraph

public final class AVFilterGraph

Undocumented

  • Create a filter graph.

    Declaration

    Swift

    public init()
  • The filter list in the graph.

    Declaration

    Swift

    public var filters: [AVFilterContext] { get }
  • The number of filters in the graph.

    Declaration

    Swift

    public var filterCount: Int { get }
  • Create and add a filter instance into an existing graph. The filter instance is created from the filter filt and inited with the parameters.

    Throws

    AVError

    Declaration

    Swift

    public func addFilter(_ filter: AVFilter, name: String, args: String? = nil) throws -> AVFilterContext

    Parameters

    filter

    the filter to create an instance of

    name

    the instance name to give to the created filter instance

    args

    Options to initialize the filter with. This must be a ‘:’-separated list of options in the ‘key=value’ form. May be NULL if the options have been set directly using the AVOptions API or there are no options that need to be set.

    Return Value

    newly created filter instance

  • Add a graph described by a string to a graph.

    In the graph filters description, if the input label of the first filter is not specified, in is assumed; if the output label of the last filter is not specified, out is assumed.

    Throws

    AVError

    Declaration

    Swift

    public func parse(filters: String, inputs: AVFilterInOut, outputs: AVFilterInOut) throws

    Parameters

    filters

    string to be parsed

    inputs

    pointer to a linked list to the inputs of the graph, may be nil. If non-NULL, *inputs is updated to contain the list of open inputs after the parsing, should be freed with avfilter_inout_free().

    outputs

    pointer to a linked list to the outputs of the graph, may be NULL. If non-NULL, *outputs is updated to contain the list of open outputs after the parsing, should be freed with avfilter_inout_free().

  • Check validity and configure all the links and formats in the graph.

    Throws

    AVError

    Declaration

    Swift

    public func configure() throws
  • Declaration

    Swift

    public var description: String { get }
  • Undocumented

    Declaration

    Swift

    public func withUnsafeObjectPointer<T>(_ body: (UnsafeMutableRawPointer) throws -> T) rethrows -> T