Added in API level Baklava
Entry
class Entry
kotlin.Any | |
↳ | android.hardware.DisplayLuts.Entry |
Summary
Public constructors | |
---|---|
Entry(buffer: FloatArray, dimension: Int, samplingKey: Int) Create a Lut entry. |
Public methods | |
---|---|
open FloatArray | |
open Int | |
open Int | |
open String |
toString() |
Public constructors
Entry
Added in API level Baklava
Entry(
buffer: FloatArray,
dimension: Int,
samplingKey: Int)
Create a Lut entry.
Noted that 1D Lut(s) are treated as gain curves. For 3D Lut(s), 3D Lut(s) are used for direct color manipulations. The values of 3D Lut(s) data should be normalized to the range 0.0
to 1.0
, inclusive. And 3D Lut(s) data is organized in the order of R, G, B channels.
Parameters | |
---|---|
buffer |
FloatArray: The raw lut data This value cannot be null . |
dimension |
Int: Either 1D or 3D Value is android.hardware.LutProperties#ONE_DIMENSION , or android.hardware.LutProperties#THREE_DIMENSION |
samplingKey |
Int: The sampling kay used for the Lut Value is android.hardware.LutProperties#SAMPLING_KEY_RGB , android.hardware.LutProperties#SAMPLING_KEY_MAX_RGB , or android.hardware.LutProperties#SAMPLING_KEY_CIE_Y |
Public methods
getBuffer
Added in API level Baklava
open fun getBuffer(): FloatArray
Return | |
---|---|
FloatArray |
the lut raw data of the lut This value cannot be null . |
getDimension
Added in API level Baklava
open fun getDimension(): Int
Return | |
---|---|
Int |
the dimension of the lut entry |
getSamplingKey
Added in API level Baklava
open fun getSamplingKey(): Int
Return | |
---|---|
Int |
the sampling key used by the lut |
toString
Added in API level Baklava
open fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |