ScriptIntrinsic3DLUT
classScriptIntrinsic3DLUT: 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! |
create(rs: RenderScript!, e: Element!)Supported elements types are |
| 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 |
setLUT(lut: Allocation!)Sets the |
Public methods
create
static funcreate(
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
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!: Launch options for kernel |
getKernelID
fungetKernelID(): Script.KernelID!
Deprecated: Deprecated in Java.
Get a KernelID for this intrinsic kernel.
| Return | |
|---|---|
Script.KernelID! |
Script.KernelID The KernelID object. |
setLUT
funsetLUT(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.