public class ScriptIntrinsicBlend extends ScriptIntrinsic
Script.Builder, Script.FieldBase, Script.FieldID, Script.KernelID
Modifier and Type | Method and Description |
---|---|
static ScriptIntrinsicBlend |
create(RenderScript rs,
Element e)
Supported elements types are uchar4
|
void |
forEachAdd(Allocation ain,
Allocation aout)
dst = min(src + dst, 1.0)
|
void |
forEachClear(Allocation ain,
Allocation aout)
dst = {0, 0, 0, 0}
|
void |
forEachDst(Allocation ain,
Allocation aout)
dst = dst
This is a NOP
|
void |
forEachDstAtop(Allocation ain,
Allocation aout)
dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb
dst.a = src.a
|
void |
forEachDstIn(Allocation ain,
Allocation aout)
dst = dst * src.a
|
void |
forEachDstOut(Allocation ain,
Allocation aout)
dst = dst * (1.0 - src.a)
|
void |
forEachDstOver(Allocation ain,
Allocation aout)
dst = dst + src * (1.0 - dst.a)
|
void |
forEachMultiply(Allocation ain,
Allocation aout)
dst = src * dst
|
void |
forEachSrc(Allocation ain,
Allocation aout)
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 |
forEachSrcIn(Allocation ain,
Allocation aout)
dst = src * dst.a
|
void |
forEachSrcOut(Allocation ain,
Allocation aout)
dst = src * (1.0 - dst.a)
|
void |
forEachSrcOver(Allocation ain,
Allocation aout)
dst = src + dst * (1.0 - src.a)
|
void |
forEachSubtract(Allocation ain,
Allocation aout)
dst = max(dst - src, 0.0)
|
void |
forEachXor(Allocation ain,
Allocation aout)
dst = {src.r ^ dst.r, src.g ^ dst.g, src.b ^ dst.b, src.a ^ dst.a}
|
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.
|
bindAllocation, createFieldID, createKernelID, forEach, invoke, invoke, setTimeZone, setVar, setVar, setVar, setVar, setVar, setVar, setVar, setVar
public static ScriptIntrinsicBlend create(RenderScript rs, Element e)
rs
- e
- public void forEachClear(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDClear()
public void forEachSrc(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDSrc()
public void forEachDst(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDDst()
public void forEachSrcOver(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDSrcOver()
public void forEachDstOver(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDDstOver()
public void forEachSrcIn(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDSrcIn()
public void forEachDstIn(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDDstIn()
public void forEachSrcOut(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDSrcOut()
public void forEachDstOut(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDDstOut()
public void forEachSrcAtop(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDSrcAtop()
public void forEachDstAtop(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDDstAtop()
public void forEachXor(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDXor()
public void forEachMultiply(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDMultiply()
public void forEachAdd(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDAdd()
public void forEachSubtract(Allocation ain, Allocation aout)
ain
- The source bufferaout
- The destination bufferpublic Script.KernelID getKernelIDSubtract()