IT. Expert System.

Android Reference

ScriptIntrinsicBlend


android.support.v8.renderscript

Class ScriptIntrinsicBlend



  • public class ScriptIntrinsicBlend
    extends ScriptIntrinsic
    Intrinsic kernels for blending two buffers. Each blend function is a separate kernel to make it easy to change between blend modes.
    • Method Detail

      • forEachClear

        public void forEachClear(Allocation ain,
                        Allocation aout)
        dst = {0, 0, 0, 0}
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDClear

        public Script.KernelID getKernelIDClear()
        Get a KernelID for the Clear kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachSrc

        public void forEachSrc(Allocation ain,
                      Allocation aout)
        dst = src
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDSrc

        public Script.KernelID getKernelIDSrc()
        Get a KernelID for the Src kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachDst

        public void forEachDst(Allocation ain,
                      Allocation aout)
        dst = dst This is a NOP
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDDst

        public Script.KernelID getKernelIDDst()
        Get a KernelID for the Dst kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachSrcOver

        public void forEachSrcOver(Allocation ain,
                          Allocation aout)
        dst = src + dst * (1.0 - src.a)
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDSrcOver

        public Script.KernelID getKernelIDSrcOver()
        Get a KernelID for the SrcOver kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachDstOver

        public void forEachDstOver(Allocation ain,
                          Allocation aout)
        dst = dst + src * (1.0 - dst.a)
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDDstOver

        public Script.KernelID getKernelIDDstOver()
        Get a KernelID for the DstOver kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachSrcIn

        public void forEachSrcIn(Allocation ain,
                        Allocation aout)
        dst = src * dst.a
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDSrcIn

        public Script.KernelID getKernelIDSrcIn()
        Get a KernelID for the SrcIn kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachDstIn

        public void forEachDstIn(Allocation ain,
                        Allocation aout)
        dst = dst * src.a
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDDstIn

        public Script.KernelID getKernelIDDstIn()
        Get a KernelID for the DstIn kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachSrcOut

        public void forEachSrcOut(Allocation ain,
                         Allocation aout)
        dst = src * (1.0 - dst.a)
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDSrcOut

        public Script.KernelID getKernelIDSrcOut()
        Get a KernelID for the SrcOut kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachDstOut

        public void forEachDstOut(Allocation ain,
                         Allocation aout)
        dst = dst * (1.0 - src.a)
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDDstOut

        public Script.KernelID getKernelIDDstOut()
        Get a KernelID for the DstOut kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachSrcAtop

        public void forEachSrcAtop(Allocation ain,
                          Allocation aout)
        dst.rgb = src.rgb * dst.a + (1.0 - src.a) * dst.rgb dst.a = dst.a
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDSrcAtop

        public Script.KernelID getKernelIDSrcAtop()
        Get a KernelID for the SrcAtop kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachDstAtop

        public void forEachDstAtop(Allocation ain,
                          Allocation aout)
        dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb dst.a = src.a
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDDstAtop

        public Script.KernelID getKernelIDDstAtop()
        Get a KernelID for the DstAtop kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachXor

        public void forEachXor(Allocation ain,
                      Allocation aout)
        dst = {src.r ^ dst.r, src.g ^ dst.g, src.b ^ dst.b, src.a ^ dst.a}
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDXor

        public Script.KernelID getKernelIDXor()
        Get a KernelID for the Xor kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachMultiply

        public void forEachMultiply(Allocation ain,
                           Allocation aout)
        dst = src * dst
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDMultiply

        public Script.KernelID getKernelIDMultiply()
        Get a KernelID for the Multiply kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachAdd

        public void forEachAdd(Allocation ain,
                      Allocation aout)
        dst = min(src + dst, 1.0)
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDAdd

        public Script.KernelID getKernelIDAdd()
        Get a KernelID for the Add kernel.
        Returns:
        Script.KernelID The KernelID object.
      • forEachSubtract

        public void forEachSubtract(Allocation ain,
                           Allocation aout)
        dst = max(dst - src, 0.0)
        Parameters:
        ain - The source buffer
        aout - The destination buffer
      • getKernelIDSubtract

        public Script.KernelID getKernelIDSubtract()
        Get a KernelID for the Subtract kernel.
        Returns:
        Script.KernelID The KernelID object.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 696 / 158776999. Delta: 0.04717 с