Added in API level 18
Deprecated in API level 31

ScriptIntrinsic3DLUT


class ScriptIntrinsic3DLUT : ScriptIntrinsic
kotlin.Any
   ↳ android.renderscript.BaseObj
   ↳ android.renderscript.Script
   ↳ android.renderscript.ScriptIntrinsic
   ↳ android.renderscript.ScriptIntrinsic3DLUT

Intrinsic for converting RGB to RGBA by using a 3D lookup table. The incoming r,g,b values are use as normalized x,y,z coordinates into a 3D allocation. The 8 nearest values are sampled and linearly interpolated. The result is placed in the output.

Summary

Public methods
static ScriptIntrinsic3DLUT!

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

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

Sets the android.renderscript.Allocation to be used as the lookup table.

Public methods

create

Added in API level 18
static fun create(
    rs: RenderScript!,
    e: Element!
): ScriptIntrinsic3DLUT!

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
ScriptIntrinsic3DLUT! ScriptIntrinsic3DLUT

forEach

Added in API level 18
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!: Launch options for kernel

getKernelID

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

Deprecated: Deprecated in Java.

Get a KernelID for this intrinsic kernel.

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

setLUT

Added in API level 18
fun setLUT(lut: Allocation!): Unit

Deprecated: Deprecated in Java.

Sets the android.renderscript.Allocation to be used as the lookup table. The lookup table must use the same android.renderscript.Element as the intrinsic.