Brightness
@UnstableApi
public final class Brightness implements RgbMatrix
Modifies brightness of an input frame.
Summary
Public constructors |
|---|
Brightness(@FloatRange(from = "-1", to = 1) float brightness)Modifies brightness by adding a constant value to red, green, and blue values. |
Public methods |
|
|---|---|
float[] |
getMatrix(long presentationTimeUs, boolean useHdr)Returns the 4x4 RGB transformation |
boolean |
isNoOp(int inputWidth, int inputHeight)Returns whether a |
Inherited methods |
||
|---|---|---|
|
||
|
||
|
Public constructors
Brightness
public Brightness(@FloatRange(from = "-1", to = 1) float brightness)
Modifies brightness by adding a constant value to red, green, and blue values.
| Parameters | |
|---|---|
@FloatRange(from = "-1", to = 1) float brightness |
The constant value to add to red, green, and blue values. Should be greater than or equal to |
Public methods
getMatrix
public float[] getMatrix(long presentationTimeUs, boolean useHdr)
Returns the 4x4 RGB transformation matrix to apply to the color values of each pixel in the frame with the given timestamp.
| Parameters | |
|---|---|
long presentationTimeUs |
The timestamp of the frame to apply the matrix on. |
boolean useHdr |
If |
| Returns | |
|---|---|
float[] |
The |