VideoCompositor
@UnstableApi
public interface VideoCompositor extends GlTextureProducer
DefaultVideoCompositor |
A basic |
Interface for a video compositor that combines frames from multiple input sources to produce output frames.
Input and output are provided via OpenGL textures.
Methods may be called from any thread.
Summary
Nested types |
|---|
public interface VideoCompositor.ListenerListener for errors. |
Public methods |
|
|---|---|
abstract void |
queueInputTexture(Queues an input texture to be composited. |
abstract void |
registerInputSource(int inputIndex)Registers a new input source. |
abstract void |
release()Releases all resources. |
abstract void |
setVideoCompositorSettings(Sets the |
abstract void |
signalEndOfInputSource(int inputIndex)Signals that no more frames will come from the upstream |
Inherited methods |
||
|---|---|---|
|
Public methods
queueInputTexture
abstract void queueInputTexture(
int inputIndex,
GlTextureProducer textureProducer,
GlTextureInfo inputTexture,
ColorInfo colorInfo,
long presentationTimeUs
)
Queues an input texture to be composited.
| Parameters | |
|---|---|
int inputIndex |
The index of the input source, the same index used when |
GlTextureProducer textureProducer |
The source from where the |
GlTextureInfo inputTexture |
The |
ColorInfo colorInfo |
The |
long presentationTimeUs |
The presentation time of |
registerInputSource
abstract void registerInputSource(int inputIndex)
Registers a new input source.
| Parameters | |
|---|---|
int inputIndex |
The index of the input source which could be used to determine the order of the input sources. The same index should to be used in |
release
abstract void release()
Releases all resources.
This VideoCompositor instance must not be used after this method is called.
setVideoCompositorSettings
abstract void setVideoCompositorSettings(
VideoCompositorSettings videoCompositorSettings
)
Sets the VideoCompositorSettings to apply to inputs.
signalEndOfInputSource
abstract void signalEndOfInputSource(int inputIndex)
Signals that no more frames will come from the upstream GlTextureProducer.Listener.
| Parameters | |
|---|---|
int inputIndex |
The index of the input source. |