Interface GlEffect
-
- All Superinterfaces:
Effect
- All Known Subinterfaces:
ColorLut
,GlMatrixTransformation
,MatrixTransformation
,RgbMatrix
- All Known Implementing Classes:
Brightness
,Contrast
,Crop
,FrameCache
,FrameDropEffect
,HslAdjustment
,OverlayEffect
,Presentation
,RgbAdjustment
,RgbFilter
,ScaleAndRotateTransformation
,SingleColorLut
,TimestampWrapper
@Deprecated public interface GlEffect extends Effect
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.Interface for a video frame effect with aGlShaderProgram
implementation.Implementations contain information specifying the effect and can be converted to a
GlShaderProgram
which applies the effect.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default boolean
isNoOp(int inputWidth, int inputHeight)
Deprecated.Returns whether aGlEffect
applies no change at every timestamp.GlShaderProgram
toGlShaderProgram(Context context, boolean useHdr)
Deprecated.Returns aGlShaderProgram
that applies the effect.
-
-
-
Method Detail
-
toGlShaderProgram
GlShaderProgram toGlShaderProgram(Context context, boolean useHdr) throws VideoFrameProcessingException
Deprecated.Returns aGlShaderProgram
that applies the effect.- 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
.
-
isNoOp
default boolean isNoOp(int inputWidth, int inputHeight)
Deprecated.Returns whether aGlEffect
applies no change at every timestamp.This can be used as a hint to skip this instance.
- Parameters:
inputWidth
- The input frame width, in pixels.inputHeight
- The input frame height, in pixels.
-
-