public final class

RgbAdjustment.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.effect.RgbAdjustment.Builder

Overview

A builder for RgbAdjustment instances.

Summary

Constructors
publicBuilder()

Creates a new instance with default values.

Methods
public RgbAdjustmentbuild()

Creates a new RgbAdjustment instance.

public RgbAdjustment.BuildersetBlueScale(float blueScale)

Scales the blue channel of the frame by blueScale.

public RgbAdjustment.BuildersetGreenScale(float greenScale)

Scales the green channel of the frame by greenScale.

public RgbAdjustment.BuildersetRedScale(float redScale)

Scales the red channel of the frame by redScale.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates a new instance with default values.

Methods

public RgbAdjustment.Builder setRedScale(float redScale)

Scales the red channel of the frame by redScale.

Parameters:

redScale: The scale to apply to the red channel. Needs to be non-negative and the default value is 1.

public RgbAdjustment.Builder setGreenScale(float greenScale)

Scales the green channel of the frame by greenScale.

Parameters:

greenScale: The scale to apply to the green channel. Needs to be non-negative and the default value is 1.

public RgbAdjustment.Builder setBlueScale(float blueScale)

Scales the blue channel of the frame by blueScale.

Parameters:

blueScale: The scale to apply to the blue channel. Needs to be non-negative and the default value is 1.

public RgbAdjustment build()

Creates a new RgbAdjustment instance.