DisplayLuts.Entry Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| DisplayLuts.Entry(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
| DisplayLuts.Entry(Single[], Int32, Int32) |
Create a Lut entry. |
DisplayLuts.Entry(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected Entry(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Hardware.DisplayLuts.Entry : nativeint * Android.Runtime.JniHandleOwnership -> Android.Hardware.DisplayLuts.Entry
Parameters
- javaReference
-
IntPtr
nativeint
A JNI reference to the Java object.
- transfer
- JniHandleOwnership
Specifies whether ownership of the JNI reference transfers to this instance.
Remarks
The runtime calls this constructor to create a managed representation of an existing Java object.
Applies to
DisplayLuts.Entry(Single[], Int32, Int32)
Create a Lut entry.
[Android.Runtime.Register(".ctor", "([FII)V", "", ApiSince=36)]
public Entry(float[] buffer, int dimension, int samplingKey);
[<Android.Runtime.Register(".ctor", "([FII)V", "", ApiSince=36)>]
new Android.Hardware.DisplayLuts.Entry : single[] * int * int -> Android.Hardware.DisplayLuts.Entry
Parameters
- buffer
- Single[]
The raw lut data
- dimension
- Int32
Either 1D or 3D
- samplingKey
- Int32
The sampling kay used for the Lut
- Attributes
Remarks
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]
</p>
Java documentation for android.hardware.DisplayLuts.Entry.DisplayLuts$Entry(float[], int, int).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.