LutProperties


class LutProperties
kotlin.Any
   ↳ android.hardware.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

Public methods
Int

IntArray

Int

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

getSamplingKeys

fun getSamplingKeys(): IntArray
Return
IntArray the list of sampling keys This value cannot be null. Value is android.hardware.LutProperties#SAMPLING_KEY_RGB, android.hardware.LutProperties#SAMPLING_KEY_MAX_RGB, or android.hardware.LutProperties#SAMPLING_KEY_CIE_Y

getSize

fun getSize(): Int
Return
Int the size of the Lut for each dimension