ScriptIntrinsicLUT
classScriptIntrinsicLUT: ScriptIntrinsic
| kotlin.Any | ||||
| ↳ | android.renderscript.BaseObj | |||
| ↳ | android.renderscript.Script | |||
| ↳ | android.renderscript.ScriptIntrinsic | |||
| ↳ | android.renderscript.ScriptIntrinsicLUT | |||
Intrinsic for applying a per-channel lookup table. Each channel of the input has an independant lookup table. The tables are 256 entries in size and can cover the full value range of Element.U8_4.
Summary
| Public methods | |
|---|---|
| static ScriptIntrinsicLUT! | create(rs: RenderScript!, e: Element!)Supported elements types are  | 
| Unit | destroy() | 
| Unit | forEach(ain: Allocation!, aout: Allocation!)Invoke the kernel and apply the lookup to each cell of ain and copy to aout. | 
| Unit | forEach(ain: Allocation!, aout: Allocation!, opt: Script.LaunchOptions!)Invoke the kernel and apply the lookup to each cell of ain and copy to aout. | 
| Script.KernelID! | Get a KernelID for this intrinsic kernel. | 
| Unit | Set an entry in the alpha channel lookup table | 
| Unit | Set an entry in the blue channel lookup table | 
| Unit | Set an entry in the green channel lookup table | 
| Unit | Set an entry in the red channel lookup table | 
Public methods
create
static funcreate(
rs: RenderScript!,
e: Element!
): ScriptIntrinsicLUT!
Deprecated: Deprecated in Java.
Supported elements types are Element.U8_4 The defaults tables are identity.
| Parameters | |
|---|---|
| rs | RenderScript!: The RenderScript context | 
| e | Element!: Element type for intputs and outputs | 
| Return | |
|---|---|
| ScriptIntrinsicLUT! | ScriptIntrinsicLUT | 
forEach
funforEach(
ain: Allocation!,
aout: Allocation!
): Unit
Deprecated: Deprecated in Java.
Invoke the kernel and apply the lookup to each cell of ain and copy to aout.
| Parameters | |
|---|---|
| ain | Allocation!: Input allocation | 
| aout | Allocation!: Output allocation | 
forEach
funforEach(
ain: Allocation!,
aout: Allocation!,
opt: Script.LaunchOptions!
): Unit
Deprecated: Deprecated in Java.
Invoke the kernel and apply the lookup to each cell of ain and copy to aout.
| Parameters | |
|---|---|
| ain | Allocation!: Input allocation | 
| aout | Allocation!: Output allocation | 
| opt | Script.LaunchOptions!: Options for clipping | 
getKernelID
fungetKernelID(): Script.KernelID!
Deprecated: Deprecated in Java.
Get a KernelID for this intrinsic kernel.
| Return | |
|---|---|
| Script.KernelID! | Script.KernelID The KernelID object. | 
setAlpha
funsetAlpha(
index: Int,
value: Int
): Unit
Deprecated: Deprecated in Java.
Set an entry in the alpha channel lookup table
| Parameters | |
|---|---|
| index | Int: Must be 0-255 | 
| value | Int: Must be 0-255 | 
setBlue
funsetBlue(
index: Int,
value: Int
): Unit
Deprecated: Deprecated in Java.
Set an entry in the blue channel lookup table
| Parameters | |
|---|---|
| index | Int: Must be 0-255 | 
| value | Int: Must be 0-255 | 
setGreen
funsetGreen(
index: Int,
value: Int
): Unit
Deprecated: Deprecated in Java.
Set an entry in the green channel lookup table
| Parameters | |
|---|---|
| index | Int: Must be 0-255 | 
| value | Int: Must be 0-255 | 
setRed
funsetRed(
index: Int,
value: Int
): Unit
Deprecated: Deprecated in Java.
Set an entry in the red channel lookup table
| Parameters | |
|---|---|
| index | Int: Must be 0-255 | 
| value | Int: Must be 0-255 | 
