Brightness
@UnstableApi
class Brightness : RgbMatrix
Modifies brightness of an input frame.
Summary
Public constructors |
|---|
Brightness(brightness: @FloatRange(from = "-1", to = 1) Float)Modifies brightness by adding a constant value to red, green, and blue values. |
Public functions |
|
|---|---|
FloatArray<Float>! |
Returns the 4x4 RGB transformation |
Boolean |
Returns whether a |
Inherited functions |
||
|---|---|---|
|
||
|
||
|
Public constructors
Brightness
Brightness(brightness: @FloatRange(from = "-1", to = 1) Float)
Modifies brightness by adding a constant value to red, green, and blue values.
| Parameters | |
|---|---|
brightness: @FloatRange(from = "-1", to = 1) Float |
The constant value to add to red, green, and blue values. Should be greater than or equal to |
Public functions
getMatrix
fun getMatrix(presentationTimeUs: Long, useHdr: Boolean): FloatArray<Float>!
Returns the 4x4 RGB transformation matrix to apply to the color values of each pixel in the frame with the given timestamp.
| Parameters | |
|---|---|
presentationTimeUs: Long |
The timestamp of the frame to apply the matrix on. |
useHdr: Boolean |
If |
| Returns | |
|---|---|
FloatArray<Float>! |
The |