HslAdjustment
@UnstableApi
class HslAdjustment : GlEffect
Adjusts the HSL (Hue, Saturation, and Lightness) of a frame.
Summary
Nested types |
|---|
class HslAdjustment.BuilderA builder for |
Public functions |
|
|---|---|
Boolean |
Returns whether a |
BaseGlShaderProgram! |
toGlShaderProgram(context: Context!, useHdr: Boolean)Returns a |
Public properties |
|
|---|---|
Float |
Indicates the hue adjustment in degrees. |
Float |
Indicates the lightness adjustment. |
Float |
Indicates the saturation adjustment. |
Inherited functions |
||
|---|---|---|
|
Public functions
isNoOp
fun isNoOp(inputWidth: Int, inputHeight: Int): Boolean
Returns whether a GlEffect applies no change at every timestamp.
This can be used as a hint to skip this instance.
toGlShaderProgram
fun toGlShaderProgram(context: Context!, useHdr: Boolean): BaseGlShaderProgram!
Returns a GlShaderProgram that applies the effect.
| Parameters | |
|---|---|
context: Context! |
A |
useHdr: Boolean |
Whether input textures come from an HDR source. If |
| Throws | |
|---|---|
androidx.media3.common.VideoFrameProcessingException |
If an error occurs while creating the |