# DisplayLuts.Entry

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Ctors](https://developer.android.com/reference/android/hardware/DisplayLuts.Entry#pubctors)\|[Methods](https://developer.android.com/reference/android/hardware/DisplayLuts.Entry#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/hardware/DisplayLuts.Entry#inhmethods)  

# DisplayLuts.Entry

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/hardware/DisplayLuts.Entry "View this page in Kotlin")\|Java

`
public
static


class
DisplayLuts.Entry
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.hardware.DisplayLuts.Entry |

<br />

*** ** * ** ***

## Summary

|                                                                                    ### Public constructors                                                                                    ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Entry](https://developer.android.com/reference/android/hardware/DisplayLuts.Entry#Entry(float[],%20int,%20int))`(float[] buffer, int dimension, int samplingKey) ` Create a Lut entry. |

|                                                                                                       ### Public methods                                                                                                        ||
|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` float[]`                                                            | ` `[getBuffer](https://developer.android.com/reference/android/hardware/DisplayLuts.Entry#getBuffer())`() `                                              |
| ` int`                                                                | ` `[getDimension](https://developer.android.com/reference/android/hardware/DisplayLuts.Entry#getDimension())`() `                                        |
| ` int`                                                                | ` `[getSamplingKey](https://developer.android.com/reference/android/hardware/DisplayLuts.Entry#getSamplingKey())`() `                                    |
| ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[toString](https://developer.android.com/reference/android/hardware/DisplayLuts.Entry#toString())`() ` Returns a string representation of the object. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/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](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/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](https://developer.android.com/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](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### Entry

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Entry (float[] buffer, 
                int dimension, 
                int samplingKey)
```

Create a Lut entry.

1D Lut(s) are treated as gain curves.

3D Lut(s) are used for direct color manipulations.

For 3D Lut(s), the values should be normalized to the range`0.0`to`1.0`, inclusive. And`1.0`is the maximum panel luminance. And If N is the size of each dimension, the data is arranged in RGB order:  

```
 R(0, 0, 0), R(0, 0, 1), ..., R(0, 0, N - 1),
 R(0, 1, 0), ..., R(0, 1, N - 1), ..., R(0, N - 1, N - 1),
 R(1, 0, 0), ..., R(1, 0, N - 1), ..., R(1, N - 1, N - 1), ..., R(N - 1, N - 1, N - 1),
 G(0, 0, 0), ..., G(N - 1, N - 1, N - 1),
 B(0, 0, 0), ..., B(N - 1, N - 1, N - 1)
```
When a GPU shader samples 3D Lut data, it's accessed in a flat, one-dimensional arrangement. Assuming that we have a 3D array`ORIGINAL[N][N][N]`, then  

```
 FLAT[z + N * (y + N * x)] = ORIGINAL[x][y][z]
```

<br />

<br />

<br />

|                                                                                                                                                                                                                             Parameters                                                                                                                                                                                                                              ||
|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `buffer`      | `float`: The raw lut data This value cannot be`null`. <br />                                                                                                                                                                                                                                                                                                                                                                                         |
| `dimension`   | `int`: Either 1D or 3D Value is[LutProperties.ONE_DIMENSION](https://developer.android.com/reference/android/hardware/LutProperties#ONE_DIMENSION), or[LutProperties.THREE_DIMENSION](https://developer.android.com/reference/android/hardware/LutProperties#THREE_DIMENSION) <br />                                                                                                                                                                 |
| `samplingKey` | `int`: The sampling kay used for the Lut Value is[LutProperties.SAMPLING_KEY_RGB](https://developer.android.com/reference/android/hardware/LutProperties#SAMPLING_KEY_RGB),[LutProperties.SAMPLING_KEY_MAX_RGB](https://developer.android.com/reference/android/hardware/LutProperties#SAMPLING_KEY_MAX_RGB), or[LutProperties.SAMPLING_KEY_CIE_Y](https://developer.android.com/reference/android/hardware/LutProperties#SAMPLING_KEY_CIE_Y) <br /> |

## Public methods

### getBuffer

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public float[] getBuffer ()
```

<br />

<br />

|                                  Returns                                  ||
|-----------|----------------------------------------------------------------|
| `float[]` | the lut raw data of the lut This value cannot be`null`. <br /> |

### getDimension

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getDimension ()
```

<br />

<br />

|                   Returns                    ||
|-------|---------------------------------------|
| `int` | the dimension of the lut entry <br /> |

### getSamplingKey

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getSamplingKey ()
```

<br />

<br />

|                    Returns                     ||
|-------|-----------------------------------------|
| `int` | the sampling key used by the lut <br /> |

### toString

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String toString ()
```

Returns a string representation of the object.

<br />

|                                                      Returns                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | a string representation of the object. <br /> |