java.lang.Object | ||||
↳ | android.renderscript.BaseObj | |||
↳ | android.renderscript.Script | |||
↳ | android.renderscript.ScriptIntrinsic | |||
↳ | android.renderscript.ScriptIntrinsicBlend |
Intrinsic kernels for blending two buffers. Each blend function is a separate kernel to make it easy to change between blend modes.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Supported elements types are uchar4
| |||||||||||
dst = min(src + dst, 1.0)
| |||||||||||
dst = {0, 0, 0, 0}
| |||||||||||
dst = dst
This is a NOP
| |||||||||||
dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb
dst.a = src.a
| |||||||||||
dst = dst * src.a
| |||||||||||
dst = dst * (1.0 - src.a)
| |||||||||||
dst = dst + src * (1.0 - dst.a)
| |||||||||||
dst = src * dst
| |||||||||||
dst = src
| |||||||||||
dst.rgb = src.rgb * dst.a + (1.0 - src.a) * dst.rgb
dst.a = dst.a
| |||||||||||
dst = src * dst.a
| |||||||||||
dst = src * (1.0 - dst.a)
| |||||||||||
dst = src + dst * (1.0 - src.a)
| |||||||||||
dst = max(dst - src, 0.0)
| |||||||||||
dst = {src.r ^ dst.r, src.g ^ dst.g, src.b ^ dst.b, src.a ^ dst.a}
| |||||||||||
Get a KernelID for the Add kernel.
| |||||||||||
Get a KernelID for the Clear kernel.
| |||||||||||
Get a KernelID for the Dst kernel.
| |||||||||||
Get a KernelID for the DstAtop kernel.
| |||||||||||
Get a KernelID for the DstIn kernel.
| |||||||||||
Get a KernelID for the DstOut kernel.
| |||||||||||
Get a KernelID for the DstOver kernel.
| |||||||||||
Get a KernelID for the Multiply kernel.
| |||||||||||
Get a KernelID for the Src kernel.
| |||||||||||
Get a KernelID for the SrcAtop kernel.
| |||||||||||
Get a KernelID for the SrcIn kernel.
| |||||||||||
Get a KernelID for the SrcOut kernel.
| |||||||||||
Get a KernelID for the SrcOver kernel.
| |||||||||||
Get a KernelID for the Subtract kernel.
| |||||||||||
Get a KernelID for the Xor kernel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.renderscript.Script
| |||||||||||
From class
android.renderscript.BaseObj
| |||||||||||
From class
java.lang.Object
|
Supported elements types are uchar4
dst = min(src + dst, 1.0)
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = {0, 0, 0, 0}
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = dst This is a NOP
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb dst.a = src.a
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = dst * src.a
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = dst * (1.0 - src.a)
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = dst + src * (1.0 - dst.a)
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = src * dst
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = src
ain | The source buffer |
---|---|
aout | The destination buffer |
dst.rgb = src.rgb * dst.a + (1.0 - src.a) * dst.rgb dst.a = dst.a
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = src * dst.a
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = src * (1.0 - dst.a)
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = src + dst * (1.0 - src.a)
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = max(dst - src, 0.0)
ain | The source buffer |
---|---|
aout | The destination buffer |
dst = {src.r ^ dst.r, src.g ^ dst.g, src.b ^ dst.b, src.a ^ dst.a}
ain | The source buffer |
---|---|
aout | The destination buffer |
Get a KernelID for the Add kernel.
Get a KernelID for the Clear kernel.
Get a KernelID for the Dst kernel.
Get a KernelID for the DstAtop kernel.
Get a KernelID for the DstIn kernel.
Get a KernelID for the DstOut kernel.
Get a KernelID for the DstOver kernel.
Get a KernelID for the Multiply kernel.
Get a KernelID for the Src kernel.
Get a KernelID for the SrcAtop kernel.
Get a KernelID for the SrcIn kernel.
Get a KernelID for the SrcOut kernel.
Get a KernelID for the SrcOver kernel.
Get a KernelID for the Subtract kernel.
Get a KernelID for the Xor kernel.