void
|
copy1DRangeFrom(int off, int count, float[] d)
Copy part of an allocation from an array.
|
void
|
copy1DRangeFrom(int off, int count,
Allocation data, int dataOff)
Copy part of an allocation from another allocation.
|
void
|
copy1DRangeFrom(int off, int count, short[] d)
Copy part of an allocation from an array.
|
void
|
copy1DRangeFrom(int off, int count, int[] d)
Copy part of an allocation from an array.
|
void
|
copy1DRangeFrom(int off, int count, byte[] d)
Copy part of an allocation from an array.
|
void
|
copy1DRangeFromUnchecked(int off, int count, byte[] d)
Copy part of an allocation from an array.
|
void
|
copy1DRangeFromUnchecked(int off, int count, short[] d)
Copy part of an allocation from an array.
|
void
|
copy1DRangeFromUnchecked(int off, int count, float[] d)
Copy part of an allocation from an array.
|
void
|
copy1DRangeFromUnchecked(int off, int count, int[] d)
Copy part of an allocation from an array.
|
void
|
copy2DRangeFrom(int xoff, int yoff, int w, int h, float[] data)
|
void
|
copy2DRangeFrom(int xoff, int yoff, int w, int h, byte[] data)
Copy a rectangular region from the array into the allocation.
|
void
|
copy2DRangeFrom(int xoff, int yoff, int w, int h, int[] data)
|
void
|
copy2DRangeFrom(int xoff, int yoff, int w, int h, short[] data)
|
void
|
copy2DRangeFrom(int xoff, int yoff,
Bitmap data)
Copy a bitmap into an allocation.
|
void
|
copy2DRangeFrom(int xoff, int yoff, int w, int h,
Allocation data, int dataXoff, int dataYoff)
Copy a rectangular region into the allocation from another allocation.
|
void
|
copyFrom(
BaseObj[] d)
Copy an array of RS objects to the allocation.
|
void
|
copyFrom(byte[] d)
Copy an allocation from an array.
|
void
|
copyFrom(int[] d)
Copy an allocation from an array.
|
void
|
copyFrom(float[] d)
Copy an allocation from an array.
|
void
|
copyFrom(
Bitmap b)
Copy an allocation from a bitmap.
|
void
|
copyFrom(short[] d)
Copy an allocation from an array.
|
void
|
copyFromUnchecked(int[] d)
Copy an allocation from an array.
|
void
|
copyFromUnchecked(short[] d)
Copy an allocation from an array.
|
void
|
copyFromUnchecked(byte[] d)
Copy an allocation from an array.
|
void
|
copyFromUnchecked(float[] d)
Copy an allocation from an array.
|
void
|
copyTo(byte[] d)
Copy from the Allocation into a byte array.
|
void
|
copyTo(int[] d)
Copy from the Allocation into a int array.
|
void
|
copyTo(float[] d)
Copy from the Allocation into a float array.
|
void
|
copyTo(short[] d)
Copy from the Allocation into a short array.
|
void
|
copyTo(
Bitmap b)
Copy from the Allocation into a Bitmap.
|
static
Allocation
|
createCubemapFromBitmap(
RenderScript rs,
Bitmap b,
Allocation.MipmapControl mips, int usage)
Creates a cubemap allocation from a bitmap containing the horizontal list of cube faces.
|
static
Allocation
|
createCubemapFromBitmap(
RenderScript rs,
Bitmap b)
Creates a non-mipmapped cubemap allocation for use as a graphics texture from a bitmap containing the horizontal list of cube faces.
|
static
Allocation
|
createCubemapFromCubeFaces(
RenderScript rs,
Bitmap xpos,
Bitmap xneg,
Bitmap ypos,
Bitmap yneg,
Bitmap zpos,
Bitmap zneg)
Creates a non-mipmapped cubemap allocation for use as a graphics texture from 6 bitmaps containing the cube faces.
|
static
Allocation
|
createCubemapFromCubeFaces(
RenderScript rs,
Bitmap xpos,
Bitmap xneg,
Bitmap ypos,
Bitmap yneg,
Bitmap zpos,
Bitmap zneg,
Allocation.MipmapControl mips, int usage)
Creates a cubemap allocation from 6 bitmaps containing the cube faces.
|
static
Allocation
|
createFromBitmap(
RenderScript rs,
Bitmap b)
Creates a non-mipmapped renderscript allocation to use as a graphics texture
|
static
Allocation
|
createFromBitmap(
RenderScript rs,
Bitmap b,
Allocation.MipmapControl mips, int usage)
Creates a renderscript allocation from a bitmap
|
static
Allocation
|
createFromBitmapResource(
RenderScript rs,
Resources res, int id)
Creates a non-mipmapped renderscript allocation to use as a graphics texture from the bitmap referenced by resource id
|
static
Allocation
|
createFromBitmapResource(
RenderScript rs,
Resources res, int id,
Allocation.MipmapControl mips, int usage)
Creates a renderscript allocation from the bitmap referenced by resource id
|
static
Allocation
|
createFromString(
RenderScript rs,
String str, int usage)
Creates a renderscript allocation containing string data encoded in UTF-8 format
|
static
Allocation
|
createSized(
RenderScript rs,
Element e, int count)
Creates a renderscript allocation with a specified number of given elements
|
static
Allocation
|
createSized(
RenderScript rs,
Element e, int count, int usage)
Creates a renderscript allocation with a specified number of given elements
|
static
Allocation
|
createTyped(
RenderScript rs,
Type type)
Creates a renderscript allocation for use by the script with the size specified by the type and no mipmaps generated by default
|
static
Allocation
|
createTyped(
RenderScript rs,
Type type, int usage)
Creates a renderscript allocation with the size specified by the type and no mipmaps generated by default
|
static
Allocation
|
createTyped(
RenderScript rs,
Type type,
Allocation.MipmapControl mips, int usage)
|
void
|
generateMipmaps()
Generate a mipmap chain.
|
int
|
getBytesSize()
Get the size of the Allocation in bytes.
|
Element
|
getElement()
Get the element of the type of the Allocation.
|
Surface
|
getSurface()
For allocations used with io operations, returns the handle onto a raw buffer that is being managed by the screen compositor.
|
Type
|
getType()
Get the type of the Allocation.
|
int
|
getUsage()
Get the usage flags of the Allocation.
|
void
|
ioReceive()
Receive the latest input into the Allocation.
|
void
|
ioSend()
Send a buffer to the output stream.
|
synchronized void
|
resize(int dimX)
Resize a 1D allocation.
|
void
|
setFromFieldPacker(int xoff,
FieldPacker fp)
This is only intended to be used by auto-generate code reflected from the renderscript script files.
|
void
|
setFromFieldPacker(int xoff, int component_number,
FieldPacker fp)
This is only intended to be used by auto-generate code reflected from the renderscript script files.
|
void
|
setSurface(
Surface sur)
Associate a surface for io output with this allocation
|
void
|
syncAll(int srcLocation)
Propagate changes from one usage of the allocation to the remaining usages of the allocation.
|