FileDocCategorySizeDatePackage
ScriptIntrinsic3DLUTThunker.javaAPI DocAndroid 5.1 API2854Thu Mar 12 22:22:56 GMT 2015android.support.v8.renderscript

ScriptIntrinsic3DLUTThunker

public class ScriptIntrinsic3DLUTThunker extends ScriptIntrinsic3DLUT
hide

Fields Summary
android.renderscript.ScriptIntrinsic3DLUT
mN
Constructors Summary
private ScriptIntrinsic3DLUTThunker(int id, RenderScript rs, Element e)

        super(id, rs, e);
    
Methods Summary
public static android.support.v8.renderscript.ScriptIntrinsic3DLUTThunkercreate(RenderScript rs, Element e)

        RenderScriptThunker rst = (RenderScriptThunker) rs;
        ElementThunker et = (ElementThunker) e;

        ScriptIntrinsic3DLUTThunker lut = new ScriptIntrinsic3DLUTThunker(0, rs, e);
        try {
            lut.mN = android.renderscript.ScriptIntrinsic3DLUT.create(rst.mN, et.getNObj());
        } catch (android.renderscript.RSRuntimeException exc) {
            throw ExceptionThunker.convertException(exc);
        }
        return lut;
    
public voidforEach(Allocation ain, Allocation aout)
Invoke the kernel and apply the lookup to each cell of ain and copy to aout.

param
ain Input allocation
param
aout Output allocation

        AllocationThunker aint = (AllocationThunker)ain;
        AllocationThunker aoutt = (AllocationThunker)aout;
        try {
            mN.forEach(aint.getNObj(), aoutt.getNObj());
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
public Script.KernelIDgetKernelID()
Get a KernelID for this intrinsic kernel.

return
Script.KernelID The KernelID object.

        Script.KernelID k = createKernelID(0, 3, null, null);
        try {
            k.mN = mN.getKernelID();
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
        return k;
    
android.renderscript.ScriptIntrinsic3DLUTgetNObj()

        return mN;
    
public voidsetLUT(Allocation lut)

        AllocationThunker lutt = (AllocationThunker) lut;
        try {
            mN.setLUT(lutt.getNObj());
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }