MultipleInputVideoGraph.Factory
public final class MultipleInputVideoGraph.Factory implements VideoGraph.Factory
A VideoGraph.Factory for MultipleInputVideoGraph.
Summary
Public constructors |
|---|
Factory()A |
Factory(VideoFrameProcessor.Factory videoFrameProcessorFactory) |
Public methods |
|
|---|---|
MultipleInputVideoGraph |
create(Creates a new |
boolean |
Returns whether the |
Public constructors
Factory
public Factory()
A Factory for MultipleInputVideoGraph that uses a DefaultVideoFrameProcessor.Factory.
Public methods
create
public MultipleInputVideoGraph create(
Context context,
ColorInfo outputColorInfo,
DebugViewProvider debugViewProvider,
VideoGraph.Listener listener,
Executor listenerExecutor,
long initialTimestampOffsetUs,
boolean renderFramesAutomatically
)
Creates a new VideoGraph instance.
| Parameters | |
|---|---|
Context context |
A |
ColorInfo outputColorInfo |
The |
DebugViewProvider debugViewProvider |
|
VideoGraph.Listener listener |
A |
Executor listenerExecutor |
The |
long initialTimestampOffsetUs |
The timestamp offset for the first frame, in microseconds. |
boolean renderFramesAutomatically |
If |
| Returns | |
|---|---|
MultipleInputVideoGraph |
A new instance. |
supportsMultipleInputs
public boolean supportsMultipleInputs()
Returns whether the createdVideoGraph supports multiple video inputs.