public static class DisplayLuts.Entry
extends Object



Summary

Public constructors

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

Create a Lut entry.

Public methods

float[] getBuffer()
int getDimension()
int getSamplingKey()
String toString()

Returns a string representation of the object.

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.

Public constructors

Entry

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]
Parameters
buffer float: The raw lut data.
This value cannot be null.
dimension int: Either 1D or 3D.
Value is one of the following:
samplingKey int: The sampling kay used for the Lut.
Value is one of the following:

Public methods

getBuffer

public float[] getBuffer ()
Returns
float[] the lut raw data of the lut.
This value cannot be null.

getDimension

public int getDimension ()
Returns
int the dimension of the lut entry

getSamplingKey

public int getSamplingKey ()
Returns
int the sampling key used by the lut

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-02-13 UTC.