語言

DisplayLuts.Entry 建構函式

定義

多載

DisplayLuts.Entry(IntPtr, JniHandleOwnership)

protected Entry(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Hardware.DisplayLuts.Entry : nativeint * Android.Runtime.JniHandleOwnership -> Android.Hardware.DisplayLuts.Entry

參數

javaReference
IntPtr

nativeint

適用於

DisplayLuts.Entry(Single[], Int32, Int32)

建立一個 Lut 條目。

[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

參數

buffer
Single[]

原始LUT資料

dimension
Int32

要麼是1D,要麼是3D。

samplingKey
Int32

Lut 所用的取樣 Kay

屬性

備註

建立一個 Lut 條目。

1D LUT 被視為增益曲線。

3D LUT 用於直接色彩操作。

對於三維 LUT(s),這些值應正規化為 0.0 範圍 1.0,包含 。 是 1.0 面板的最大亮度。 若 N 是每個維度的大小,資料排列為 RGB 順序:

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)

當 GPU 著色器取樣 3D LUT 資料時,會以平面、一維的排列方式存取。 假設我們有一個三維陣列 ORIGINAL[N][N][N],則

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

</p>

Java 文件 android.hardware.DisplayLuts.Entry.DisplayLuts$Entry(float[], int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於