OverlayEffect
@UnstableApi
class OverlayEffect : GlEffect
Applies a list of TextureOverlays to a frame in FIFO order (the last overlay in the list is displayed on top).
This effect assumes a non-linear working color space for SDR input and a linear working color space or HDR input.
Summary
Public constructors |
|---|
OverlayEffect(textureOverlays: (Mutable)List<TextureOverlay!>!)Creates a new instance for the given list of |
Public functions |
|
|---|---|
BaseGlShaderProgram! |
toGlShaderProgram(context: Context!, useHdr: Boolean)Returns a |
Inherited functions |
||
|---|---|---|
|
||
Public constructors
OverlayEffect
OverlayEffect(textureOverlays: (Mutable)List<TextureOverlay!>!)
Creates a new instance for the given list of TextureOverlays.
| Parameters | |
|---|---|
textureOverlays: (Mutable)List<TextureOverlay!>! |
The |
Public functions
toGlShaderProgram
fun toGlShaderProgram(context: Context!, useHdr: Boolean): BaseGlShaderProgram!
Returns a GlShaderProgram that applies the effect.
| Parameters | |
|---|---|
context: Context! |
A |
useHdr: Boolean |
Whether input textures come from an HDR source. If |
| Throws | |
|---|---|
androidx.media3.common.VideoFrameProcessingException |
If an error occurs while creating the |