Added in API level 17
Deprecated in API level 31

ScriptIntrinsicLUT


class ScriptIntrinsicLUT : 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!

Supported elements types are Element#U8_4 The defaults tables are identity.

Unit

Unit
forEach(ain: Allocation!, aout: Allocation!)

Invoke the kernel and apply the lookup to each cell of ain and copy to aout.

Unit

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
setAlpha(index: Int, value: Int)

Set an entry in the alpha channel lookup table

Unit
setBlue(index: Int, value: Int)

Set an entry in the blue channel lookup table

Unit
setGreen(index: Int, value: Int)

Set an entry in the green channel lookup table

Unit
setRed(index: Int, value: Int)

Set an entry in the red channel lookup table

Public methods

create

Added in API level 17
static fun create(
    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

destroy

Added in API level 17
fun destroy(): Unit

Deprecated: Deprecated in Java.

forEach

Added in API level 17
fun forEach(
    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

Added in API level 21
Deprecated in API level 31
fun forEach(
    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

Added in API level 17
fun getKernelID(): Script.KernelID!

Deprecated: Deprecated in Java.

Get a KernelID for this intrinsic kernel.

Return
Script.KernelID! Script.KernelID The KernelID object.

setAlpha

Added in API level 17
fun setAlpha(
    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

Added in API level 17
fun setBlue(
    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

Added in API level 17
fun setGreen(
    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

Added in API level 17
fun setRed(
    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