Stay organized with collections
Save and categorize content based on your preferences.
LutProperties
class LutProperties
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 android.view.SurfaceControl.Transaction#setLuts
are by the HWC.
Summary
Constants |
static Int |
The Lut is one dimensional
|
static Int |
use y of CIE XYZ as the gain value of a lut
|
static Int |
use max of r,g,b channel as the gain value of a Lut
|
static Int |
use r,g,b channel as the gain value of a Lut
|
static Int |
The Lut is three dimensional
|
Constants
ONE_DIMENSION
static val ONE_DIMENSION: Int
The Lut is one dimensional
Value: 1
SAMPLING_KEY_CIE_Y
static val SAMPLING_KEY_CIE_Y: Int
use y of CIE XYZ as the gain value of a lut
Value: 2
SAMPLING_KEY_MAX_RGB
static val SAMPLING_KEY_MAX_RGB: Int
use max of r,g,b channel as the gain value of a Lut
Value: 1
SAMPLING_KEY_RGB
static val SAMPLING_KEY_RGB: Int
use r,g,b channel as the gain value of a Lut
Value: 0
THREE_DIMENSION
static val THREE_DIMENSION: Int
The Lut is three dimensional
Value: 3
Public methods
getDimension
fun getDimension(): Int
getSamplingKeys
fun getSamplingKeys(): IntArray
getSize
fun getSize(): Int
Return |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# LutProperties\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nLutProperties\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/hardware/LutProperties \"View this page in Java\") \n\n```\nclass LutProperties\n```\n\n|---|-------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.hardware.LutProperties](#) |\n\nProvides Lut properties of the device.\n\nA 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 [android.view.SurfaceControl.Transaction#setLuts](../view/SurfaceControl.Transaction.html#setLuts(android.view.SurfaceControl,%20android.hardware.DisplayLuts)) are by the HWC.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [ONE_DIMENSION](#ONE_DIMENSION:kotlin.Int) The Lut is one dimensional |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SAMPLING_KEY_CIE_Y](#SAMPLING_KEY_CIE_Y:kotlin.Int) use y of CIE XYZ as the gain value of a lut |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SAMPLING_KEY_MAX_RGB](#SAMPLING_KEY_MAX_RGB:kotlin.Int) use max of r,g,b channel as the gain value of a Lut |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SAMPLING_KEY_RGB](#SAMPLING_KEY_RGB:kotlin.Int) use r,g,b channel as the gain value of a Lut |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [THREE_DIMENSION](#THREE_DIMENSION:kotlin.Int) The Lut is three dimensional |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getDimension](#getDimension())`()` \u003cbr /\u003e |\n| [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html) | [getSamplingKeys](#getSamplingKeys())`()` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getSize](#getSize())`()` \u003cbr /\u003e |\n\nConstants\n---------\n\n### ONE_DIMENSION\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ONE_DIMENSION: Int\n```\n\nThe Lut is one dimensional \n\n Value: 1\n\n### SAMPLING_KEY_CIE_Y\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SAMPLING_KEY_CIE_Y: Int\n```\n\nuse y of CIE XYZ as the gain value of a lut \n\n Value: 2\n\n### SAMPLING_KEY_MAX_RGB\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SAMPLING_KEY_MAX_RGB: Int\n```\n\nuse max of r,g,b channel as the gain value of a Lut \n\n Value: 1\n\n### SAMPLING_KEY_RGB\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SAMPLING_KEY_RGB: Int\n```\n\nuse r,g,b channel as the gain value of a Lut \n\n Value: 0\n\n### THREE_DIMENSION\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val THREE_DIMENSION: Int\n```\n\nThe Lut is three dimensional \n\n Value: 3\n\nPublic methods\n--------------\n\n### getDimension\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getDimension(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | Value is [android.hardware.LutProperties#ONE_DIMENSION](#ONE_DIMENSION:kotlin.Int), or [android.hardware.LutProperties#THREE_DIMENSION](#THREE_DIMENSION:kotlin.Int) |\n\n### getSamplingKeys\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getSamplingKeys(): IntArray\n```\n\n| Return ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html) | the list of sampling keys This value cannot be `null`. Value is [android.hardware.LutProperties#SAMPLING_KEY_RGB](#SAMPLING_KEY_RGB:kotlin.Int), [android.hardware.LutProperties#SAMPLING_KEY_MAX_RGB](#SAMPLING_KEY_MAX_RGB:kotlin.Int), or [android.hardware.LutProperties#SAMPLING_KEY_CIE_Y](#SAMPLING_KEY_CIE_Y:kotlin.Int) |\n\n### getSize\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getSize(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|----------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the size of the Lut for each dimension |"]]