Class RgbAdjustment.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.effect.RgbAdjustment.Builder
-
- Enclosing class:
- RgbAdjustment
public static final class RgbAdjustment.Builder extends Object
A builder forRgbAdjustmentinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()Creates a new instance with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RgbAdjustmentbuild()Creates a newRgbAdjustmentinstance.RgbAdjustment.BuildersetBlueScale(float blueScale)Scales the blue channel of the frame byblueScale.RgbAdjustment.BuildersetGreenScale(float greenScale)Scales the green channel of the frame bygreenScale.RgbAdjustment.BuildersetRedScale(float redScale)Scales the red channel of the frame byredScale.
-
-
-
Method Detail
-
setRedScale
@CanIgnoreReturnValue public RgbAdjustment.Builder setRedScale(@FloatRange(from=0.0) float redScale)
Scales the red channel of the frame byredScale.- Parameters:
redScale- The scale to apply to the red channel. Needs to be non-negative and the default value is1.
-
setGreenScale
@CanIgnoreReturnValue public RgbAdjustment.Builder setGreenScale(@FloatRange(from=0.0) float greenScale)
Scales the green channel of the frame bygreenScale.- Parameters:
greenScale- The scale to apply to the green channel. Needs to be non-negative and the default value is1.
-
setBlueScale
@CanIgnoreReturnValue public RgbAdjustment.Builder setBlueScale(@FloatRange(from=0.0) float blueScale)
Scales the blue channel of the frame byblueScale.- Parameters:
blueScale- The scale to apply to the blue channel. Needs to be non-negative and the default value is1.
-
build
public RgbAdjustment build()
Creates a newRgbAdjustmentinstance.
-
-