Represents a node in the filter chain.

Iterate over this object to retrieve pipes connected to the output pads.

Implements

Constructors

Methods

  • Return an iterator that can retrieve pipes connected to the output pads.

    Returns Iterator<Pipe, any, undefined>

  • Build a new filter chain and connect its input to the output pads of this filter chain.

    Parameters

    • connectedPipeCount: number

      Number of pipes to be passed to the new filter chain.

    Returns ChainNode

    The start node of the new filter chain.

  • Join this filter chain with another filter chain.

    Parameters

    • node: ChainNode

      Last node of the other filter chain

    Returns ChainNode

    Last node of the joined filter chain

  • Append a filter node to the filter chain.

    If this node is a start node, it will be replaced by the appended node.

    Parameters

    • filterOrFunc: Filter | FilterFunction

      Filter or its filter factory.

    • Optional swsFlags: string

      Flags that will be passed to swscale filters.

    Returns ChainNode

    The appended node.