ScriptIntrinsicBlend
public
class
ScriptIntrinsicBlend
extends ScriptIntrinsic
| java.lang.Object | ||||
| ↳ | android.renderscript.BaseObj | |||
| ↳ | android.renderscript.Script | |||
| ↳ | android.renderscript.ScriptIntrinsic | |||
| ↳ | android.renderscript.ScriptIntrinsicBlend | |||
Intrinsic kernels for blending two Allocation objects.
Summary
Public methods | |
|---|---|
static
ScriptIntrinsicBlend
|
create(RenderScript rs, Element e)
Supported elements types are |
void
|
forEachAdd(Allocation ain, Allocation aout)
Sets dst = min(src + dst, 1.0) |
void
|
forEachAdd(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = min(src + dst, 1.0) |
void
|
forEachClear(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = {0, 0, 0, 0} |
void
|
forEachClear(Allocation ain, Allocation aout)
Sets dst = {0, 0, 0, 0} |
void
|
forEachDst(Allocation ain, Allocation aout)
Sets dst = dst This is a NOP. |
void
|
forEachDst(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = dst This is a NOP. |
void
|
forEachDstAtop(Allocation ain, Allocation aout, Script.LaunchOptions opt)
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. |
void
|
forEachDstAtop(Allocation ain, Allocation aout)
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. |
void
|
forEachDstIn(Allocation ain, Allocation aout)
Sets dst = dst * src.a |
void
|
forEachDstIn(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = dst * src.a |
void
|
forEachDstOut(Allocation ain, Allocation aout)
Sets dst = dst * (1.0 - src.a) |
void
|
forEachDstOut(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = dst * (1.0 - src.a) |
void
|
forEachDstOver(Allocation ain, Allocation aout)
Sets dst = dst + src * (1.0 - dst.a) |
void
|
forEachDstOver(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = dst + src * (1.0 - dst.a) |
void
|
forEachMultiply(Allocation ain, Allocation aout)
Sets dst = src * dst |
void
|
forEachMultiply(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = src * dst |
void
|
forEachSrc(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = src |
void
|
forEachSrc(Allocation ain, Allocation aout)
Sets dst = src |
void
|
forEachSrcAtop(Allocation ain, Allocation aout)
dst.rgb = src.rgb * dst.a + (1.0 - src.a) * dst.rgb dst.a = dst.a |
void
|
forEachSrcAtop(Allocation ain, Allocation aout, Script.LaunchOptions opt)
dst.rgb = src.rgb * dst.a + (1.0 - src.a) * dst.rgb dst.a = dst.a |
void
|
forEachSrcIn(Allocation ain, Allocation aout)
Sets dst = src * dst.a |
void
|
forEachSrcIn(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = src * dst.a |
void
|
forEachSrcOut(Allocation ain, Allocation aout)
Sets dst = src * (1.0 - dst.a) |
void
|
forEachSrcOut(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = src * (1.0 - dst.a) |
void
|
forEachSrcOver(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = src + dst * (1.0 - src.a) |
void
|
forEachSrcOver(Allocation ain, Allocation aout)
Sets dst = src + dst * (1.0 - src.a) |
void
|
forEachSubtract(Allocation ain, Allocation aout)
Sets dst = max(dst - src, 0.0) |
void
|
forEachSubtract(Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = max(dst - src, 0.0) |
void
|
forEachXor(Allocation ain, Allocation aout)
Sets dst = {src.r ^ dst.r, src.g ^ dst.g, src.b ^ dst.b, src.a ^ dst.a} |
void
|
forEachXor(Allocation ain, Allocation aout, Script.LaunchOptions opt)
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. |
Script.KernelID
|
getKernelIDAdd()
Get a KernelID for the Add kernel. |
Script.KernelID
|
getKernelIDClear()
Get a KernelID for the Clear kernel. |
Script.KernelID
|
getKernelIDDst()
Get a KernelID for the Dst kernel. |
Script.KernelID
|
getKernelIDDstAtop()
Get a KernelID for the DstAtop kernel. |
Script.KernelID
|
getKernelIDDstIn()
Get a KernelID for the DstIn kernel. |
Script.KernelID
|
getKernelIDDstOut()
Get a KernelID for the DstOut kernel. |
Script.KernelID
|
getKernelIDDstOver()
Get a KernelID for the DstOver kernel. |
Script.KernelID
|
getKernelIDMultiply()
Get a KernelID for the Multiply kernel. |
Script.KernelID
|
getKernelIDSrc()
Get a KernelID for the Src kernel. |
Script.KernelID
|
getKernelIDSrcAtop()
Get a KernelID for the SrcAtop kernel. |
Script.KernelID
|
getKernelIDSrcIn()
Get a KernelID for the SrcIn kernel. |
Script.KernelID
|
getKernelIDSrcOut()
Get a KernelID for the SrcOut kernel. |
Script.KernelID
|
getKernelIDSrcOver()
Get a KernelID for the SrcOver kernel. |
Script.KernelID
|
getKernelIDSubtract()
Get a KernelID for the Subtract kernel. |
Script.KernelID
|
getKernelIDXor()
Get a KernelID for the Xor kernel. |
Inherited methods | |
|---|---|
android.renderscript.Script
| |
android.renderscript.BaseObj
| |
java.lang.Object
| |
Public methods
create
ScriptIntrinsicBlend create (RenderScript rs, Element e)
Supported elements types are U8_4(RenderScript)
| Parameters | |
|---|---|
rs |
RenderScript:
The RenderScript context |
e |
Element:
Element type for inputs and outputs |
| Returns | |
|---|---|
ScriptIntrinsicBlend |
ScriptIntrinsicBlend |
forEachAdd
void forEachAdd (Allocation ain, Allocation aout)
Sets dst = min(src + dst, 1.0)
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachAdd
void forEachAdd (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
void forEachClear (Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = {0, 0, 0, 0}
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer |
opt |
Script.LaunchOptions:
LaunchOptions for clipping
|
forEachClear
void forEachClear (Allocation ain, Allocation aout)
Sets dst = {0, 0, 0, 0}
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachDst
void forEachDst (Allocation ain, Allocation aout)
Sets dst = dst This is a NOP.
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachDst
void forEachDst (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
void forEachDstAtop (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
|
forEachDstAtop
void forEachDstAtop (Allocation ain, Allocation aout)
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
|
forEachDstIn
void forEachDstIn (Allocation ain, Allocation aout)
Sets dst = dst * src.a
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachDstIn
void forEachDstIn (Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = dst * src.a
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer |
opt |
Script.LaunchOptions:
LaunchOptions for clipping
|
forEachDstOut
void forEachDstOut (Allocation ain, Allocation aout)
Sets dst = dst * (1.0 - src.a)
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachDstOut
void forEachDstOut (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
void forEachDstOver (Allocation ain, Allocation aout)
Sets dst = dst + src * (1.0 - dst.a)
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachDstOver
void forEachDstOver (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
void forEachMultiply (Allocation ain, Allocation aout)
Sets dst = src * dst
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachMultiply
void forEachMultiply (Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = src * dst
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer |
opt |
Script.LaunchOptions:
LaunchOptions for clipping
|
forEachSrc
void forEachSrc (Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = src
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer |
opt |
Script.LaunchOptions:
LaunchOptions for clipping
|
forEachSrc
void forEachSrc (Allocation ain, Allocation aout)
Sets dst = src
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachSrcAtop
void forEachSrcAtop (Allocation ain, Allocation aout)
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
void forEachSrcAtop (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
void forEachSrcIn (Allocation ain, Allocation aout)
Sets dst = src * dst.a
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachSrcIn
void forEachSrcIn (Allocation ain, Allocation aout, Script.LaunchOptions opt)
Sets dst = src * dst.a
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer |
opt |
Script.LaunchOptions:
LaunchOptions for clipping
|
forEachSrcOut
void forEachSrcOut (Allocation ain, Allocation aout)
Sets dst = src * (1.0 - dst.a)
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachSrcOut
void forEachSrcOut (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
void forEachSrcOver (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
|
forEachSrcOver
void forEachSrcOver (Allocation ain, Allocation aout)
Sets dst = src + dst * (1.0 - src.a)
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachSubtract
void forEachSubtract (Allocation ain, Allocation aout)
Sets dst = max(dst - src, 0.0)
| Parameters | |
|---|---|
ain |
Allocation:
The source buffer |
aout |
Allocation:
The destination buffer
|
forEachSubtract
void forEachSubtract (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
void forEachXor (Allocation ain, Allocation aout)
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
void forEachXor (Allocation ain, Allocation aout, Script.LaunchOptions opt)
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
Script.KernelID getKernelIDAdd ()
Get a KernelID for the Add kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDClear
Script.KernelID getKernelIDClear ()
Get a KernelID for the Clear kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDDst
Script.KernelID getKernelIDDst ()
Get a KernelID for the Dst kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDDstAtop
Script.KernelID getKernelIDDstAtop ()
Get a KernelID for the DstAtop kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDDstIn
Script.KernelID getKernelIDDstIn ()
Get a KernelID for the DstIn kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDDstOut
Script.KernelID getKernelIDDstOut ()
Get a KernelID for the DstOut kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDDstOver
Script.KernelID getKernelIDDstOver ()
Get a KernelID for the DstOver kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDMultiply
Script.KernelID getKernelIDMultiply ()
Get a KernelID for the Multiply kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDSrc
Script.KernelID getKernelIDSrc ()
Get a KernelID for the Src kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDSrcAtop
Script.KernelID getKernelIDSrcAtop ()
Get a KernelID for the SrcAtop kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDSrcIn
Script.KernelID getKernelIDSrcIn ()
Get a KernelID for the SrcIn kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDSrcOut
Script.KernelID getKernelIDSrcOut ()
Get a KernelID for the SrcOut kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDSrcOver
Script.KernelID getKernelIDSrcOver ()
Get a KernelID for the SrcOver kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDSubtract
Script.KernelID getKernelIDSubtract ()
Get a KernelID for the Subtract kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
getKernelIDXor
Script.KernelID getKernelIDXor ()
Get a KernelID for the Xor kernel.
| Returns | |
|---|---|
Script.KernelID |
Script.KernelID The KernelID object. |
Interfaces
Classes
- Allocation
- AllocationAdapter
- BaseObj
- Byte2
- Byte3
- Byte4
- Double2
- Double3
- Double4
- Element
- Element.Builder
- FieldPacker
- Float2
- Float3
- Float4
- Int2
- Int3
- Int4
- Long2
- Long3
- Long4
- Matrix2f
- Matrix3f
- Matrix4f
- RenderScript
- RenderScript.RSErrorHandler
- RenderScript.RSMessageHandler
- Sampler
- Sampler.Builder
- Script
- Script.Builder
- Script.FieldBase
- Script.FieldID
- Script.InvokeID
- Script.KernelID
- Script.LaunchOptions
- ScriptC
- ScriptGroup
- ScriptGroup.Binding
- ScriptGroup.Builder
- ScriptGroup.Builder2
- ScriptGroup.Closure
- ScriptGroup.Future
- ScriptGroup.Input
- ScriptIntrinsic
- ScriptIntrinsic3DLUT
- ScriptIntrinsicBLAS
- ScriptIntrinsicBlend
- ScriptIntrinsicBlur
- ScriptIntrinsicColorMatrix
- ScriptIntrinsicConvolve3x3
- ScriptIntrinsicConvolve5x5
- ScriptIntrinsicHistogram
- ScriptIntrinsicLUT
- ScriptIntrinsicResize
- ScriptIntrinsicYuvToRGB
- Short2
- Short3
- Short4
- Type
- Type.Builder
Enums
Exceptions


