flushInput
Signal EOF on input index and hand over whatever the graph can produce, one frame at a time as for feedInput. Filters like overlay emit their final frames only once every input is flushed. Flush every input, in any order. The last call delivers the remaining frames.
onOutput runs with this graph's lock released, and can end the call, as for feedInput.
Return
how many frames came out, and whether the graph now waits for a particular input