Class HslAdjustment

  • All Implemented Interfaces:
    GlEffect, Effect

    @Deprecated
    public class HslAdjustment
    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.
    Adjusts the HSL (Hue, Saturation, and Lightness) of a frame.
    • Field Detail

      • hueAdjustmentDegrees

        public final float hueAdjustmentDegrees
        Deprecated.
        Indicates the hue adjustment in degrees.
      • saturationAdjustment

        public final float saturationAdjustment
        Deprecated.
        Indicates the saturation adjustment.
      • lightnessAdjustment

        public final float lightnessAdjustment
        Deprecated.
        Indicates the lightness adjustment.
    • Method Detail

      • isNoOp

        public boolean isNoOp​(int inputWidth,
                              int inputHeight)
        Deprecated.
        Description copied from interface: GlEffect
        Returns whether a GlEffect applies no change at every timestamp.

        This can be used as a hint to skip this instance.

        Specified by:
        isNoOp in interface GlEffect
        Parameters:
        inputWidth - The input frame width, in pixels.
        inputHeight - The input frame height, in pixels.