Stay organized with collections
Save and categorize content based on your preferences.
LutProperties
public
final
class
LutProperties
extends Object
Provides Lut properties of the device.
A Lut (Look-Up Table) is a pre-calculated table for color correction.
Applications may be interested in the Lut properties exposed by
this class to determine if the Lut(s) they select using
SurfaceControl.Transaction.setLuts(SurfaceControl, DisplayLuts)
are by the HWC.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
ONE_DIMENSION
public static final int ONE_DIMENSION
The Lut is one dimensional
Constant Value:
1
(0x00000001)
SAMPLING_KEY_CIE_Y
public static final int SAMPLING_KEY_CIE_Y
use y of CIE XYZ as the gain value of a lut
Constant Value:
2
(0x00000002)
SAMPLING_KEY_MAX_RGB
public static final int SAMPLING_KEY_MAX_RGB
use max of r,g,b channel as the gain value of a Lut
Constant Value:
1
(0x00000001)
SAMPLING_KEY_RGB
public static final int SAMPLING_KEY_RGB
use r,g,b channel as the gain value of a Lut
Constant Value:
0
(0x00000000)
THREE_DIMENSION
public static final int THREE_DIMENSION
The Lut is three dimensional
Constant Value:
3
(0x00000003)
Public methods
getDimension
public int getDimension ()
getSamplingKeys
public int[] getSamplingKeys ()
getSize
public int getSize ()
Returns |
int |
the size of the Lut for each dimension |
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 2025-03-13 UTC.
[null,null,["Last updated 2025-03-13 UTC."],[],[],null,["# LutProperties\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nLutProperties\n=============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/hardware/LutProperties \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\nfinal\n\nclass\nLutProperties\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.hardware.LutProperties |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nProvides Lut properties of the device.\n\n\nA Lut (Look-Up Table) is a pre-calculated table for color correction.\nApplications may be interested in the Lut properties exposed by\nthis class to determine if the Lut(s) they select using\n[SurfaceControl.Transaction.setLuts(SurfaceControl, DisplayLuts)](/reference/android/view/SurfaceControl.Transaction#setLuts(android.view.SurfaceControl,%20android.hardware.DisplayLuts)) are by the HWC.\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| ### Constants ||\n|-------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [ONE_DIMENSION](/reference/android/hardware/LutProperties#ONE_DIMENSION) The Lut is one dimensional |\n| `int` | [SAMPLING_KEY_CIE_Y](/reference/android/hardware/LutProperties#SAMPLING_KEY_CIE_Y) use y of CIE XYZ as the gain value of a lut |\n| `int` | [SAMPLING_KEY_MAX_RGB](/reference/android/hardware/LutProperties#SAMPLING_KEY_MAX_RGB) use max of r,g,b channel as the gain value of a Lut |\n| `int` | [SAMPLING_KEY_RGB](/reference/android/hardware/LutProperties#SAMPLING_KEY_RGB) use r,g,b channel as the gain value of a Lut |\n| `int` | [THREE_DIMENSION](/reference/android/hardware/LutProperties#THREE_DIMENSION) The Lut is three dimensional |\n\n| ### Public methods ||\n|----------|----------------------------------------------------------------------------------------|\n| ` int` | ` `[getDimension](/reference/android/hardware/LutProperties#getDimension())`() ` |\n| ` int[]` | ` `[getSamplingKeys](/reference/android/hardware/LutProperties#getSamplingKeys())`() ` |\n| ` int` | ` `[getSize](/reference/android/hardware/LutProperties#getSize())`() ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### ONE_DIMENSION\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int ONE_DIMENSION\n```\n\nThe Lut is one dimensional\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### SAMPLING_KEY_CIE_Y\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int SAMPLING_KEY_CIE_Y\n```\n\nuse y of CIE XYZ as the gain value of a lut\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### SAMPLING_KEY_MAX_RGB\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int SAMPLING_KEY_MAX_RGB\n```\n\nuse max of r,g,b channel as the gain value of a Lut\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### SAMPLING_KEY_RGB\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int SAMPLING_KEY_RGB\n```\n\nuse r,g,b channel as the gain value of a Lut\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### THREE_DIMENSION\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int THREE_DIMENSION\n```\n\nThe Lut is three dimensional\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\nPublic methods\n--------------\n\n### getDimension\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic int getDimension ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | Value is [ONE_DIMENSION](/reference/android/hardware/LutProperties#ONE_DIMENSION), or [THREE_DIMENSION](/reference/android/hardware/LutProperties#THREE_DIMENSION) \u003cbr /\u003e |\n\n### getSamplingKeys\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic int[] getSamplingKeys ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int[]` | the list of sampling keys This value cannot be `null`. Value is [SAMPLING_KEY_RGB](/reference/android/hardware/LutProperties#SAMPLING_KEY_RGB), [SAMPLING_KEY_MAX_RGB](/reference/android/hardware/LutProperties#SAMPLING_KEY_MAX_RGB), or [SAMPLING_KEY_CIE_Y](/reference/android/hardware/LutProperties#SAMPLING_KEY_CIE_Y) \u003cbr /\u003e |\n\n### getSize\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic int getSize ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|-----------------------------------------------|\n| `int` | the size of the Lut for each dimension \u003cbr /\u003e |"]]