FeedResult

sealed interface FeedResult

What a FilterGraph.feedInput or FilterGraph.flushInput call produced, and what the graph needs next.

Inheritors

Types

Link copied to clipboard
data class NeedsInput(val index: Int, val produced: Int) : FeedResult

The graph cannot produce more until input index gets a frame or a flush: a filter with several inputs, such as overlay or amix, waits for every one of them. A frame the graph could not take yet stays with it and goes in first on the next call for its input.

Link copied to clipboard
data class Ready(val produced: Int) : FeedResult

The graph can take more on any input. A graph with one input always answers this.

Properties

Link copied to clipboard
abstract val produced: Int

How many frames the call handed to its callback.