RgbAdjustment
@UnstableApi
public final class RgbAdjustment implements RgbMatrix
Scales the red, green, and blue color channels of a frame.
Summary
Nested types |
---|
public final class RgbAdjustment.Builder A builder for |
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 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 |