DisplayLuts
public
final
class
DisplayLuts
extends Object
| java.lang.Object | |
| ↳ | android.hardware.DisplayLuts |
DisplayLuts provides the developers to apply Lookup Tables (Luts) to a
SurfaceControl. Luts provides ways to control tonemapping
for specific content.
The general flow for how DisplayLuts fits into a display pipeline is as follows:
- A
SurfaceControl's content is converted to RGB colors, if the source is YUV. - The RGB colors are de-gammed into linear values, normalized to the range of [0, 1].
- The linear values are passed through a 1D LUT (if set). The 1D LUT looks up and applies gain multipliers.
- The linear values are passed through a 3D LUT (if set). The 3D LUT maps input colors to a final linear color.
- The output values are transformed to the panel color gamut, and then gammed to arrive at the final color.
Importantly: the LUT is applied on colors in linear space, in the source content's color gamut.
See also:
Summary
Nested classes | |
|---|---|
class |
DisplayLuts.Entry
|
Public constructors | |
|---|---|
DisplayLuts()
Create a |
|
Public methods | |
|---|---|
void
|
set(DisplayLuts.Entry entry)
Set a Lut to be applied. |
void
|
set(DisplayLuts.Entry first, DisplayLuts.Entry second)
Set Luts in order to be applied. |
String
|
toString()
Returns a string representation of the object. |
Inherited methods | |
|---|---|
Public constructors
Public methods
set
public void set (DisplayLuts.Entry entry)
Set a Lut to be applied.
Use either this or set(Entry,Entry). The function will
replace any previously set lut(s).
| Parameters | |
|---|---|
entry |
DisplayLuts.Entry: Either an 1D Lut or a 3D Lut.
This value cannot be null. |
set
public void set (DisplayLuts.Entry first, DisplayLuts.Entry second)
Set Luts in order to be applied.
An 1D Lut and 3D Lut will be applied in order. Use either this or
set(Entry). The function will replace any previously set lut(s)
| Parameters | |
|---|---|
first |
DisplayLuts.Entry: An 1D Lut.
This value cannot be null. |
second |
DisplayLuts.Entry: A 3D Lut.
This value cannot be null. |
toString
public String toString ()
Returns a string representation of the object.
| Returns | |
|---|---|
String |
a string representation of the object. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-03-26 UTC.