Added in API level 17
Deprecated in API level 31

ScriptIntrinsicBlend

open class ScriptIntrinsicBlend : ScriptIntrinsic
kotlin.Any
   ↳ android.renderscript.BaseObj
   ↳ android.renderscript.Script
   ↳ android.renderscript.ScriptIntrinsic
   ↳ android.renderscript.ScriptIntrinsicBlend

Intrinsic kernels for blending two android.renderscript.Allocation objects.

Summary

Public methods
open static ScriptIntrinsicBlend!

Supported elements types are Element#U8_4

open Unit

Sets dst = min(src + dst, 1.0)

open Unit

Sets dst = min(src + dst, 1.0)

open Unit

Sets dst = {0, 0, 0, 0}

open Unit

Sets dst = {0, 0, 0, 0}

open Unit

Sets dst = dst This is a NOP.

open Unit

Sets dst = dst This is a NOP.

open Unit

dst = dst.

open Unit

dst = dst.

open Unit

Sets dst = dst * src.

open Unit

Sets dst = dst * src.

open Unit

Sets dst = dst * (1.0 - src.a)

open Unit

Sets dst = dst * (1.0 - src.a)

open Unit

Sets dst = dst + src * (1.0 - dst.a)

open Unit

Sets dst = dst + src * (1.0 - dst.a)

open Unit

Sets dst = src * dst

open Unit

Sets dst = src * dst

open Unit

Sets dst = src

open Unit

Sets dst = src

open Unit

dst.

open Unit

dst.

open Unit

Sets dst = src * dst.

open Unit

Sets dst = src * dst.

open Unit

Sets dst = src * (1.0 - dst.a)

open Unit

Sets dst = src * (1.0 - dst.a)

open Unit

Sets dst = src + dst * (1.0 - src.a)

open Unit

Sets dst = src + dst * (1.0 - src.a)

open Unit

Sets dst = max(dst - src, 0.0)

open Unit

Sets dst = max(dst - src, 0.0)

open Unit

Sets dst = {src.

open Unit

Sets dst = {src.

open Script.KernelID!

Get a KernelID for the Add kernel.

open Script.KernelID!

Get a KernelID for the Clear kernel.

open Script.KernelID!

Get a KernelID for the Dst kernel.

open Script.KernelID!

Get a KernelID for the DstAtop kernel.

open Script.KernelID!

Get a KernelID for the DstIn kernel.

open Script.KernelID!

Get a KernelID for the DstOut kernel.

open Script.KernelID!

Get a KernelID for the DstOver kernel.

open Script.KernelID!

Get a KernelID for the Multiply kernel.

open Script.KernelID!

Get a KernelID for the Src kernel.

open Script.KernelID!

Get a KernelID for the SrcAtop kernel.

open Script.KernelID!

Get a KernelID for the SrcIn kernel.

open Script.KernelID!

Get a KernelID for the SrcOut kernel.

open Script.KernelID!

Get a KernelID for the SrcOver kernel.

open Script.KernelID!

Get a KernelID for the Subtract kernel.

open Script.KernelID!

Get a KernelID for the Xor kernel.

Public methods

create

Added in API level 17
open static fun create(
    rs: RenderScript!,
    e: Element!
): ScriptIntrinsicBlend!

Deprecated: Deprecated in Java.

Supported elements types are Element#U8_4

Parameters
rs RenderScript!: The RenderScript context
e Element!: Element type for inputs and outputs
Return
ScriptIntrinsicBlend! ScriptIntrinsicBlend

forEachAdd

Added in API level 17
open fun forEachAdd(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = min(src + dst, 1.0)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachAdd

Added in API level 21
Deprecated in API level 31
open fun forEachAdd(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = min(src + dst, 1.0)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachClear

Added in API level 17
open fun forEachClear(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = {0, 0, 0, 0}

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachClear

Added in API level 21
Deprecated in API level 31
open fun forEachClear(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = {0, 0, 0, 0}

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachDst

Added in API level 17
open fun forEachDst(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = dst This is a NOP.

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachDst

Added in API level 21
Deprecated in API level 31
open fun forEachDst(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = dst This is a NOP.

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachDstAtop

Added in API level 17
open fun forEachDstAtop(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb dst.a = src.a Note: Before API 23, the alpha channel was not correctly set. Please use with caution when targeting older APIs.

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachDstAtop

Added in API level 21
Deprecated in API level 31
open fun forEachDstAtop(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb dst.a = src.a Note: Before API 23, the alpha channel was not correctly set. Please use with caution when targeting older APIs.

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachDstIn

Added in API level 17
open fun forEachDstIn(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = dst * src.a

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachDstIn

Added in API level 21
Deprecated in API level 31
open fun forEachDstIn(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = dst * src.a

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachDstOut

Added in API level 17
open fun forEachDstOut(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = dst * (1.0 - src.a)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachDstOut

Added in API level 21
Deprecated in API level 31
open fun forEachDstOut(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = dst * (1.0 - src.a)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachDstOver

Added in API level 17
open fun forEachDstOver(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = dst + src * (1.0 - dst.a)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachDstOver

Added in API level 21
Deprecated in API level 31
open fun forEachDstOver(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = dst + src * (1.0 - dst.a)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachMultiply

Added in API level 17
open fun forEachMultiply(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src * dst

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachMultiply

Added in API level 21
Deprecated in API level 31
open fun forEachMultiply(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src * dst

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachSrc

Added in API level 17
open fun forEachSrc(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachSrc

Added in API level 21
Deprecated in API level 31
open fun forEachSrc(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachSrcAtop

Added in API level 17
open fun forEachSrcAtop(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

dst.rgb = src.rgb * dst.a + (1.0 - src.a) * dst.rgb dst.a = dst.a

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachSrcAtop

Added in API level 21
Deprecated in API level 31
open fun forEachSrcAtop(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

dst.rgb = src.rgb * dst.a + (1.0 - src.a) * dst.rgb dst.a = dst.a

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachSrcIn

Added in API level 17
open fun forEachSrcIn(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src * dst.a

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachSrcIn

Added in API level 21
Deprecated in API level 31
open fun forEachSrcIn(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src * dst.a

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachSrcOut

Added in API level 17
open fun forEachSrcOut(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src * (1.0 - dst.a)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachSrcOut

Added in API level 21
Deprecated in API level 31
open fun forEachSrcOut(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src * (1.0 - dst.a)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachSrcOver

Added in API level 17
open fun forEachSrcOver(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src + dst * (1.0 - src.a)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachSrcOver

Added in API level 21
Deprecated in API level 31
open fun forEachSrcOver(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = src + dst * (1.0 - src.a)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachSubtract

Added in API level 17
open fun forEachSubtract(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = max(dst - src, 0.0)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachSubtract

Added in API level 21
Deprecated in API level 31
open fun forEachSubtract(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = max(dst - src, 0.0)

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

forEachXor

Added in API level 17
open fun forEachXor(
    ain: Allocation!,
    aout: Allocation!
): Unit

Deprecated: Deprecated in Java.

Sets dst = {src.r ^ dst.r, src.g ^ dst.g, src.b ^ dst.b, src.a ^ dst.a}

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer

forEachXor

Added in API level 21
Deprecated in API level 31
open fun forEachXor(
    ain: Allocation!,
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Sets dst = {src.r ^ dst.r, src.g ^ dst.g, src.b ^ dst.b, src.a ^ dst.a} Note: this is NOT the Porter/Duff XOR mode; this is a bitwise xor.

Parameters
ain Allocation!: The source buffer
aout Allocation!: The destination buffer
opt Script.LaunchOptions!: LaunchOptions for clipping

getKernelIDAdd

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

Deprecated: Deprecated in Java.

Get a KernelID for the Add kernel.

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

getKernelIDClear

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

Deprecated: Deprecated in Java.

Get a KernelID for the Clear kernel.

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

getKernelIDDst

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

Deprecated: Deprecated in Java.

Get a KernelID for the Dst kernel.

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

getKernelIDDstAtop

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

Deprecated: Deprecated in Java.

Get a KernelID for the DstAtop kernel.

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

getKernelIDDstIn

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

Deprecated: Deprecated in Java.

Get a KernelID for the DstIn kernel.

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

getKernelIDDstOut

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

Deprecated: Deprecated in Java.

Get a KernelID for the DstOut kernel.

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

getKernelIDDstOver

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

Deprecated: Deprecated in Java.

Get a KernelID for the DstOver kernel.

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

getKernelIDMultiply

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

Deprecated: Deprecated in Java.

Get a KernelID for the Multiply kernel.

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

getKernelIDSrc

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

Deprecated: Deprecated in Java.

Get a KernelID for the Src kernel.

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

getKernelIDSrcAtop

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

Deprecated: Deprecated in Java.

Get a KernelID for the SrcAtop kernel.

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

getKernelIDSrcIn

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

Deprecated: Deprecated in Java.

Get a KernelID for the SrcIn kernel.

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

getKernelIDSrcOut

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

Deprecated: Deprecated in Java.

Get a KernelID for the SrcOut kernel.

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

getKernelIDSrcOver

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

Deprecated: Deprecated in Java.

Get a KernelID for the SrcOver kernel.

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

getKernelIDSubtract

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

Deprecated: Deprecated in Java.

Get a KernelID for the Subtract kernel.

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

getKernelIDXor

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

Deprecated: Deprecated in Java.

Get a KernelID for the Xor kernel.

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