Methods Summary |
---|
static android.renderscript.Allocation.MipmapControl | convertMipmapControl(MipmapControl mc)
switch(mc) {
case MIPMAP_NONE:
return android.renderscript.Allocation.MipmapControl.MIPMAP_NONE;
case MIPMAP_FULL:
return android.renderscript.Allocation.MipmapControl.MIPMAP_FULL;
case MIPMAP_ON_SYNC_TO_TEXTURE:
return android.renderscript.Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE;
}
return null;
|
public void | copy1DRangeFrom(int off, int count, int[] d)
try {
mN.copy1DRangeFrom(off, count, d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy1DRangeFrom(int off, int count, short[] d)
try {
mN.copy1DRangeFrom(off, count, d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy1DRangeFrom(int off, int count, byte[] d)
try {
mN.copy1DRangeFrom(off, count, d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy1DRangeFrom(int off, int count, float[] d)
try {
mN.copy1DRangeFrom(off, count, d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy1DRangeFrom(int off, int count, Allocation data, int dataOff)
try {
AllocationThunker at = (AllocationThunker)data;
mN.copy1DRangeFrom(off, count, at.mN, dataOff);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy1DRangeFromUnchecked(int off, int count, int[] d)
try {
mN.copy1DRangeFromUnchecked(off, count, d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy1DRangeFromUnchecked(int off, int count, short[] d)
try {
mN.copy1DRangeFromUnchecked(off, count, d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy1DRangeFromUnchecked(int off, int count, byte[] d)
try {
mN.copy1DRangeFromUnchecked(off, count, d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy1DRangeFromUnchecked(int off, int count, float[] d)
try {
mN.copy1DRangeFromUnchecked(off, count, d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy2DRangeFrom(int xoff, int yoff, int w, int h, byte[] data)
try {
mN.copy2DRangeFrom(xoff, yoff, w, h, data);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy2DRangeFrom(int xoff, int yoff, int w, int h, short[] data)
try {
mN.copy2DRangeFrom(xoff, yoff, w, h, data);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy2DRangeFrom(int xoff, int yoff, int w, int h, int[] data)
try {
mN.copy2DRangeFrom(xoff, yoff, w, h, data);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy2DRangeFrom(int xoff, int yoff, int w, int h, float[] data)
try {
mN.copy2DRangeFrom(xoff, yoff, w, h, data);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy2DRangeFrom(int xoff, int yoff, int w, int h, Allocation data, int dataXoff, int dataYoff)
try {
AllocationThunker at = (AllocationThunker)data;
mN.copy2DRangeFrom(xoff, yoff, w, h, at.mN, dataXoff, dataYoff);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copy2DRangeFrom(int xoff, int yoff, android.graphics.Bitmap data)
try {
mN.copy2DRangeFrom(xoff, yoff, data);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFrom(BaseObj[] d)
if (d == null) {
return;
}
android.renderscript.BaseObj[] dN = new android.renderscript.BaseObj[d.length];
for (int i = 0; i < d.length; i++) {
dN[i] = d[i].getNObj();
}
try {
mN.copyFrom(dN);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFrom(int[] d)
try {
mN.copyFrom(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFrom(short[] d)
try {
mN.copyFrom(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFrom(byte[] d)
try {
mN.copyFrom(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFrom(float[] d)
try {
mN.copyFrom(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFrom(android.graphics.Bitmap b)
try {
mN.copyFrom(b);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFrom(Allocation a)
AllocationThunker at = (AllocationThunker)a;
try {
mN.copyFrom(at.mN);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFromUnchecked(int[] d)
try {
mN.copyFromUnchecked(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFromUnchecked(short[] d)
try {
mN.copyFromUnchecked(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFromUnchecked(byte[] d)
try {
mN.copyFromUnchecked(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyFromUnchecked(float[] d)
try {
mN.copyFromUnchecked(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyTo(android.graphics.Bitmap b)
try {
mN.copyTo(b);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyTo(byte[] d)
try {
mN.copyTo(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyTo(short[] d)
try {
mN.copyTo(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyTo(int[] d)
try {
mN.copyTo(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | copyTo(float[] d)
try {
mN.copyTo(d);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public static Allocation | createCubemapFromBitmap(RenderScript rs, android.graphics.Bitmap b, MipmapControl mips, int usage)
RenderScriptThunker rst = (RenderScriptThunker)rs;
try {
android.renderscript.Allocation a =
android.renderscript.Allocation.createCubemapFromBitmap(
rst.mN, b, convertMipmapControl(mips), usage);
TypeThunker tt = new TypeThunker(rs, a.getType());
return new AllocationThunker(rs, tt, usage, a);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public static Allocation | createCubemapFromCubeFaces(RenderScript rs, android.graphics.Bitmap xpos, android.graphics.Bitmap xneg, android.graphics.Bitmap ypos, android.graphics.Bitmap yneg, android.graphics.Bitmap zpos, android.graphics.Bitmap zneg, MipmapControl mips, int usage)
RenderScriptThunker rst = (RenderScriptThunker)rs;
try {
android.renderscript.Allocation a =
android.renderscript.Allocation.createCubemapFromCubeFaces(
rst.mN, xpos, xneg, ypos, yneg, zpos, zneg,
convertMipmapControl(mips), usage);
TypeThunker tt = new TypeThunker(rs, a.getType());
return new AllocationThunker(rs, tt, usage, a);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public static Allocation | createFromBitmap(RenderScript rs, android.graphics.Bitmap b, MipmapControl mips, int usage)
RenderScriptThunker rst = (RenderScriptThunker)rs;
try {
android.renderscript.Allocation a =
android.renderscript.Allocation.createFromBitmap(rst.mN, b,
convertMipmapControl(mips),
usage);
TypeThunker tt = new TypeThunker(rs, a.getType());
return new AllocationThunker(rs, tt, usage, a);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public static Allocation | createFromBitmapResource(RenderScript rs, android.content.res.Resources res, int id, MipmapControl mips, int usage)
RenderScriptThunker rst = (RenderScriptThunker)rs;
try {
android.renderscript.Allocation a =
android.renderscript.Allocation.createFromBitmapResource(
rst.mN, res, id, convertMipmapControl(mips), usage);
TypeThunker tt = new TypeThunker(rs, a.getType());
return new AllocationThunker(rs, tt, usage, a);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public static Allocation | createFromString(RenderScript rs, java.lang.String str, int usage)
RenderScriptThunker rst = (RenderScriptThunker)rs;
try {
android.renderscript.Allocation a =
android.renderscript.Allocation.createFromString(
rst.mN, str, usage);
TypeThunker tt = new TypeThunker(rs, a.getType());
return new AllocationThunker(rs, tt, usage, a);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public static Allocation | createSized(RenderScript rs, Element e, int count, int usage)
RenderScriptThunker rst = (RenderScriptThunker)rs;
ElementThunker et = (ElementThunker) e;
try {
android.renderscript.Allocation a =
android.renderscript.Allocation.createSized
(rst.mN, (android.renderscript.Element)e.getNObj(), count, usage);
TypeThunker tt = new TypeThunker(rs, a.getType());
return new AllocationThunker(rs, tt, usage, a);
} catch (android.renderscript.RSRuntimeException exc) {
throw ExceptionThunker.convertException(exc);
}
|
public static Allocation | createTyped(RenderScript rs, Type type, MipmapControl mips, int usage)
mBitmapOptions.inScaled = false;
RenderScriptThunker rst = (RenderScriptThunker)rs;
TypeThunker tt = (TypeThunker)type;
try {
android.renderscript.Allocation a =
android.renderscript.Allocation.createTyped(rst.mN, tt.mN,
convertMipmapControl(mips),
usage);
return new AllocationThunker(rs, type, usage, a);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | generateMipmaps()
try {
mN.generateMipmaps();
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public int | getBytesSize()
try {
return mN.getBytesSize();
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public Element | getElement()
return getType().getElement();
|
android.renderscript.Allocation | getNObj()
return mN;
|
public Type | getType()
return TypeThunker.find(mN.getType());
|
public int | getUsage()
try {
return mN.getUsage();
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | ioReceive()
try {
mN.ioReceive();
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | ioSend()
try {
mN.ioSend();
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | setFromFieldPacker(int xoff, FieldPacker fp)
try {
// Must construct actual FieldPacker from scratch, since we don't
// know how many bytes were actually used.
byte[] data = fp.getData();
int fp_length = fp.getPos();
android.renderscript.FieldPacker nfp =
new android.renderscript.FieldPacker(fp_length);
for (int i = 0; i < fp_length; i++) {
nfp.addI8(data[i]);
}
mN.setFromFieldPacker(xoff, nfp);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | setFromFieldPacker(int xoff, int component_number, FieldPacker fp)
try {
// Must construct actual FieldPacker from scratch, since we don't
// know how many bytes were actually used.
byte[] data = fp.getData();
int fp_length = fp.getPos();
android.renderscript.FieldPacker nfp =
new android.renderscript.FieldPacker(fp_length);
for (int i = 0; i < fp_length; i++) {
nfp.addI8(data[i]);
}
mN.setFromFieldPacker(xoff, component_number, nfp);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|
public void | syncAll(int srcLocation)
try {
mN.syncAll(srcLocation);
} catch (android.renderscript.RSRuntimeException e) {
throw ExceptionThunker.convertException(e);
}
|