Class OverlayEffect
- java.lang.Object
-
- com.google.android.exoplayer2.effect.OverlayEffect
-
@Deprecated public final class OverlayEffect extends Object implements GlEffect
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Applies a list ofTextureOverlay
s to a frame in FIFO order (the last overlay in the list is displayed on top).
-
-
Constructor Summary
Constructors Constructor Description OverlayEffect(ImmutableList<TextureOverlay> textureOverlays)
Deprecated.Creates a new instance for the given list ofTextureOverlay
s.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SingleFrameGlShaderProgram
toGlShaderProgram(Context context, boolean useHdr)
Deprecated.Returns aGlShaderProgram
that applies the effect.
-
-
-
Constructor Detail
-
OverlayEffect
public OverlayEffect(ImmutableList<TextureOverlay> textureOverlays)
Deprecated.Creates a new instance for the given list ofTextureOverlay
s.- Parameters:
textureOverlays
- TheTextureOverlay
s to be blended into the frame.
-
-
Method Detail
-
toGlShaderProgram
public SingleFrameGlShaderProgram toGlShaderProgram(Context context, boolean useHdr) throws VideoFrameProcessingException
Deprecated.Description copied from interface:GlEffect
Returns aGlShaderProgram
that applies the effect.- Specified by:
toGlShaderProgram
in interfaceGlEffect
- Parameters:
context
- AContext
.useHdr
- Whether input textures come from an HDR source. Iftrue
, colors will be in linear RGB BT.2020. Iffalse
, colors will be in linear RGB BT.709.- Throws:
VideoFrameProcessingException
- If an error occurs while creating theGlShaderProgram
.
-
-